gitstack

package module
v0.0.0-...-246636d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

README

client/go

Client Go generato dal contratto OpenAPI unico di GitStack (../../api/openapi.yaml) con oapi-codegen (v2, dichiarato come tool dependency in go.mod, versione pinnata).

  • gitstack.gen.go: generato, non modificarlo a mano — intestazione Code generated ... DO NOT EDIT. Contiene i modelli e il client HTTP per tutte le operazioni del contratto (GetHealth, ListResources, CreateResource, GetResource, UpdateResource, DeleteResource).
  • generate.go: la direttiva //go:generate che invoca oapi-codegen.
  • oapi-codegen.yaml: configurazione del generatore (pacchetto, modelli, client).

Rigenerare

Dalla radice del monorepo (comando unico, rigenera anche il client TS):

go work sync
./scripts/generate-api.sh

Oppure solo questo modulo:

cd client/go
go generate ./...

Uso

import gitstack "github.com/fathorMB/GitStack/client/go"

c, err := gitstack.NewClientWithResponses("https://example.invalid/v1")

Usato da cli/ (CLI gs, M-07) e, in futuro, da altri servizi Go che chiamano l'API pubblica del gateway.

Licenza

Apache-2.0 (vedi LICENSE in questa cartella), diversa dal resto del server (AGPL-3.0): decisione D17 [c_1d1d61aca3dea601].

Documentation

Overview

Package gitstack contiene il client Go generato dal contratto OpenAPI di GitStack (api/openapi.yaml). Non modificare a mano i file generati (gitstack.gen.go): rigenerarli con `scripts/generate-api.sh` dalla radice del monorepo, dopo `go work sync`.

Licenza Apache-2.0 (vedi LICENSE in questa cartella), diversa dal resto del server (AGPL-3.0): decisione D17.

Package gitstack provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAddSshKeyRequest

func NewAddSshKeyRequest(server string, body AddSshKeyJSONRequestBody) (*http.Request, error)

NewAddSshKeyRequest calls the generic AddSshKey builder with application/json body

func NewAddSshKeyRequestWithBody

func NewAddSshKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewAddSshKeyRequestWithBody constructs an http.Request for the AddSshKey method, with any body, and a specified content type

func NewChangePasswordRequest

func NewChangePasswordRequest(server string, username UsernameParam, body ChangePasswordJSONRequestBody) (*http.Request, error)

NewChangePasswordRequest calls the generic ChangePassword builder with application/json body

func NewChangePasswordRequestWithBody

func NewChangePasswordRequestWithBody(server string, username UsernameParam, contentType string, body io.Reader) (*http.Request, error)

NewChangePasswordRequestWithBody constructs an http.Request for the ChangePassword method, with any body, and a specified content type

func NewCheckPermissionRequest

func NewCheckPermissionRequest(server string, body CheckPermissionJSONRequestBody) (*http.Request, error)

NewCheckPermissionRequest calls the generic CheckPermission builder with application/json body

func NewCheckPermissionRequestWithBody

func NewCheckPermissionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCheckPermissionRequestWithBody constructs an http.Request for the CheckPermission method, with any body, and a specified content type

func NewCloseIssueRequest

func NewCloseIssueRequest(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body CloseIssueJSONRequestBody) (*http.Request, error)

NewCloseIssueRequest calls the generic CloseIssue builder with application/json body

func NewCloseIssueRequestWithBody

func NewCloseIssueRequestWithBody(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader) (*http.Request, error)

NewCloseIssueRequestWithBody constructs an http.Request for the CloseIssue method, with any body, and a specified content type

func NewCreateIssueCommentRequest

func NewCreateIssueCommentRequest(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body CreateIssueCommentJSONRequestBody) (*http.Request, error)

NewCreateIssueCommentRequest calls the generic CreateIssueComment builder with application/json body

func NewCreateIssueCommentRequestWithBody

func NewCreateIssueCommentRequestWithBody(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader) (*http.Request, error)

NewCreateIssueCommentRequestWithBody constructs an http.Request for the CreateIssueComment method, with any body, and a specified content type

func NewCreateIssueRequest

func NewCreateIssueRequest(server string, owner RepoOwnerParam, repo RepoNameParam, body CreateIssueJSONRequestBody) (*http.Request, error)

NewCreateIssueRequest calls the generic CreateIssue builder with application/json body

func NewCreateIssueRequestWithBody

func NewCreateIssueRequestWithBody(server string, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader) (*http.Request, error)

NewCreateIssueRequestWithBody constructs an http.Request for the CreateIssue method, with any body, and a specified content type

func NewCreateLabelRequest

func NewCreateLabelRequest(server string, owner RepoOwnerParam, repo RepoNameParam, body CreateLabelJSONRequestBody) (*http.Request, error)

NewCreateLabelRequest calls the generic CreateLabel builder with application/json body

func NewCreateLabelRequestWithBody

func NewCreateLabelRequestWithBody(server string, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader) (*http.Request, error)

NewCreateLabelRequestWithBody constructs an http.Request for the CreateLabel method, with any body, and a specified content type

func NewCreateMilestoneRequest

func NewCreateMilestoneRequest(server string, owner RepoOwnerParam, repo RepoNameParam, body CreateMilestoneJSONRequestBody) (*http.Request, error)

NewCreateMilestoneRequest calls the generic CreateMilestone builder with application/json body

func NewCreateMilestoneRequestWithBody

func NewCreateMilestoneRequestWithBody(server string, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader) (*http.Request, error)

NewCreateMilestoneRequestWithBody constructs an http.Request for the CreateMilestone method, with any body, and a specified content type

func NewCreateOrgWebhookRequest

func NewCreateOrgWebhookRequest(server string, org OrgParam, body CreateOrgWebhookJSONRequestBody) (*http.Request, error)

NewCreateOrgWebhookRequest calls the generic CreateOrgWebhook builder with application/json body

func NewCreateOrgWebhookRequestWithBody

func NewCreateOrgWebhookRequestWithBody(server string, org OrgParam, contentType string, body io.Reader) (*http.Request, error)

NewCreateOrgWebhookRequestWithBody constructs an http.Request for the CreateOrgWebhook method, with any body, and a specified content type

func NewCreateOrganizationRequest

func NewCreateOrganizationRequest(server string, body CreateOrganizationJSONRequestBody) (*http.Request, error)

NewCreateOrganizationRequest calls the generic CreateOrganization builder with application/json body

func NewCreateOrganizationRequestWithBody

func NewCreateOrganizationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateOrganizationRequestWithBody constructs an http.Request for the CreateOrganization method, with any body, and a specified content type

func NewCreateRepoMirrorRequest

func NewCreateRepoMirrorRequest(server string, owner RepoOwnerParam, repo RepoNameParam, body CreateRepoMirrorJSONRequestBody) (*http.Request, error)

NewCreateRepoMirrorRequest calls the generic CreateRepoMirror builder with application/json body

func NewCreateRepoMirrorRequestWithBody

func NewCreateRepoMirrorRequestWithBody(server string, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader) (*http.Request, error)

NewCreateRepoMirrorRequestWithBody constructs an http.Request for the CreateRepoMirror method, with any body, and a specified content type

func NewCreateRepoWebhookRequest

func NewCreateRepoWebhookRequest(server string, owner RepoOwnerParam, repo RepoNameParam, body CreateRepoWebhookJSONRequestBody) (*http.Request, error)

NewCreateRepoWebhookRequest calls the generic CreateRepoWebhook builder with application/json body

func NewCreateRepoWebhookRequestWithBody

func NewCreateRepoWebhookRequestWithBody(server string, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader) (*http.Request, error)

NewCreateRepoWebhookRequestWithBody constructs an http.Request for the CreateRepoWebhook method, with any body, and a specified content type

func NewCreateRepositoryRequest

func NewCreateRepositoryRequest(server string, body CreateRepositoryJSONRequestBody) (*http.Request, error)

NewCreateRepositoryRequest calls the generic CreateRepository builder with application/json body

func NewCreateRepositoryRequestWithBody

func NewCreateRepositoryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateRepositoryRequestWithBody constructs an http.Request for the CreateRepository method, with any body, and a specified content type

func NewCreateResourceGrantRequest

func NewCreateResourceGrantRequest(server string, resourceId ResourceIdParam, body CreateResourceGrantJSONRequestBody) (*http.Request, error)

NewCreateResourceGrantRequest calls the generic CreateResourceGrant builder with application/json body

func NewCreateResourceGrantRequestWithBody

func NewCreateResourceGrantRequestWithBody(server string, resourceId ResourceIdParam, contentType string, body io.Reader) (*http.Request, error)

NewCreateResourceGrantRequestWithBody constructs an http.Request for the CreateResourceGrant method, with any body, and a specified content type

func NewCreateResourceRequest

func NewCreateResourceRequest(server string, body CreateResourceJSONRequestBody) (*http.Request, error)

NewCreateResourceRequest calls the generic CreateResource builder with application/json body

func NewCreateResourceRequestWithBody

func NewCreateResourceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateResourceRequestWithBody constructs an http.Request for the CreateResource method, with any body, and a specified content type

func NewCreateTeamRequest

func NewCreateTeamRequest(server string, org OrgParam, body CreateTeamJSONRequestBody) (*http.Request, error)

NewCreateTeamRequest calls the generic CreateTeam builder with application/json body

func NewCreateTeamRequestWithBody

func NewCreateTeamRequestWithBody(server string, org OrgParam, contentType string, body io.Reader) (*http.Request, error)

NewCreateTeamRequestWithBody constructs an http.Request for the CreateTeam method, with any body, and a specified content type

func NewCreateTokenRequest

func NewCreateTokenRequest(server string, body CreateTokenJSONRequestBody) (*http.Request, error)

NewCreateTokenRequest calls the generic CreateToken builder with application/json body

func NewCreateTokenRequestWithBody

func NewCreateTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateTokenRequestWithBody constructs an http.Request for the CreateToken method, with any body, and a specified content type

func NewCreateUserRequest

func NewCreateUserRequest(server string, body CreateUserJSONRequestBody) (*http.Request, error)

NewCreateUserRequest calls the generic CreateUser builder with application/json body

func NewCreateUserRequestWithBody

func NewCreateUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateUserRequestWithBody constructs an http.Request for the CreateUser method, with any body, and a specified content type

func NewCreateUserTokenRequest

func NewCreateUserTokenRequest(server string, username UsernameParam, body CreateUserTokenJSONRequestBody) (*http.Request, error)

NewCreateUserTokenRequest calls the generic CreateUserToken builder with application/json body

func NewCreateUserTokenRequestWithBody

func NewCreateUserTokenRequestWithBody(server string, username UsernameParam, contentType string, body io.Reader) (*http.Request, error)

NewCreateUserTokenRequestWithBody constructs an http.Request for the CreateUserToken method, with any body, and a specified content type

func NewDeleteIssueCommentRequest

func NewDeleteIssueCommentRequest(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, commentId IssueCommentIdParam) (*http.Request, error)

NewDeleteIssueCommentRequest constructs an http.Request for the DeleteIssueComment method

func NewDeleteLabelRequest

func NewDeleteLabelRequest(server string, owner RepoOwnerParam, repo RepoNameParam, name LabelNameParam) (*http.Request, error)

NewDeleteLabelRequest constructs an http.Request for the DeleteLabel method

func NewDeleteMilestoneRequest

func NewDeleteMilestoneRequest(server string, owner RepoOwnerParam, repo RepoNameParam, milestoneNumber MilestoneNumberParam) (*http.Request, error)

NewDeleteMilestoneRequest constructs an http.Request for the DeleteMilestone method

func NewDeleteNotificationRequest

func NewDeleteNotificationRequest(server string, notificationId NotificationIdParam) (*http.Request, error)

NewDeleteNotificationRequest constructs an http.Request for the DeleteNotification method

func NewDeleteNotificationsRequest

func NewDeleteNotificationsRequest(server string, params *DeleteNotificationsParams) (*http.Request, error)

NewDeleteNotificationsRequest constructs an http.Request for the DeleteNotifications method

func NewDeleteOrgWebhookRequest

func NewDeleteOrgWebhookRequest(server string, org OrgParam, hookId WebhookIdParam) (*http.Request, error)

NewDeleteOrgWebhookRequest constructs an http.Request for the DeleteOrgWebhook method

func NewDeleteOrganizationRequest

func NewDeleteOrganizationRequest(server string, org OrgParam) (*http.Request, error)

NewDeleteOrganizationRequest constructs an http.Request for the DeleteOrganization method

func NewDeleteRepoMirrorRequest

func NewDeleteRepoMirrorRequest(server string, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam) (*http.Request, error)

NewDeleteRepoMirrorRequest constructs an http.Request for the DeleteRepoMirror method

func NewDeleteRepoWebhookRequest

func NewDeleteRepoWebhookRequest(server string, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam) (*http.Request, error)

NewDeleteRepoWebhookRequest constructs an http.Request for the DeleteRepoWebhook method

func NewDeleteRepositoryRequest

func NewDeleteRepositoryRequest(server string, owner RepoOwnerParam, repo RepoNameParam) (*http.Request, error)

NewDeleteRepositoryRequest constructs an http.Request for the DeleteRepository method

func NewDeleteResourceGrantRequest

func NewDeleteResourceGrantRequest(server string, resourceId ResourceIdParam, grantId GrantIdParam) (*http.Request, error)

NewDeleteResourceGrantRequest constructs an http.Request for the DeleteResourceGrant method

func NewDeleteResourceRequest

func NewDeleteResourceRequest(server string, resourceId ResourceIdParam) (*http.Request, error)

NewDeleteResourceRequest constructs an http.Request for the DeleteResource method

func NewDeleteSshKeyRequest

func NewDeleteSshKeyRequest(server string, keyId SshKeyIdParam) (*http.Request, error)

NewDeleteSshKeyRequest constructs an http.Request for the DeleteSshKey method

func NewDeleteTeamRequest

func NewDeleteTeamRequest(server string, org OrgParam, team TeamParam) (*http.Request, error)

NewDeleteTeamRequest constructs an http.Request for the DeleteTeam method

func NewDeleteUserRequest

func NewDeleteUserRequest(server string, username UsernameParam) (*http.Request, error)

NewDeleteUserRequest constructs an http.Request for the DeleteUser method

func NewFinishOidcLoginRequest

func NewFinishOidcLoginRequest(server string, provider OidcProviderParam, params *FinishOidcLoginParams) (*http.Request, error)

NewFinishOidcLoginRequest constructs an http.Request for the FinishOidcLogin method

func NewGetCurrentSessionRequest

func NewGetCurrentSessionRequest(server string) (*http.Request, error)

NewGetCurrentSessionRequest constructs an http.Request for the GetCurrentSession method

func NewGetHealthRequest

func NewGetHealthRequest(server string) (*http.Request, error)

NewGetHealthRequest constructs an http.Request for the GetHealth method

func NewGetIssueAttachmentRequest

func NewGetIssueAttachmentRequest(server string, owner RepoOwnerParam, repo RepoNameParam, attachmentId IssueAttachmentIdParam) (*http.Request, error)

NewGetIssueAttachmentRequest constructs an http.Request for the GetIssueAttachment method

func NewGetIssueRequest

func NewGetIssueRequest(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam) (*http.Request, error)

NewGetIssueRequest constructs an http.Request for the GetIssue method

func NewGetIssueSubscriptionRequest

func NewGetIssueSubscriptionRequest(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam) (*http.Request, error)

NewGetIssueSubscriptionRequest constructs an http.Request for the GetIssueSubscription method

func NewGetLabelRequest

func NewGetLabelRequest(server string, owner RepoOwnerParam, repo RepoNameParam, name LabelNameParam) (*http.Request, error)

NewGetLabelRequest constructs an http.Request for the GetLabel method

func NewGetMetaRequest

func NewGetMetaRequest(server string) (*http.Request, error)

NewGetMetaRequest constructs an http.Request for the GetMeta method

func NewGetMilestoneRequest

func NewGetMilestoneRequest(server string, owner RepoOwnerParam, repo RepoNameParam, milestoneNumber MilestoneNumberParam) (*http.Request, error)

NewGetMilestoneRequest constructs an http.Request for the GetMilestone method

func NewGetMyResourcePermissionRequest

func NewGetMyResourcePermissionRequest(server string, resourceId ResourceIdParam) (*http.Request, error)

NewGetMyResourcePermissionRequest constructs an http.Request for the GetMyResourcePermission method

func NewGetNotificationPreferencesRequest

func NewGetNotificationPreferencesRequest(server string) (*http.Request, error)

NewGetNotificationPreferencesRequest constructs an http.Request for the GetNotificationPreferences method

func NewGetNotificationRequest

func NewGetNotificationRequest(server string, notificationId NotificationIdParam) (*http.Request, error)

NewGetNotificationRequest constructs an http.Request for the GetNotification method

func NewGetOrgWebhookDeliveryRequest

func NewGetOrgWebhookDeliveryRequest(server string, org OrgParam, hookId WebhookIdParam, deliveryId WebhookDeliveryIdParam) (*http.Request, error)

NewGetOrgWebhookDeliveryRequest constructs an http.Request for the GetOrgWebhookDelivery method

func NewGetOrgWebhookRequest

func NewGetOrgWebhookRequest(server string, org OrgParam, hookId WebhookIdParam) (*http.Request, error)

NewGetOrgWebhookRequest constructs an http.Request for the GetOrgWebhook method

func NewGetOrganizationRequest

func NewGetOrganizationRequest(server string, org OrgParam) (*http.Request, error)

NewGetOrganizationRequest constructs an http.Request for the GetOrganization method

func NewGetRepoMirrorRequest

func NewGetRepoMirrorRequest(server string, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam) (*http.Request, error)

NewGetRepoMirrorRequest constructs an http.Request for the GetRepoMirror method

func NewGetRepoWatchRequest

func NewGetRepoWatchRequest(server string, owner RepoOwnerParam, repo RepoNameParam) (*http.Request, error)

NewGetRepoWatchRequest constructs an http.Request for the GetRepoWatch method

func NewGetRepoWebhookDeliveryRequest

func NewGetRepoWebhookDeliveryRequest(server string, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, deliveryId WebhookDeliveryIdParam) (*http.Request, error)

NewGetRepoWebhookDeliveryRequest constructs an http.Request for the GetRepoWebhookDelivery method

func NewGetRepoWebhookRequest

func NewGetRepoWebhookRequest(server string, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam) (*http.Request, error)

NewGetRepoWebhookRequest constructs an http.Request for the GetRepoWebhook method

func NewGetRepositoryArchiveRequest

func NewGetRepositoryArchiveRequest(server string, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryArchiveParams) (*http.Request, error)

NewGetRepositoryArchiveRequest constructs an http.Request for the GetRepositoryArchive method

func NewGetRepositoryBlameRequest

func NewGetRepositoryBlameRequest(server string, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryBlameParams) (*http.Request, error)

NewGetRepositoryBlameRequest constructs an http.Request for the GetRepositoryBlame method

func NewGetRepositoryBranchesRequest

func NewGetRepositoryBranchesRequest(server string, owner RepoOwnerParam, repo RepoNameParam) (*http.Request, error)

NewGetRepositoryBranchesRequest constructs an http.Request for the GetRepositoryBranches method

func NewGetRepositoryCommitPatchRequest

func NewGetRepositoryCommitPatchRequest(server string, owner RepoOwnerParam, repo RepoNameParam, sha CommitShaParam, params *GetRepositoryCommitPatchParams) (*http.Request, error)

NewGetRepositoryCommitPatchRequest constructs an http.Request for the GetRepositoryCommitPatch method

func NewGetRepositoryCommitRequest

func NewGetRepositoryCommitRequest(server string, owner RepoOwnerParam, repo RepoNameParam, sha CommitShaParam, params *GetRepositoryCommitParams) (*http.Request, error)

NewGetRepositoryCommitRequest constructs an http.Request for the GetRepositoryCommit method

func NewGetRepositoryCommitsRequest

func NewGetRepositoryCommitsRequest(server string, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryCommitsParams) (*http.Request, error)

NewGetRepositoryCommitsRequest constructs an http.Request for the GetRepositoryCommits method

func NewGetRepositoryFileRequest

func NewGetRepositoryFileRequest(server string, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryFileParams) (*http.Request, error)

NewGetRepositoryFileRequest constructs an http.Request for the GetRepositoryFile method

func NewGetRepositoryLanguagesRequest

func NewGetRepositoryLanguagesRequest(server string, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryLanguagesParams) (*http.Request, error)

NewGetRepositoryLanguagesRequest constructs an http.Request for the GetRepositoryLanguages method

func NewGetRepositoryRawByPathRequest

func NewGetRepositoryRawByPathRequest(server string, owner RepoOwnerParam, repo RepoNameParam, refAndPath RefAndPathParam) (*http.Request, error)

NewGetRepositoryRawByPathRequest constructs an http.Request for the GetRepositoryRawByPath method

func NewGetRepositoryRawRequest

func NewGetRepositoryRawRequest(server string, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryRawParams) (*http.Request, error)

NewGetRepositoryRawRequest constructs an http.Request for the GetRepositoryRaw method

func NewGetRepositoryReadmeRequest

func NewGetRepositoryReadmeRequest(server string, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryReadmeParams) (*http.Request, error)

NewGetRepositoryReadmeRequest constructs an http.Request for the GetRepositoryReadme method

func NewGetRepositoryRequest

func NewGetRepositoryRequest(server string, owner RepoOwnerParam, repo RepoNameParam) (*http.Request, error)

NewGetRepositoryRequest constructs an http.Request for the GetRepository method

func NewGetRepositoryTagsRequest

func NewGetRepositoryTagsRequest(server string, owner RepoOwnerParam, repo RepoNameParam) (*http.Request, error)

NewGetRepositoryTagsRequest constructs an http.Request for the GetRepositoryTags method

func NewGetRepositoryTreeRequest

func NewGetRepositoryTreeRequest(server string, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryTreeParams) (*http.Request, error)

NewGetRepositoryTreeRequest constructs an http.Request for the GetRepositoryTree method

func NewGetResourceRequest

func NewGetResourceRequest(server string, resourceId ResourceIdParam) (*http.Request, error)

NewGetResourceRequest constructs an http.Request for the GetResource method

func NewGetSshKeyRequest

func NewGetSshKeyRequest(server string, keyId SshKeyIdParam) (*http.Request, error)

NewGetSshKeyRequest constructs an http.Request for the GetSshKey method

func NewGetTeamRequest

func NewGetTeamRequest(server string, org OrgParam, team TeamParam) (*http.Request, error)

NewGetTeamRequest constructs an http.Request for the GetTeam method

func NewGetUserAccessRequest

func NewGetUserAccessRequest(server string, username UsernameParam, params *GetUserAccessParams) (*http.Request, error)

NewGetUserAccessRequest constructs an http.Request for the GetUserAccess method

func NewGetUserAccessSourcesRequest

func NewGetUserAccessSourcesRequest(server string, body GetUserAccessSourcesJSONRequestBody) (*http.Request, error)

NewGetUserAccessSourcesRequest calls the generic GetUserAccessSources builder with application/json body

func NewGetUserAccessSourcesRequestWithBody

func NewGetUserAccessSourcesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGetUserAccessSourcesRequestWithBody constructs an http.Request for the GetUserAccessSources method, with any body, and a specified content type

func NewGetUserRequest

func NewGetUserRequest(server string, username UsernameParam) (*http.Request, error)

NewGetUserRequest constructs an http.Request for the GetUser method

func NewGitCreateRepoRequest

func NewGitCreateRepoRequest(server string, body GitCreateRepoJSONRequestBody) (*http.Request, error)

NewGitCreateRepoRequest calls the generic GitCreateRepo builder with application/json body

func NewGitCreateRepoRequestWithBody

func NewGitCreateRepoRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGitCreateRepoRequestWithBody constructs an http.Request for the GitCreateRepo method, with any body, and a specified content type

func NewGitDeleteRepoRequest

func NewGitDeleteRepoRequest(server string, repoId GitRepoIdParam) (*http.Request, error)

NewGitDeleteRepoRequest constructs an http.Request for the GitDeleteRepo method

func NewGitGetArchiveRequest

func NewGitGetArchiveRequest(server string, repoId GitRepoIdParam, params *GitGetArchiveParams) (*http.Request, error)

NewGitGetArchiveRequest constructs an http.Request for the GitGetArchive method

func NewGitGetBlameRequest

func NewGitGetBlameRequest(server string, repoId GitRepoIdParam, params *GitGetBlameParams) (*http.Request, error)

NewGitGetBlameRequest constructs an http.Request for the GitGetBlame method

func NewGitGetBranchesRequest

func NewGitGetBranchesRequest(server string, repoId GitRepoIdParam) (*http.Request, error)

NewGitGetBranchesRequest constructs an http.Request for the GitGetBranches method

func NewGitGetCommitDiffRequest

func NewGitGetCommitDiffRequest(server string, repoId GitRepoIdParam, sha CommitShaParam, params *GitGetCommitDiffParams) (*http.Request, error)

NewGitGetCommitDiffRequest constructs an http.Request for the GitGetCommitDiff method

func NewGitGetCommitPatchRequest

func NewGitGetCommitPatchRequest(server string, repoId GitRepoIdParam, sha CommitShaParam, params *GitGetCommitPatchParams) (*http.Request, error)

NewGitGetCommitPatchRequest constructs an http.Request for the GitGetCommitPatch method

func NewGitGetCommitRequest

func NewGitGetCommitRequest(server string, repoId GitRepoIdParam, sha CommitShaParam, params *GitGetCommitParams) (*http.Request, error)

NewGitGetCommitRequest constructs an http.Request for the GitGetCommit method

func NewGitGetCommitsRequest

func NewGitGetCommitsRequest(server string, repoId GitRepoIdParam, params *GitGetCommitsParams) (*http.Request, error)

NewGitGetCommitsRequest constructs an http.Request for the GitGetCommits method

func NewGitGetFileRequest

func NewGitGetFileRequest(server string, repoId GitRepoIdParam, params *GitGetFileParams) (*http.Request, error)

NewGitGetFileRequest constructs an http.Request for the GitGetFile method

func NewGitGetLanguagesRequest

func NewGitGetLanguagesRequest(server string, repoId GitRepoIdParam, params *GitGetLanguagesParams) (*http.Request, error)

NewGitGetLanguagesRequest constructs an http.Request for the GitGetLanguages method

func NewGitGetRawRequest

func NewGitGetRawRequest(server string, repoId GitRepoIdParam, params *GitGetRawParams) (*http.Request, error)

NewGitGetRawRequest constructs an http.Request for the GitGetRaw method

func NewGitGetReadmeRequest

func NewGitGetReadmeRequest(server string, repoId GitRepoIdParam, params *GitGetReadmeParams) (*http.Request, error)

NewGitGetReadmeRequest constructs an http.Request for the GitGetReadme method

func NewGitGetRepoRequest

func NewGitGetRepoRequest(server string, repoId GitRepoIdParam) (*http.Request, error)

NewGitGetRepoRequest constructs an http.Request for the GitGetRepo method

func NewGitGetTagsRequest

func NewGitGetTagsRequest(server string, repoId GitRepoIdParam) (*http.Request, error)

NewGitGetTagsRequest constructs an http.Request for the GitGetTags method

func NewGitGetTreeRequest

func NewGitGetTreeRequest(server string, repoId GitRepoIdParam, params *GitGetTreeParams) (*http.Request, error)

NewGitGetTreeRequest constructs an http.Request for the GitGetTree method

func NewGitListFilesRequest

func NewGitListFilesRequest(server string, repoId GitRepoIdParam, params *GitListFilesParams) (*http.Request, error)

NewGitListFilesRequest constructs an http.Request for the GitListFiles method

func NewGitRestoreRepoRequest

func NewGitRestoreRepoRequest(server string, repoId GitRepoIdParam) (*http.Request, error)

NewGitRestoreRepoRequest constructs an http.Request for the GitRestoreRepo method

func NewGitSearchCodeRequest

func NewGitSearchCodeRequest(server string, repoId GitRepoIdParam, params *GitSearchCodeParams) (*http.Request, error)

NewGitSearchCodeRequest constructs an http.Request for the GitSearchCode method

func NewGitTrashRepoRequest

func NewGitTrashRepoRequest(server string, repoId GitRepoIdParam) (*http.Request, error)

NewGitTrashRepoRequest constructs an http.Request for the GitTrashRepo method

func NewGrantResourceCreatorRequest

func NewGrantResourceCreatorRequest(server string, resourceId openapi_types.UUID, body GrantResourceCreatorJSONRequestBody) (*http.Request, error)

NewGrantResourceCreatorRequest calls the generic GrantResourceCreator builder with application/json body

func NewGrantResourceCreatorRequestWithBody

func NewGrantResourceCreatorRequestWithBody(server string, resourceId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewGrantResourceCreatorRequestWithBody constructs an http.Request for the GrantResourceCreator method, with any body, and a specified content type

func NewListDeletedRepositoriesRequest

func NewListDeletedRepositoriesRequest(server string, params *ListDeletedRepositoriesParams) (*http.Request, error)

NewListDeletedRepositoriesRequest constructs an http.Request for the ListDeletedRepositories method

func NewListIssueCommentVersionsRequest

func NewListIssueCommentVersionsRequest(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, commentId IssueCommentIdParam) (*http.Request, error)

NewListIssueCommentVersionsRequest constructs an http.Request for the ListIssueCommentVersions method

func NewListIssueCommentsRequest

func NewListIssueCommentsRequest(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, params *ListIssueCommentsParams) (*http.Request, error)

NewListIssueCommentsRequest constructs an http.Request for the ListIssueComments method

func NewListIssueEventsRequest

func NewListIssueEventsRequest(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, params *ListIssueEventsParams) (*http.Request, error)

NewListIssueEventsRequest constructs an http.Request for the ListIssueEvents method

func NewListIssueTemplatesRequest

func NewListIssueTemplatesRequest(server string, owner RepoOwnerParam, repo RepoNameParam) (*http.Request, error)

NewListIssueTemplatesRequest constructs an http.Request for the ListIssueTemplates method

func NewListIssueVersionsRequest

func NewListIssueVersionsRequest(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam) (*http.Request, error)

NewListIssueVersionsRequest constructs an http.Request for the ListIssueVersions method

func NewListIssuesRequest

func NewListIssuesRequest(server string, owner RepoOwnerParam, repo RepoNameParam, params *ListIssuesParams) (*http.Request, error)

NewListIssuesRequest constructs an http.Request for the ListIssues method

func NewListLabelsRequest

func NewListLabelsRequest(server string, owner RepoOwnerParam, repo RepoNameParam, params *ListLabelsParams) (*http.Request, error)

NewListLabelsRequest constructs an http.Request for the ListLabels method

func NewListMilestonesRequest

func NewListMilestonesRequest(server string, owner RepoOwnerParam, repo RepoNameParam, params *ListMilestonesParams) (*http.Request, error)

NewListMilestonesRequest constructs an http.Request for the ListMilestones method

func NewListNotificationsRequest

func NewListNotificationsRequest(server string, params *ListNotificationsParams) (*http.Request, error)

NewListNotificationsRequest constructs an http.Request for the ListNotifications method

func NewListOidcProvidersRequest

func NewListOidcProvidersRequest(server string) (*http.Request, error)

NewListOidcProvidersRequest constructs an http.Request for the ListOidcProviders method

func NewListOrgMembersRequest

func NewListOrgMembersRequest(server string, org OrgParam, params *ListOrgMembersParams) (*http.Request, error)

NewListOrgMembersRequest constructs an http.Request for the ListOrgMembers method

func NewListOrgOwnersRequest

func NewListOrgOwnersRequest(server string, orgId openapi_types.UUID) (*http.Request, error)

NewListOrgOwnersRequest constructs an http.Request for the ListOrgOwners method

func NewListOrgWebhookDeliveriesRequest

func NewListOrgWebhookDeliveriesRequest(server string, org OrgParam, hookId WebhookIdParam, params *ListOrgWebhookDeliveriesParams) (*http.Request, error)

NewListOrgWebhookDeliveriesRequest constructs an http.Request for the ListOrgWebhookDeliveries method

func NewListOrgWebhooksRequest

func NewListOrgWebhooksRequest(server string, org OrgParam, params *ListOrgWebhooksParams) (*http.Request, error)

NewListOrgWebhooksRequest constructs an http.Request for the ListOrgWebhooks method

func NewListOrganizationsRequest

func NewListOrganizationsRequest(server string, params *ListOrganizationsParams) (*http.Request, error)

NewListOrganizationsRequest constructs an http.Request for the ListOrganizations method

func NewListReadableResourcesRequest

func NewListReadableResourcesRequest(server string, body ListReadableResourcesJSONRequestBody) (*http.Request, error)

NewListReadableResourcesRequest calls the generic ListReadableResources builder with application/json body

func NewListReadableResourcesRequestWithBody

func NewListReadableResourcesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewListReadableResourcesRequestWithBody constructs an http.Request for the ListReadableResources method, with any body, and a specified content type

func NewListRepoMirrorRunsRequest

func NewListRepoMirrorRunsRequest(server string, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam, params *ListRepoMirrorRunsParams) (*http.Request, error)

NewListRepoMirrorRunsRequest constructs an http.Request for the ListRepoMirrorRuns method

func NewListRepoMirrorsRequest

func NewListRepoMirrorsRequest(server string, owner RepoOwnerParam, repo RepoNameParam, params *ListRepoMirrorsParams) (*http.Request, error)

NewListRepoMirrorsRequest constructs an http.Request for the ListRepoMirrors method

func NewListRepoWebhookDeliveriesRequest

func NewListRepoWebhookDeliveriesRequest(server string, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, params *ListRepoWebhookDeliveriesParams) (*http.Request, error)

NewListRepoWebhookDeliveriesRequest constructs an http.Request for the ListRepoWebhookDeliveries method

func NewListRepoWebhooksRequest

func NewListRepoWebhooksRequest(server string, owner RepoOwnerParam, repo RepoNameParam, params *ListRepoWebhooksParams) (*http.Request, error)

NewListRepoWebhooksRequest constructs an http.Request for the ListRepoWebhooks method

func NewListRepositoriesRequest

func NewListRepositoriesRequest(server string, params *ListRepositoriesParams) (*http.Request, error)

NewListRepositoriesRequest constructs an http.Request for the ListRepositories method

func NewListRepositoryFilesRequest

func NewListRepositoryFilesRequest(server string, owner RepoOwnerParam, repo RepoNameParam, params *ListRepositoryFilesParams) (*http.Request, error)

NewListRepositoryFilesRequest constructs an http.Request for the ListRepositoryFiles method

func NewListResourceGrantsRequest

func NewListResourceGrantsRequest(server string, resourceId ResourceIdParam, params *ListResourceGrantsParams) (*http.Request, error)

NewListResourceGrantsRequest constructs an http.Request for the ListResourceGrants method

func NewListResourcesRequest

func NewListResourcesRequest(server string, params *ListResourcesParams) (*http.Request, error)

NewListResourcesRequest constructs an http.Request for the ListResources method

func NewListSshKeysRequest

func NewListSshKeysRequest(server string, params *ListSshKeysParams) (*http.Request, error)

NewListSshKeysRequest constructs an http.Request for the ListSshKeys method

func NewListTeamMembersRequest

func NewListTeamMembersRequest(server string, org OrgParam, team TeamParam, params *ListTeamMembersParams) (*http.Request, error)

NewListTeamMembersRequest constructs an http.Request for the ListTeamMembers method

func NewListTeamsRequest

func NewListTeamsRequest(server string, org OrgParam, params *ListTeamsParams) (*http.Request, error)

NewListTeamsRequest constructs an http.Request for the ListTeams method

func NewListTokensRequest

func NewListTokensRequest(server string, params *ListTokensParams) (*http.Request, error)

NewListTokensRequest constructs an http.Request for the ListTokens method

func NewListUserTokensRequest

func NewListUserTokensRequest(server string, username UsernameParam, params *ListUserTokensParams) (*http.Request, error)

NewListUserTokensRequest constructs an http.Request for the ListUserTokens method

func NewListUsersRequest

func NewListUsersRequest(server string, params *ListUsersParams) (*http.Request, error)

NewListUsersRequest constructs an http.Request for the ListUsers method

func NewLockIssueRequest

func NewLockIssueRequest(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body LockIssueJSONRequestBody) (*http.Request, error)

NewLockIssueRequest calls the generic LockIssue builder with application/json body

func NewLockIssueRequestWithBody

func NewLockIssueRequestWithBody(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader) (*http.Request, error)

NewLockIssueRequestWithBody constructs an http.Request for the LockIssue method, with any body, and a specified content type

func NewLoginRequest

func NewLoginRequest(server string, body LoginJSONRequestBody) (*http.Request, error)

NewLoginRequest calls the generic Login builder with application/json body

func NewLoginRequestWithBody

func NewLoginRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewLoginRequestWithBody constructs an http.Request for the Login method, with any body, and a specified content type

func NewLogoutRequest

func NewLogoutRequest(server string) (*http.Request, error)

NewLogoutRequest constructs an http.Request for the Logout method

func NewLookupSshKeyRequest

func NewLookupSshKeyRequest(server string, fingerprint string) (*http.Request, error)

NewLookupSshKeyRequest constructs an http.Request for the LookupSshKey method

func NewLookupUsersByEmailRequest

func NewLookupUsersByEmailRequest(server string, body LookupUsersByEmailJSONRequestBody) (*http.Request, error)

NewLookupUsersByEmailRequest calls the generic LookupUsersByEmail builder with application/json body

func NewLookupUsersByEmailRequestWithBody

func NewLookupUsersByEmailRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewLookupUsersByEmailRequestWithBody constructs an http.Request for the LookupUsersByEmail method, with any body, and a specified content type

func NewLookupUsersByIdsRequest

func NewLookupUsersByIdsRequest(server string, body LookupUsersByIdsJSONRequestBody) (*http.Request, error)

NewLookupUsersByIdsRequest calls the generic LookupUsersByIds builder with application/json body

func NewLookupUsersByIdsRequestWithBody

func NewLookupUsersByIdsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewLookupUsersByIdsRequestWithBody constructs an http.Request for the LookupUsersByIds method, with any body, and a specified content type

func NewMarkAllNotificationsReadRequest

func NewMarkAllNotificationsReadRequest(server string, params *MarkAllNotificationsReadParams) (*http.Request, error)

NewMarkAllNotificationsReadRequest constructs an http.Request for the MarkAllNotificationsRead method

func NewPurgeResourceAccessRequest

func NewPurgeResourceAccessRequest(server string, resourceId openapi_types.UUID) (*http.Request, error)

NewPurgeResourceAccessRequest constructs an http.Request for the PurgeResourceAccess method

func NewReactivateOrgWebhookRequest

func NewReactivateOrgWebhookRequest(server string, org OrgParam, hookId WebhookIdParam) (*http.Request, error)

NewReactivateOrgWebhookRequest constructs an http.Request for the ReactivateOrgWebhook method

func NewReactivateRepoWebhookRequest

func NewReactivateRepoWebhookRequest(server string, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam) (*http.Request, error)

NewReactivateRepoWebhookRequest constructs an http.Request for the ReactivateRepoWebhook method

func NewRedeliverOrgWebhookDeliveryRequest

func NewRedeliverOrgWebhookDeliveryRequest(server string, org OrgParam, hookId WebhookIdParam, deliveryId WebhookDeliveryIdParam) (*http.Request, error)

NewRedeliverOrgWebhookDeliveryRequest constructs an http.Request for the RedeliverOrgWebhookDelivery method

func NewRedeliverRepoWebhookDeliveryRequest

func NewRedeliverRepoWebhookDeliveryRequest(server string, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, deliveryId WebhookDeliveryIdParam) (*http.Request, error)

NewRedeliverRepoWebhookDeliveryRequest constructs an http.Request for the RedeliverRepoWebhookDelivery method

func NewRemoveOrgMemberRequest

func NewRemoveOrgMemberRequest(server string, org OrgParam, username UsernameParam) (*http.Request, error)

NewRemoveOrgMemberRequest constructs an http.Request for the RemoveOrgMember method

func NewRemoveTeamMemberRequest

func NewRemoveTeamMemberRequest(server string, org OrgParam, team TeamParam, username UsernameParam) (*http.Request, error)

NewRemoveTeamMemberRequest constructs an http.Request for the RemoveTeamMember method

func NewReopenIssueRequest

func NewReopenIssueRequest(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam) (*http.Request, error)

NewReopenIssueRequest constructs an http.Request for the ReopenIssue method

func NewResetRepoWatchRequest

func NewResetRepoWatchRequest(server string, owner RepoOwnerParam, repo RepoNameParam) (*http.Request, error)

NewResetRepoWatchRequest constructs an http.Request for the ResetRepoWatch method

func NewResolveMentionsRequest

func NewResolveMentionsRequest(server string, body ResolveMentionsJSONRequestBody) (*http.Request, error)

NewResolveMentionsRequest calls the generic ResolveMentions builder with application/json body

func NewResolveMentionsRequestWithBody

func NewResolveMentionsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewResolveMentionsRequestWithBody constructs an http.Request for the ResolveMentions method, with any body, and a specified content type

func NewResolveOwnerRequest

func NewResolveOwnerRequest(server string, name string) (*http.Request, error)

NewResolveOwnerRequest constructs an http.Request for the ResolveOwner method

func NewRestoreRepositoryRequest

func NewRestoreRepositoryRequest(server string, repoId openapi_types.UUID) (*http.Request, error)

NewRestoreRepositoryRequest constructs an http.Request for the RestoreRepository method

func NewRevokeTokenRequest

func NewRevokeTokenRequest(server string, tokenId TokenIdParam) (*http.Request, error)

NewRevokeTokenRequest constructs an http.Request for the RevokeToken method

func NewRevokeUserTokenRequest

func NewRevokeUserTokenRequest(server string, username UsernameParam, tokenId TokenIdParam) (*http.Request, error)

NewRevokeUserTokenRequest constructs an http.Request for the RevokeUserToken method

func NewSearchIssuesRequest

func NewSearchIssuesRequest(server string, params *SearchIssuesParams) (*http.Request, error)

NewSearchIssuesRequest constructs an http.Request for the SearchIssues method

func NewSearchRepositoryCodeRequest

func NewSearchRepositoryCodeRequest(server string, owner RepoOwnerParam, repo RepoNameParam, params *SearchRepositoryCodeParams) (*http.Request, error)

NewSearchRepositoryCodeRequest constructs an http.Request for the SearchRepositoryCode method

func NewSetIssueAssigneesRequest

func NewSetIssueAssigneesRequest(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body SetIssueAssigneesJSONRequestBody) (*http.Request, error)

NewSetIssueAssigneesRequest calls the generic SetIssueAssignees builder with application/json body

func NewSetIssueAssigneesRequestWithBody

func NewSetIssueAssigneesRequestWithBody(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader) (*http.Request, error)

NewSetIssueAssigneesRequestWithBody constructs an http.Request for the SetIssueAssignees method, with any body, and a specified content type

func NewSetIssueHiddenRequest

func NewSetIssueHiddenRequest(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body SetIssueHiddenJSONRequestBody) (*http.Request, error)

NewSetIssueHiddenRequest calls the generic SetIssueHidden builder with application/json body

func NewSetIssueHiddenRequestWithBody

func NewSetIssueHiddenRequestWithBody(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader) (*http.Request, error)

NewSetIssueHiddenRequestWithBody constructs an http.Request for the SetIssueHidden method, with any body, and a specified content type

func NewSetIssueLabelsRequest

func NewSetIssueLabelsRequest(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body SetIssueLabelsJSONRequestBody) (*http.Request, error)

NewSetIssueLabelsRequest calls the generic SetIssueLabels builder with application/json body

func NewSetIssueLabelsRequestWithBody

func NewSetIssueLabelsRequestWithBody(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader) (*http.Request, error)

NewSetIssueLabelsRequestWithBody constructs an http.Request for the SetIssueLabels method, with any body, and a specified content type

func NewSetIssueMilestoneRequest

func NewSetIssueMilestoneRequest(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body SetIssueMilestoneJSONRequestBody) (*http.Request, error)

NewSetIssueMilestoneRequest calls the generic SetIssueMilestone builder with application/json body

func NewSetIssueMilestoneRequestWithBody

func NewSetIssueMilestoneRequestWithBody(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader) (*http.Request, error)

NewSetIssueMilestoneRequestWithBody constructs an http.Request for the SetIssueMilestone method, with any body, and a specified content type

func NewSetOrgMemberRequest

func NewSetOrgMemberRequest(server string, org OrgParam, username UsernameParam, body SetOrgMemberJSONRequestBody) (*http.Request, error)

NewSetOrgMemberRequest calls the generic SetOrgMember builder with application/json body

func NewSetOrgMemberRequestWithBody

func NewSetOrgMemberRequestWithBody(server string, org OrgParam, username UsernameParam, contentType string, body io.Reader) (*http.Request, error)

NewSetOrgMemberRequestWithBody constructs an http.Request for the SetOrgMember method, with any body, and a specified content type

func NewSetRepoWatchRequest

func NewSetRepoWatchRequest(server string, owner RepoOwnerParam, repo RepoNameParam, body SetRepoWatchJSONRequestBody) (*http.Request, error)

NewSetRepoWatchRequest calls the generic SetRepoWatch builder with application/json body

func NewSetRepoWatchRequestWithBody

func NewSetRepoWatchRequestWithBody(server string, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader) (*http.Request, error)

NewSetRepoWatchRequestWithBody constructs an http.Request for the SetRepoWatch method, with any body, and a specified content type

func NewSetResourceAttributesRequest

func NewSetResourceAttributesRequest(server string, resourceId openapi_types.UUID, body SetResourceAttributesJSONRequestBody) (*http.Request, error)

NewSetResourceAttributesRequest calls the generic SetResourceAttributes builder with application/json body

func NewSetResourceAttributesRequestWithBody

func NewSetResourceAttributesRequestWithBody(server string, resourceId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewSetResourceAttributesRequestWithBody constructs an http.Request for the SetResourceAttributes method, with any body, and a specified content type

func NewSetTeamMemberRequest

func NewSetTeamMemberRequest(server string, org OrgParam, team TeamParam, username UsernameParam, body SetTeamMemberJSONRequestBody) (*http.Request, error)

NewSetTeamMemberRequest calls the generic SetTeamMember builder with application/json body

func NewSetTeamMemberRequestWithBody

func NewSetTeamMemberRequestWithBody(server string, org OrgParam, team TeamParam, username UsernameParam, contentType string, body io.Reader) (*http.Request, error)

NewSetTeamMemberRequestWithBody constructs an http.Request for the SetTeamMember method, with any body, and a specified content type

func NewStartOidcLoginRequest

func NewStartOidcLoginRequest(server string, provider OidcProviderParam, params *StartOidcLoginParams) (*http.Request, error)

NewStartOidcLoginRequest constructs an http.Request for the StartOidcLogin method

func NewSubscribeIssueRequest

func NewSubscribeIssueRequest(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam) (*http.Request, error)

NewSubscribeIssueRequest constructs an http.Request for the SubscribeIssue method

func NewSyncRepoMirrorRequest

func NewSyncRepoMirrorRequest(server string, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam) (*http.Request, error)

NewSyncRepoMirrorRequest constructs an http.Request for the SyncRepoMirror method

func NewUnlockIssueRequest

func NewUnlockIssueRequest(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam) (*http.Request, error)

NewUnlockIssueRequest constructs an http.Request for the UnlockIssue method

func NewUnsubscribeIssueRequest

func NewUnsubscribeIssueRequest(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam) (*http.Request, error)

NewUnsubscribeIssueRequest constructs an http.Request for the UnsubscribeIssue method

func NewUpdateIssueCommentRequest

func NewUpdateIssueCommentRequest(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, commentId IssueCommentIdParam, body UpdateIssueCommentJSONRequestBody) (*http.Request, error)

NewUpdateIssueCommentRequest calls the generic UpdateIssueComment builder with application/json body

func NewUpdateIssueCommentRequestWithBody

func NewUpdateIssueCommentRequestWithBody(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, commentId IssueCommentIdParam, contentType string, body io.Reader) (*http.Request, error)

NewUpdateIssueCommentRequestWithBody constructs an http.Request for the UpdateIssueComment method, with any body, and a specified content type

func NewUpdateIssueRequest

func NewUpdateIssueRequest(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body UpdateIssueJSONRequestBody) (*http.Request, error)

NewUpdateIssueRequest calls the generic UpdateIssue builder with application/json body

func NewUpdateIssueRequestWithBody

func NewUpdateIssueRequestWithBody(server string, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader) (*http.Request, error)

NewUpdateIssueRequestWithBody constructs an http.Request for the UpdateIssue method, with any body, and a specified content type

func NewUpdateLabelRequest

func NewUpdateLabelRequest(server string, owner RepoOwnerParam, repo RepoNameParam, name LabelNameParam, body UpdateLabelJSONRequestBody) (*http.Request, error)

NewUpdateLabelRequest calls the generic UpdateLabel builder with application/json body

func NewUpdateLabelRequestWithBody

func NewUpdateLabelRequestWithBody(server string, owner RepoOwnerParam, repo RepoNameParam, name LabelNameParam, contentType string, body io.Reader) (*http.Request, error)

NewUpdateLabelRequestWithBody constructs an http.Request for the UpdateLabel method, with any body, and a specified content type

func NewUpdateMilestoneRequest

func NewUpdateMilestoneRequest(server string, owner RepoOwnerParam, repo RepoNameParam, milestoneNumber MilestoneNumberParam, body UpdateMilestoneJSONRequestBody) (*http.Request, error)

NewUpdateMilestoneRequest calls the generic UpdateMilestone builder with application/json body

func NewUpdateMilestoneRequestWithBody

func NewUpdateMilestoneRequestWithBody(server string, owner RepoOwnerParam, repo RepoNameParam, milestoneNumber MilestoneNumberParam, contentType string, body io.Reader) (*http.Request, error)

NewUpdateMilestoneRequestWithBody constructs an http.Request for the UpdateMilestone method, with any body, and a specified content type

func NewUpdateNotificationPreferencesRequest

func NewUpdateNotificationPreferencesRequest(server string, body UpdateNotificationPreferencesJSONRequestBody) (*http.Request, error)

NewUpdateNotificationPreferencesRequest calls the generic UpdateNotificationPreferences builder with application/json body

func NewUpdateNotificationPreferencesRequestWithBody

func NewUpdateNotificationPreferencesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateNotificationPreferencesRequestWithBody constructs an http.Request for the UpdateNotificationPreferences method, with any body, and a specified content type

func NewUpdateNotificationRequest

func NewUpdateNotificationRequest(server string, notificationId NotificationIdParam, body UpdateNotificationJSONRequestBody) (*http.Request, error)

NewUpdateNotificationRequest calls the generic UpdateNotification builder with application/json body

func NewUpdateNotificationRequestWithBody

func NewUpdateNotificationRequestWithBody(server string, notificationId NotificationIdParam, contentType string, body io.Reader) (*http.Request, error)

NewUpdateNotificationRequestWithBody constructs an http.Request for the UpdateNotification method, with any body, and a specified content type

func NewUpdateOrgWebhookRequest

func NewUpdateOrgWebhookRequest(server string, org OrgParam, hookId WebhookIdParam, body UpdateOrgWebhookJSONRequestBody) (*http.Request, error)

NewUpdateOrgWebhookRequest calls the generic UpdateOrgWebhook builder with application/json body

func NewUpdateOrgWebhookRequestWithBody

func NewUpdateOrgWebhookRequestWithBody(server string, org OrgParam, hookId WebhookIdParam, contentType string, body io.Reader) (*http.Request, error)

NewUpdateOrgWebhookRequestWithBody constructs an http.Request for the UpdateOrgWebhook method, with any body, and a specified content type

func NewUpdateOrganizationRequest

func NewUpdateOrganizationRequest(server string, org OrgParam, body UpdateOrganizationJSONRequestBody) (*http.Request, error)

NewUpdateOrganizationRequest calls the generic UpdateOrganization builder with application/json body

func NewUpdateOrganizationRequestWithBody

func NewUpdateOrganizationRequestWithBody(server string, org OrgParam, contentType string, body io.Reader) (*http.Request, error)

NewUpdateOrganizationRequestWithBody constructs an http.Request for the UpdateOrganization method, with any body, and a specified content type

func NewUpdateRepoMirrorRequest

func NewUpdateRepoMirrorRequest(server string, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam, body UpdateRepoMirrorJSONRequestBody) (*http.Request, error)

NewUpdateRepoMirrorRequest calls the generic UpdateRepoMirror builder with application/json body

func NewUpdateRepoMirrorRequestWithBody

func NewUpdateRepoMirrorRequestWithBody(server string, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam, contentType string, body io.Reader) (*http.Request, error)

NewUpdateRepoMirrorRequestWithBody constructs an http.Request for the UpdateRepoMirror method, with any body, and a specified content type

func NewUpdateRepoWebhookRequest

func NewUpdateRepoWebhookRequest(server string, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, body UpdateRepoWebhookJSONRequestBody) (*http.Request, error)

NewUpdateRepoWebhookRequest calls the generic UpdateRepoWebhook builder with application/json body

func NewUpdateRepoWebhookRequestWithBody

func NewUpdateRepoWebhookRequestWithBody(server string, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, contentType string, body io.Reader) (*http.Request, error)

NewUpdateRepoWebhookRequestWithBody constructs an http.Request for the UpdateRepoWebhook method, with any body, and a specified content type

func NewUpdateRepositoryRequest

func NewUpdateRepositoryRequest(server string, owner RepoOwnerParam, repo RepoNameParam, body UpdateRepositoryJSONRequestBody) (*http.Request, error)

NewUpdateRepositoryRequest calls the generic UpdateRepository builder with application/json body

func NewUpdateRepositoryRequestWithBody

func NewUpdateRepositoryRequestWithBody(server string, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader) (*http.Request, error)

NewUpdateRepositoryRequestWithBody constructs an http.Request for the UpdateRepository method, with any body, and a specified content type

func NewUpdateResourceGrantRequest

func NewUpdateResourceGrantRequest(server string, resourceId ResourceIdParam, grantId GrantIdParam, body UpdateResourceGrantJSONRequestBody) (*http.Request, error)

NewUpdateResourceGrantRequest calls the generic UpdateResourceGrant builder with application/json body

func NewUpdateResourceGrantRequestWithBody

func NewUpdateResourceGrantRequestWithBody(server string, resourceId ResourceIdParam, grantId GrantIdParam, contentType string, body io.Reader) (*http.Request, error)

NewUpdateResourceGrantRequestWithBody constructs an http.Request for the UpdateResourceGrant method, with any body, and a specified content type

func NewUpdateResourceRequest

func NewUpdateResourceRequest(server string, resourceId ResourceIdParam, body UpdateResourceJSONRequestBody) (*http.Request, error)

NewUpdateResourceRequest calls the generic UpdateResource builder with application/json body

func NewUpdateResourceRequestWithBody

func NewUpdateResourceRequestWithBody(server string, resourceId ResourceIdParam, contentType string, body io.Reader) (*http.Request, error)

NewUpdateResourceRequestWithBody constructs an http.Request for the UpdateResource method, with any body, and a specified content type

func NewUpdateTeamRequest

func NewUpdateTeamRequest(server string, org OrgParam, team TeamParam, body UpdateTeamJSONRequestBody) (*http.Request, error)

NewUpdateTeamRequest calls the generic UpdateTeam builder with application/json body

func NewUpdateTeamRequestWithBody

func NewUpdateTeamRequestWithBody(server string, org OrgParam, team TeamParam, contentType string, body io.Reader) (*http.Request, error)

NewUpdateTeamRequestWithBody constructs an http.Request for the UpdateTeam method, with any body, and a specified content type

func NewUpdateUserRequest

func NewUpdateUserRequest(server string, username UsernameParam, body UpdateUserJSONRequestBody) (*http.Request, error)

NewUpdateUserRequest calls the generic UpdateUser builder with application/json body

func NewUpdateUserRequestWithBody

func NewUpdateUserRequestWithBody(server string, username UsernameParam, contentType string, body io.Reader) (*http.Request, error)

NewUpdateUserRequestWithBody constructs an http.Request for the UpdateUser method, with any body, and a specified content type

func NewUploadIssueAttachmentRequestWithBody

func NewUploadIssueAttachmentRequestWithBody(server string, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader) (*http.Request, error)

NewUploadIssueAttachmentRequestWithBody constructs an http.Request for the UploadIssueAttachment method, with any body, and a specified content type

func NewVerifyCredentialRequest

func NewVerifyCredentialRequest(server string, body VerifyCredentialJSONRequestBody) (*http.Request, error)

NewVerifyCredentialRequest calls the generic VerifyCredential builder with application/json body

func NewVerifyCredentialRequestWithBody

func NewVerifyCredentialRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewVerifyCredentialRequestWithBody constructs an http.Request for the VerifyCredential method, with any body, and a specified content type

Types

type AccessSource

type AccessSource struct {
	Kind AccessSourceKind `json:"kind"`

	// Organization Solo per `team` e per `owner` di un'organizzazione.
	Organization *string `json:"organization,omitempty"`

	// Role Ruolo su una risorsa, in ordine crescente di potere.
	Role ResourceRole `json:"role"`

	// Team Solo per `team`.
	Team *string `json:"team,omitempty"`
}

AccessSource Una fonte del ruolo su un repo. `direct`: grant all'utente; `team`: grant al team `organization`/`team` (di cui e' membro o la cui organizzazione possiede); `owner`: owner dell'organizzazione proprietaria (`organization`) o proprietario del repo personale (P1, P6), sempre `admin`; `internal`: visibilita' interna (P3), `read`; `installation_admin`: amministratore dell'installazione, `admin`.

type AccessSourceKind

type AccessSourceKind string

AccessSourceKind defines model for AccessSource.Kind.

const (
	AccessSourceKindDirect            AccessSourceKind = "direct"
	AccessSourceKindInstallationAdmin AccessSourceKind = "installation_admin"
	AccessSourceKindInternal          AccessSourceKind = "internal"
	AccessSourceKindOwner             AccessSourceKind = "owner"
	AccessSourceKindTeam              AccessSourceKind = "team"
)

Defines values for AccessSourceKind.

func (AccessSourceKind) Valid

func (e AccessSourceKind) Valid() bool

Valid indicates whether the value is a known member of the AccessSourceKind enum.

type AddSshKeyInput

type AddSshKeyInput struct {
	// PublicKey Riga in formato `authorized_keys` (tipo, base64, commento facoltativo).
	//
	// Example: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA... alice@laptop
	PublicKey string `json:"publicKey"`
	Title     string `json:"title"`
}

AddSshKeyInput defines model for AddSshKeyInput.

type AddSshKeyJSONRequestBody

type AddSshKeyJSONRequestBody = AddSshKeyInput

AddSshKeyJSONRequestBody defines body for AddSshKey for application/json ContentType.

type AddSshKeyResponse

type AddSshKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *SshKey
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *AddSshKeyResponse201Headers
}

func ParseAddSshKeyResponse

func ParseAddSshKeyResponse(rsp *http.Response) (*AddSshKeyResponse, error)

ParseAddSshKeyResponse parses an HTTP response from a AddSshKeyWithResponse call

func (AddSshKeyResponse) ContentType

func (r AddSshKeyResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (AddSshKeyResponse) GetBody

func (r AddSshKeyResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (AddSshKeyResponse) GetJSON201

func (r AddSshKeyResponse) GetJSON201() *SshKey

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (AddSshKeyResponse) GetJSON400

func (r AddSshKeyResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (AddSshKeyResponse) GetJSON401

func (r AddSshKeyResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (AddSshKeyResponse) GetJSON403

func (r AddSshKeyResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (AddSshKeyResponse) GetJSON409

func (r AddSshKeyResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (AddSshKeyResponse) GetJSON422

func (r AddSshKeyResponse) GetJSON422() *UnprocessableEntity

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (AddSshKeyResponse) GetJSONDefault

func (r AddSshKeyResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (AddSshKeyResponse) Status

func (r AddSshKeyResponse) Status() string

Status returns HTTPResponse.Status

func (AddSshKeyResponse) StatusCode

func (r AddSshKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AddSshKeyResponse201Headers

type AddSshKeyResponse201Headers struct {
	Location *string
}

AddSshKeyResponse201Headers the declared response headers of an HTTP 201 response for AddSshKey

type ArchiveFormatParam

type ArchiveFormatParam string

ArchiveFormatParam defines model for ArchiveFormatParam.

const (
	ArchiveFormatParamTarGz ArchiveFormatParam = "tar.gz"
	ArchiveFormatParamZip   ArchiveFormatParam = "zip"
)

Defines values for ArchiveFormatParam.

func (ArchiveFormatParam) Valid

func (e ArchiveFormatParam) Valid() bool

Valid indicates whether the value is a known member of the ArchiveFormatParam enum.

type BadRequest

type BadRequest = Error

BadRequest Formato unico degli errori per tutta l'API pubblica. Codici comuni per stato: 400 `bad_request`; 401 `unauthenticated`, `invalid_credentials`; 403 `forbidden`, `insufficient_scope`, `password_change_required`; 429 `too_many_attempts`; 404 `not_found`; 409 `conflict` e varianti specifiche (`already_exists`, `last_admin`, `last_owner`, `ssh_key_in_use`, `oidc_identity_unlinked`); 422 `validation_failed` (`details.fields`). Le risposte 401 non distinguono mai "utente inesistente" da "password errata".

type Blame

type Blame struct {
	Path   string       `json:"path"`
	Ranges []BlameRange `json:"ranges"`
	Ref    string       `json:"ref"`
}

Blame defines model for Blame.

type BlameRange

type BlameRange struct {
	Commit    CommitSummary `json:"commit"`
	EndLine   int           `json:"endLine"`
	StartLine int           `json:"startLine"`
}

BlameRange defines model for BlameRange.

type Branch

type Branch struct {
	Commit    CommitSummary `json:"commit"`
	IsDefault bool          `json:"isDefault"`
	Name      string        `json:"name"`

	// Protected Protezione del branch principale (R9). Per il servizio git e' sempre false, la imposta core.
	Protected bool `json:"protected"`
}

Branch defines model for Branch.

type BranchList

type BranchList struct {
	Items []Branch `json:"items"`
	Total int      `json:"total"`
}

BranchList defines model for BranchList.

type ChangePasswordInput

type ChangePasswordInput struct {
	CurrentPassword *string `json:"currentPassword,omitempty"`
	NewPassword     *string `json:"newPassword,omitempty"`
}

ChangePasswordInput defines model for ChangePasswordInput.

type ChangePasswordJSONRequestBody

type ChangePasswordJSONRequestBody = ChangePasswordInput

ChangePasswordJSONRequestBody defines body for ChangePassword for application/json ContentType.

type ChangePasswordResponse

type ChangePasswordResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseChangePasswordResponse

func ParseChangePasswordResponse(rsp *http.Response) (*ChangePasswordResponse, error)

ParseChangePasswordResponse parses an HTTP response from a ChangePasswordWithResponse call

func (ChangePasswordResponse) ContentType

func (r ChangePasswordResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ChangePasswordResponse) GetBody

func (r ChangePasswordResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ChangePasswordResponse) GetJSON400

func (r ChangePasswordResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ChangePasswordResponse) GetJSON401

func (r ChangePasswordResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ChangePasswordResponse) GetJSON403

func (r ChangePasswordResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ChangePasswordResponse) GetJSON404

func (r ChangePasswordResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ChangePasswordResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (ChangePasswordResponse) GetJSONDefault

func (r ChangePasswordResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ChangePasswordResponse) Status

func (r ChangePasswordResponse) Status() string

Status returns HTTPResponse.Status

func (ChangePasswordResponse) StatusCode

func (r ChangePasswordResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CheckPermissionInput

type CheckPermissionInput struct {
	ResourceId openapi_types.UUID `json:"resourceId"`

	// Role Ruolo su una risorsa, in ordine crescente di potere.
	Role   ResourceRole       `json:"role"`
	UserId openapi_types.UUID `json:"userId"`
}

CheckPermissionInput defines model for CheckPermissionInput.

type CheckPermissionJSONRequestBody

type CheckPermissionJSONRequestBody = CheckPermissionInput

CheckPermissionJSONRequestBody defines body for CheckPermission for application/json ContentType.

type CheckPermissionResponse

type CheckPermissionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CheckPermissionResult
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseCheckPermissionResponse

func ParseCheckPermissionResponse(rsp *http.Response) (*CheckPermissionResponse, error)

ParseCheckPermissionResponse parses an HTTP response from a CheckPermissionWithResponse call

func (CheckPermissionResponse) ContentType

func (r CheckPermissionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CheckPermissionResponse) GetBody

func (r CheckPermissionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CheckPermissionResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CheckPermissionResponse) GetJSON400

func (r CheckPermissionResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CheckPermissionResponse) GetJSON401

func (r CheckPermissionResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CheckPermissionResponse) GetJSON404

func (r CheckPermissionResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CheckPermissionResponse) GetJSONDefault

func (r CheckPermissionResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (CheckPermissionResponse) Status

func (r CheckPermissionResponse) Status() string

Status returns HTTPResponse.Status

func (CheckPermissionResponse) StatusCode

func (r CheckPermissionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CheckPermissionResult

type CheckPermissionResult struct {
	Allowed       bool          `json:"allowed"`
	EffectiveRole *ResourceRole `json:"effectiveRole,omitempty"`
}

CheckPermissionResult defines model for CheckPermissionResult.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) AddSshKey

func (c *Client) AddSshKey(ctx context.Context, body AddSshKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

AddSshKey Aggiunge una chiave SSH

Scope `write:user`. Il servizio valida la chiave, calcola il fingerprint SHA256 e lo tiene unico: la stessa chiave non puo' appartenere a due utenti (409 `ssh_key_in_use`).

Takes a body of the `application/json` content type.

Corresponds with POST /user/ssh-keys (the `AddSshKey` operationId).

func (*Client) AddSshKeyWithBody

func (c *Client) AddSshKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

AddSshKeyWithBody Aggiunge una chiave SSH

Scope `write:user`. Il servizio valida la chiave, calcola il fingerprint SHA256 e lo tiene unico: la stessa chiave non puo' appartenere a due utenti (409 `ssh_key_in_use`).

Takes any type of body and a specified content type.

Corresponds with POST /user/ssh-keys (the `AddSshKey` operationId).

func (*Client) ChangePassword

func (c *Client) ChangePassword(ctx context.Context, username UsernameParam, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ChangePassword Cambia la password

Scope `write:user`. L'utente stesso deve fornire `currentPassword`; un amministratore no. Con `currentPassword` sbagliata risponde 403 `forbidden` (il chiamante e' gia' autenticato: un 401 farebbe uscire il client). Revoca le altre sessioni dell'utente.

Takes a body of the `application/json` content type.

Corresponds with PUT /users/{username}/password (the `ChangePassword` operationId).

func (*Client) ChangePasswordWithBody

func (c *Client) ChangePasswordWithBody(ctx context.Context, username UsernameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

ChangePasswordWithBody Cambia la password

Scope `write:user`. L'utente stesso deve fornire `currentPassword`; un amministratore no. Con `currentPassword` sbagliata risponde 403 `forbidden` (il chiamante e' gia' autenticato: un 401 farebbe uscire il client). Revoca le altre sessioni dell'utente.

Takes any type of body and a specified content type.

Corresponds with PUT /users/{username}/password (the `ChangePassword` operationId).

func (*Client) CheckPermission

func (c *Client) CheckPermission(ctx context.Context, body CheckPermissionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CheckPermission Verifica un permesso su una risorsa

Usata da core e git per applicare i permessi: `allowed` e' vero se l'utente ha almeno il ruolo richiesto sulla risorsa (grant diretto, via team, amministratore; owner dell'organizzazione e proprietario del repo personale sono admin, una risorsa interna e' leggibile da ogni utente attivo: P1, P6, P3).

Takes a body of the `application/json` content type.

Corresponds with POST /internal/permissions/check (the `CheckPermission` operationId).

func (*Client) CheckPermissionWithBody

func (c *Client) CheckPermissionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CheckPermissionWithBody Verifica un permesso su una risorsa

Usata da core e git per applicare i permessi: `allowed` e' vero se l'utente ha almeno il ruolo richiesto sulla risorsa (grant diretto, via team, amministratore; owner dell'organizzazione e proprietario del repo personale sono admin, una risorsa interna e' leggibile da ogni utente attivo: P1, P6, P3).

Takes any type of body and a specified content type.

Corresponds with POST /internal/permissions/check (the `CheckPermission` operationId).

func (*Client) CloseIssue

func (c *Client) CloseIssue(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body CloseIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CloseIssue Chiude una issue con un motivo

Motivo `completed`, `not_planned` o `duplicate` (I2); con `duplicate` serve `duplicateOf`, il numero di un'altra issue dello stesso repo diversa da questa (422 altrimenti, e anche se `reason` non e' `duplicate` e `duplicateOf` c'e'). Possono chiudere chi ha `write` e l'autore della issue (I3). Una issue gia' chiusa risponde 409 `already_closed`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type.

Corresponds with POST /repos/{owner}/{repo}/issues/{number}/close (the `CloseIssue` operationId).

func (*Client) CloseIssueWithBody

func (c *Client) CloseIssueWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CloseIssueWithBody Chiude una issue con un motivo

Motivo `completed`, `not_planned` o `duplicate` (I2); con `duplicate` serve `duplicateOf`, il numero di un'altra issue dello stesso repo diversa da questa (422 altrimenti, e anche se `reason` non e' `duplicate` e `duplicateOf` c'e'). Possono chiudere chi ha `write` e l'autore della issue (I3). Una issue gia' chiusa risponde 409 `already_closed`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes any type of body and a specified content type.

Corresponds with POST /repos/{owner}/{repo}/issues/{number}/close (the `CloseIssue` operationId).

func (*Client) CreateIssue

func (c *Client) CreateIssue(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body CreateIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateIssue Apre una issue

Chi vede il repo (anche per visibilita' interna) apre issues (I3, P7). Il numero `#n` viene dal contatore del repo condiviso con le PR (I1) e non si riusa mai. Etichette, assegnatari e milestone nel corpo richiedono `write` (403 altrimenti); gli assegnatari sono al massimo 10 e devono avere `write` (I6, 422). `attachmentIds` sono allegati gia' caricati da chi crea (I9). Testo oltre il limite: 413 (`body_too_large`, 1 MiB). Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10). Un repo che l'utente non puo' leggere, eliminato o inesistente risponde 404 (non 403), per non rivelarne l'esistenza.

Takes a body of the `application/json` content type.

Corresponds with POST /repos/{owner}/{repo}/issues (the `CreateIssue` operationId).

func (*Client) CreateIssueComment

func (c *Client) CreateIssueComment(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body CreateIssueCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateIssueComment Commenta la issue

Chi vede il repo commenta (I3), anche issues chiuse. Con la discussione bloccata (I11) solo chi ha `write` (403 `locked`). Testo Markdown, al massimo 65536 caratteri (413 `body_too_large` oltre 1 MiB); `attachmentIds` come in `createIssue`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type.

Corresponds with POST /repos/{owner}/{repo}/issues/{number}/comments (the `CreateIssueComment` operationId).

func (*Client) CreateIssueCommentWithBody

func (c *Client) CreateIssueCommentWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateIssueCommentWithBody Commenta la issue

Chi vede il repo commenta (I3), anche issues chiuse. Con la discussione bloccata (I11) solo chi ha `write` (403 `locked`). Testo Markdown, al massimo 65536 caratteri (413 `body_too_large` oltre 1 MiB); `attachmentIds` come in `createIssue`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes any type of body and a specified content type.

Corresponds with POST /repos/{owner}/{repo}/issues/{number}/comments (the `CreateIssueComment` operationId).

func (*Client) CreateIssueWithBody

func (c *Client) CreateIssueWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateIssueWithBody Apre una issue

Chi vede il repo (anche per visibilita' interna) apre issues (I3, P7). Il numero `#n` viene dal contatore del repo condiviso con le PR (I1) e non si riusa mai. Etichette, assegnatari e milestone nel corpo richiedono `write` (403 altrimenti); gli assegnatari sono al massimo 10 e devono avere `write` (I6, 422). `attachmentIds` sono allegati gia' caricati da chi crea (I9). Testo oltre il limite: 413 (`body_too_large`, 1 MiB). Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10). Un repo che l'utente non puo' leggere, eliminato o inesistente risponde 404 (non 403), per non rivelarne l'esistenza.

Takes any type of body and a specified content type.

Corresponds with POST /repos/{owner}/{repo}/issues (the `CreateIssue` operationId).

func (*Client) CreateLabel

func (c *Client) CreateLabel(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body CreateLabelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateLabel Crea un'etichetta

Serve `write` (I3, I5). Il nome e' unico nel repo senza distinguere maiuscole/minuscole (409 `already_exists`), 1-50 caratteri, senza `/`, virgole ne' caratteri di controllo. Il colore e' esadecimale a sei cifre. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type.

Corresponds with POST /repos/{owner}/{repo}/labels (the `CreateLabel` operationId).

func (*Client) CreateLabelWithBody

func (c *Client) CreateLabelWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateLabelWithBody Crea un'etichetta

Serve `write` (I3, I5). Il nome e' unico nel repo senza distinguere maiuscole/minuscole (409 `already_exists`), 1-50 caratteri, senza `/`, virgole ne' caratteri di controllo. Il colore e' esadecimale a sei cifre. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes any type of body and a specified content type.

Corresponds with POST /repos/{owner}/{repo}/labels (the `CreateLabel` operationId).

func (*Client) CreateMilestone

func (c *Client) CreateMilestone(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body CreateMilestoneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateMilestone Crea una milestone

Serve `write` (I7). Titolo unico nel repo senza distinguere maiuscole/minuscole (409 `already_exists`), descrizione e data (`dueOn`) facoltative. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type.

Corresponds with POST /repos/{owner}/{repo}/milestones (the `CreateMilestone` operationId).

func (*Client) CreateMilestoneWithBody

func (c *Client) CreateMilestoneWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateMilestoneWithBody Crea una milestone

Serve `write` (I7). Titolo unico nel repo senza distinguere maiuscole/minuscole (409 `already_exists`), descrizione e data (`dueOn`) facoltative. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes any type of body and a specified content type.

Corresponds with POST /repos/{owner}/{repo}/milestones (the `CreateMilestone` operationId).

func (*Client) CreateOrgWebhook

func (c *Client) CreateOrgWebhook(ctx context.Context, org OrgParam, body CreateOrgWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateOrgWebhook Crea un webhook di un'organizzazione

Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. `url` http o https; sempre bloccati loopback, indirizzi interni del cluster e link-local, anche dopo redirect e risoluzione DNS, e le destinazioni vietate dall'amministratore (C8): 422 (`details.fields.url`, codice `url_not_allowed`). `events` almeno uno fra `push`, `issues`, `issue_comment`, `repository`. Il `secret` e' facoltativo (senza, la consegna non e' firmata): non torna mai nelle risposte. Il formato dei payload e le intestazioni sono in docs/webhooks.md.

Takes a body of the `application/json` content type.

Corresponds with POST /orgs/{org}/hooks (the `CreateOrgWebhook` operationId).

func (*Client) CreateOrgWebhookWithBody

func (c *Client) CreateOrgWebhookWithBody(ctx context.Context, org OrgParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateOrgWebhookWithBody Crea un webhook di un'organizzazione

Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. `url` http o https; sempre bloccati loopback, indirizzi interni del cluster e link-local, anche dopo redirect e risoluzione DNS, e le destinazioni vietate dall'amministratore (C8): 422 (`details.fields.url`, codice `url_not_allowed`). `events` almeno uno fra `push`, `issues`, `issue_comment`, `repository`. Il `secret` e' facoltativo (senza, la consegna non e' firmata): non torna mai nelle risposte. Il formato dei payload e le intestazioni sono in docs/webhooks.md.

Takes any type of body and a specified content type.

Corresponds with POST /orgs/{org}/hooks (the `CreateOrgWebhook` operationId).

func (*Client) CreateOrganization

func (c *Client) CreateOrganization(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateOrganization Crea un'organizzazione

Scope `write:org`. Il creatore ne diventa `owner`.

Takes a body of the `application/json` content type.

Corresponds with POST /orgs (the `CreateOrganization` operationId).

func (*Client) CreateOrganizationWithBody

func (c *Client) CreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateOrganizationWithBody Crea un'organizzazione

Scope `write:org`. Il creatore ne diventa `owner`.

Takes any type of body and a specified content type.

Corresponds with POST /orgs (the `CreateOrganization` operationId).

func (*Client) CreateRepoMirror

func (c *Client) CreateRepoMirror(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body CreateRepoMirrorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateRepoMirror Crea un mirror in push di un repo

Serve `admin` sul repo (V8). Il mirror spinge il branch principale e i tag del repo su un altro server Git in HTTPS, a ogni push su quei ref e su richiesta (`sync`), SEMPRE senza push forzato: se la destinazione ha una storia diversa il mirror si ferma (`state: diverged`) e non sovrascrive mai. `url` e' `https://` senza credenziali nell'indirizzo; sempre bloccati loopback, indirizzi interni del cluster e link-local anche dopo la risoluzione DNS, e le destinazioni vietate dall'amministratore (C8): 422 `url_not_allowed` (`details.fields.url`). `username` e `token` sono la credenziale per la destinazione (per GitHub: utente e token personale con permesso di scrittura): il token e' cifrato (AES-256-GCM, come i segreti dei webhook) e non torna mai nelle risposte. Senza chiave dei segreti sul server: 503 `mirror_secrets_unavailable`. Un mirror attivo parte subito con una prima sincronizzazione. Lo stesso `url` due volte sullo stesso repo: 409 `conflict`. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type.

Corresponds with POST /repos/{owner}/{repo}/mirrors (the `CreateRepoMirror` operationId).

func (*Client) CreateRepoMirrorWithBody

func (c *Client) CreateRepoMirrorWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateRepoMirrorWithBody Crea un mirror in push di un repo

Serve `admin` sul repo (V8). Il mirror spinge il branch principale e i tag del repo su un altro server Git in HTTPS, a ogni push su quei ref e su richiesta (`sync`), SEMPRE senza push forzato: se la destinazione ha una storia diversa il mirror si ferma (`state: diverged`) e non sovrascrive mai. `url` e' `https://` senza credenziali nell'indirizzo; sempre bloccati loopback, indirizzi interni del cluster e link-local anche dopo la risoluzione DNS, e le destinazioni vietate dall'amministratore (C8): 422 `url_not_allowed` (`details.fields.url`). `username` e `token` sono la credenziale per la destinazione (per GitHub: utente e token personale con permesso di scrittura): il token e' cifrato (AES-256-GCM, come i segreti dei webhook) e non torna mai nelle risposte. Senza chiave dei segreti sul server: 503 `mirror_secrets_unavailable`. Un mirror attivo parte subito con una prima sincronizzazione. Lo stesso `url` due volte sullo stesso repo: 409 `conflict`. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).

Takes any type of body and a specified content type.

Corresponds with POST /repos/{owner}/{repo}/mirrors (the `CreateRepoMirror` operationId).

func (*Client) CreateRepoWebhook

func (c *Client) CreateRepoWebhook(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body CreateRepoWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateRepoWebhook Crea un webhook di un repo

Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. `url` http o https; sempre bloccati loopback, indirizzi interni del cluster e link-local, anche dopo redirect e risoluzione DNS, e le destinazioni vietate dall'amministratore (C8): 422 (`details.fields.url`, codice `url_not_allowed`). `events` almeno uno fra `push`, `issues`, `issue_comment`, `repository`. Il `secret` e' facoltativo (senza, la consegna non e' firmata): non torna mai nelle risposte. Il formato dei payload e le intestazioni sono in docs/webhooks.md. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type.

Corresponds with POST /repos/{owner}/{repo}/hooks (the `CreateRepoWebhook` operationId).

func (*Client) CreateRepoWebhookWithBody

func (c *Client) CreateRepoWebhookWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateRepoWebhookWithBody Crea un webhook di un repo

Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. `url` http o https; sempre bloccati loopback, indirizzi interni del cluster e link-local, anche dopo redirect e risoluzione DNS, e le destinazioni vietate dall'amministratore (C8): 422 (`details.fields.url`, codice `url_not_allowed`). `events` almeno uno fra `push`, `issues`, `issue_comment`, `repository`. Il `secret` e' facoltativo (senza, la consegna non e' firmata): non torna mai nelle risposte. Il formato dei payload e le intestazioni sono in docs/webhooks.md. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).

Takes any type of body and a specified content type.

Corresponds with POST /repos/{owner}/{repo}/hooks (the `CreateRepoWebhook` operationId).

func (*Client) CreateRepository

func (c *Client) CreateRepository(ctx context.Context, body CreateRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateRepository Crea un repo

`owner` e' il nome dell'utente o dell'organizzazione (spazio di nomi unico, R1). Serve poter creare repo per quell'owner: se stesso, o un owner dell'organizzazione. Il creatore riceve il ruolo `admin`. Senza opzioni di contenuto iniziale (R5) il repo nasce vuoto. Risponde 409 se il nome e' occupato, anche da un repo eliminato (R2); 404 se `owner` non esiste.

Takes a body of the `application/json` content type.

Corresponds with POST /repos (the `CreateRepository` operationId).

func (*Client) CreateRepositoryWithBody

func (c *Client) CreateRepositoryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateRepositoryWithBody Crea un repo

`owner` e' il nome dell'utente o dell'organizzazione (spazio di nomi unico, R1). Serve poter creare repo per quell'owner: se stesso, o un owner dell'organizzazione. Il creatore riceve il ruolo `admin`. Senza opzioni di contenuto iniziale (R5) il repo nasce vuoto. Risponde 409 se il nome e' occupato, anche da un repo eliminato (R2); 404 se `owner` non esiste.

Takes any type of body and a specified content type.

Corresponds with POST /repos (the `CreateRepository` operationId).

func (*Client) CreateResource

func (c *Client) CreateResource(ctx context.Context, body CreateResourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateResource Crea una risorsa

Takes a body of the `application/json` content type.

Corresponds with POST /resources (the `CreateResource` operationId).

func (*Client) CreateResourceGrant

func (c *Client) CreateResourceGrant(ctx context.Context, resourceId ResourceIdParam, body CreateResourceGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateResourceGrant Assegna un ruolo su una risorsa a un utente o a un team

Scope `write:resource`; serve il ruolo `admin` sulla risorsa. Un solo grant per (risorsa, soggetto): il secondo risponde 409.

Takes a body of the `application/json` content type.

Corresponds with POST /resources/{resourceId}/grants (the `CreateResourceGrant` operationId).

func (*Client) CreateResourceGrantWithBody

func (c *Client) CreateResourceGrantWithBody(ctx context.Context, resourceId ResourceIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateResourceGrantWithBody Assegna un ruolo su una risorsa a un utente o a un team

Scope `write:resource`; serve il ruolo `admin` sulla risorsa. Un solo grant per (risorsa, soggetto): il secondo risponde 409.

Takes any type of body and a specified content type.

Corresponds with POST /resources/{resourceId}/grants (the `CreateResourceGrant` operationId).

func (*Client) CreateResourceWithBody

func (c *Client) CreateResourceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateResourceWithBody Crea una risorsa

Takes any type of body and a specified content type.

Corresponds with POST /resources (the `CreateResource` operationId).

func (*Client) CreateTeam

func (c *Client) CreateTeam(ctx context.Context, org OrgParam, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateTeam Crea un team

Scope `write:org`, ruolo `owner`.

Takes a body of the `application/json` content type.

Corresponds with POST /orgs/{org}/teams (the `CreateTeam` operationId).

func (*Client) CreateTeamWithBody

func (c *Client) CreateTeamWithBody(ctx context.Context, org OrgParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateTeamWithBody Crea un team

Scope `write:org`, ruolo `owner`.

Takes any type of body and a specified content type.

Corresponds with POST /orgs/{org}/teams (the `CreateTeam` operationId).

func (*Client) CreateToken

func (c *Client) CreateToken(ctx context.Context, body CreateTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateToken Crea un token personale

Scope `write:user`. Il valore (`gst_...`) e' nella risposta una volta sola: il servizio conserva solo l'hash. Un token non puo' avere scope che il suo creatore non ha.

Takes a body of the `application/json` content type.

Corresponds with POST /user/tokens (the `CreateToken` operationId).

func (*Client) CreateTokenWithBody

func (c *Client) CreateTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateTokenWithBody Crea un token personale

Scope `write:user`. Il valore (`gst_...`) e' nella risposta una volta sola: il servizio conserva solo l'hash. Un token non puo' avere scope che il suo creatore non ha.

Takes any type of body and a specified content type.

Corresponds with POST /user/tokens (the `CreateToken` operationId).

func (*Client) CreateUser

func (c *Client) CreateUser(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateUser Crea un utente

Solo amministratori, scope `write:user`. Serve a creare utenti umani e agenti; non c'e' auto-registrazione.

Takes a body of the `application/json` content type.

Corresponds with POST /users (the `CreateUser` operationId).

func (*Client) CreateUserToken

func (c *Client) CreateUserToken(ctx context.Context, username UsernameParam, body CreateUserTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateUserToken Crea un token per un utente agent

Solo amministratori, scope `write:user` (regola P5). Solo per utenti di tipo `agent` (409 `not_an_agent` altrimenti). Stesse regole dei token personali: scope dal catalogo, scadenza obbligatoria con lo stesso massimo, valore (`gst_...`) mostrato una sola volta, nel database solo lo SHA-256.

Takes a body of the `application/json` content type.

Corresponds with POST /users/{username}/tokens (the `CreateUserToken` operationId).

func (*Client) CreateUserTokenWithBody

func (c *Client) CreateUserTokenWithBody(ctx context.Context, username UsernameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateUserTokenWithBody Crea un token per un utente agent

Solo amministratori, scope `write:user` (regola P5). Solo per utenti di tipo `agent` (409 `not_an_agent` altrimenti). Stesse regole dei token personali: scope dal catalogo, scadenza obbligatoria con lo stesso massimo, valore (`gst_...`) mostrato una sola volta, nel database solo lo SHA-256.

Takes any type of body and a specified content type.

Corresponds with POST /users/{username}/tokens (the `CreateUserToken` operationId).

func (*Client) CreateUserWithBody

func (c *Client) CreateUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateUserWithBody Crea un utente

Solo amministratori, scope `write:user`. Serve a creare utenti umani e agenti; non c'e' auto-registrazione.

Takes any type of body and a specified content type.

Corresponds with POST /users (the `CreateUser` operationId).

func (*Client) DeleteIssueComment

func (c *Client) DeleteIssueComment(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, commentId IssueCommentIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteIssueComment Elimina un commento

L'autore o chi ha `admin` (I4). Il testo viene svuotato e si registra l'evento `comment_deleted` ("comment deleted"); le versioni precedenti restano visibili a `admin`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Corresponds with DELETE /repos/{owner}/{repo}/issues/{number}/comments/{commentId} (the `DeleteIssueComment` operationId).

func (*Client) DeleteLabel

func (c *Client) DeleteLabel(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, name LabelNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteLabel Elimina un'etichetta

Serve `write`. Toglie l'etichetta da tutte le issues (evento `unlabeled` nella cronologia). Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Corresponds with DELETE /repos/{owner}/{repo}/labels/{name} (the `DeleteLabel` operationId).

func (*Client) DeleteMilestone

func (c *Client) DeleteMilestone(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, milestoneNumber MilestoneNumberParam, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteMilestone Elimina una milestone

Serve `write`. Le issues collegate restano, senza milestone (evento `demilestoned`). Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Corresponds with DELETE /repos/{owner}/{repo}/milestones/{milestoneNumber} (the `DeleteMilestone` operationId).

func (*Client) DeleteNotification

func (c *Client) DeleteNotification(ctx context.Context, notificationId NotificationIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteNotification Elimina una notifica

Eliminazione manuale (C9), anche di una non letta.

Corresponds with DELETE /notifications/{notificationId} (the `DeleteNotification` operationId).

func (*Client) DeleteNotifications

func (c *Client) DeleteNotifications(ctx context.Context, params *DeleteNotificationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteNotifications Elimina in blocco le notifiche

Elimina le notifiche dell'utente corrente nello stato indicato (`read` o `archived`; le non lette non si eliminano in blocco), con gli stessi filtri `reason` e `repo` dell'elenco (C9). Risponde 200 con il numero di notifiche eliminate.

Corresponds with DELETE /notifications (the `DeleteNotifications` operationId).

func (*Client) DeleteOrgWebhook

func (c *Client) DeleteOrgWebhook(ctx context.Context, org OrgParam, hookId WebhookIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteOrgWebhook Elimina un webhook di un'organizzazione

Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Elimina anche il log delle consegne e le notifiche di disattivazione collegate.

Corresponds with DELETE /orgs/{org}/hooks/{hookId} (the `DeleteOrgWebhook` operationId).

func (*Client) DeleteOrganization

func (c *Client) DeleteOrganization(ctx context.Context, org OrgParam, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteOrganization Elimina un'organizzazione

Scope `admin:org`, ruolo `owner`. Elimina a cascata team e membership.

Corresponds with DELETE /orgs/{org} (the `DeleteOrganization` operationId).

func (*Client) DeleteRepoMirror

func (c *Client) DeleteRepoMirror(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteRepoMirror Elimina un mirror in push

Serve `admin` sul repo (V8). Elimina anche il log delle esecuzioni. Non tocca la destinazione. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).

Corresponds with DELETE /repos/{owner}/{repo}/mirrors/{mirrorId} (the `DeleteRepoMirror` operationId).

func (*Client) DeleteRepoWebhook

func (c *Client) DeleteRepoWebhook(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteRepoWebhook Elimina un webhook di un repo

Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Elimina anche il log delle consegne e le notifiche di disattivazione collegate.

Corresponds with DELETE /repos/{owner}/{repo}/hooks/{hookId} (the `DeleteRepoWebhook` operationId).

func (*Client) DeleteRepository

func (c *Client) DeleteRepository(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteRepository Elimina un repo (recuperabile per 7 giorni)

Serve il ruolo `admin` (R12). Il repo sparisce subito per tutti e resta ripristinabile per 7 giorni (R2); il nome resta occupato.

Corresponds with DELETE /repos/{owner}/{repo} (the `DeleteRepository` operationId).

func (*Client) DeleteResource

func (c *Client) DeleteResource(ctx context.Context, resourceId ResourceIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteResource Elimina una risorsa

Corresponds with DELETE /resources/{resourceId} (the `DeleteResource` operationId).

func (*Client) DeleteResourceGrant

func (c *Client) DeleteResourceGrant(ctx context.Context, resourceId ResourceIdParam, grantId GrantIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteResourceGrant Revoca un grant

Corresponds with DELETE /resources/{resourceId}/grants/{grantId} (the `DeleteResourceGrant` operationId).

func (*Client) DeleteSshKey

func (c *Client) DeleteSshKey(ctx context.Context, keyId SshKeyIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteSshKey Elimina una chiave SSH

Corresponds with DELETE /user/ssh-keys/{keyId} (the `DeleteSshKey` operationId).

func (*Client) DeleteTeam

func (c *Client) DeleteTeam(ctx context.Context, org OrgParam, team TeamParam, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteTeam Elimina un team

Elimina anche i grant assegnati al team.

Corresponds with DELETE /orgs/{org}/teams/{team} (the `DeleteTeam` operationId).

func (*Client) DeleteUser

func (c *Client) DeleteUser(ctx context.Context, username UsernameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteUser Elimina un utente

Solo amministratori, scope `write:user`. Elimina a cascata sessioni, token, chiavi SSH e membership. Non si puo' eliminare l'ultimo amministratore (409 `last_admin`).

Corresponds with DELETE /users/{username} (the `DeleteUser` operationId).

func (*Client) FinishOidcLogin

func (c *Client) FinishOidcLogin(ctx context.Context, provider OidcProviderParam, params *FinishOidcLoginParams, reqEditors ...RequestEditorFn) (*http.Response, error)

FinishOidcLogin Completa il login OIDC

Callback del provider. Se l'identita' (provider, subject) e' gia' collegata a un utente crea la sessione (cookie `gst_session`) e fa redirect (302) a `redirectTo`. Altrimenti decide la configurazione del provider: con `linkByVerifiedEmail` (default false) e un'email che il provider dichiara verificata (`email_verified`) collega l'identita' all'utente locale con quella email; con `autoCreateUsers` (default false) crea un nuovo utente (senza password) e lo collega; un'email non verificata non si collega mai a un utente esistente. In tutti gli altri casi (compreso il default, con entrambe le opzioni a false) risponde 409 `oidc_identity_unlinked`.

Corresponds with GET /auth/oidc/{provider}/callback (the `FinishOidcLogin` operationId).

func (*Client) GetCurrentSession

func (c *Client) GetCurrentSession(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetCurrentSession Sessione corrente

Chi e' il chiamante e con quale credenziale (sessione o token personale, con i suoi scope). Non richiede scope: basta essere autenticati.

Corresponds with GET /auth/session (the `GetCurrentSession` operationId).

func (*Client) GetHealth

func (c *Client) GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetHealth Stato del servizio

Controllo di salute, senza autenticazione: usato da orchestratore (k3s) e dai probe di deploy.

Corresponds with GET /health (the `GetHealth` operationId).

func (*Client) GetIssue

func (c *Client) GetIssue(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GetIssue Legge una issue per numero

Una issue che non esiste nel repo risponde 404. Se e' nascosta (I4) chi non ha `admin` riceve 404, come se non esistesse, per non rivelare ne' il contenuto ne' l'esistenza di cio' che e' stato nascosto. Un repo che l'utente non puo' leggere, eliminato o inesistente risponde 404 (non 403), per non rivelarne l'esistenza.

Corresponds with GET /repos/{owner}/{repo}/issues/{number} (the `GetIssue` operationId).

func (*Client) GetIssueAttachment

func (c *Client) GetIssueAttachment(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, attachmentId IssueAttachmentIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GetIssueAttachment Scarica un allegato

Solo chi vede il repo (I9): nessun URL pubblico, la richiesta e' sempre autenticata. Sempre `Content-Disposition: attachment`, `X-Content-Type-Options: nosniff` e `Content-Security-Policy: sandbox` (come B3). Un allegato di una issue nascosta e' 404 per chi non ha `admin`. Un repo che l'utente non puo' leggere, eliminato o inesistente risponde 404 (non 403), per non rivelarne l'esistenza.

Corresponds with GET /repos/{owner}/{repo}/issue-attachments/{attachmentId} (the `GetIssueAttachment` operationId).

func (*Client) GetIssueSubscription

func (c *Client) GetIssueSubscription(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GetIssueSubscription Iscrizione alla issue

Se l'utente corrente segue la issue (C3) e perche'. Autore, assegnatari, commentatori e menzionati seguono in automatico. Serve poter leggere la issue; una nascosta risponde 404 a chi non e' `admin`.

Corresponds with GET /repos/{owner}/{repo}/issues/{number}/subscription (the `GetIssueSubscription` operationId).

func (*Client) GetLabel

func (c *Client) GetLabel(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, name LabelNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GetLabel Legge un'etichetta

Per nome, senza distinguere maiuscole/minuscole.

Corresponds with GET /repos/{owner}/{repo}/labels/{name} (the `GetLabel` operationId).

func (*Client) GetMeta

func (c *Client) GetMeta(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetMeta Versione del server

Versione dell'installazione e del contratto API, senza autenticazione. Usato da gs per il controllo di compatibilita (G6).

Corresponds with GET /meta (the `GetMeta` operationId).

func (*Client) GetMilestone

func (c *Client) GetMilestone(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, milestoneNumber MilestoneNumberParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GetMilestone Legge una milestone

Per numero della milestone nel repo.

Corresponds with GET /repos/{owner}/{repo}/milestones/{milestoneNumber} (the `GetMilestone` operationId).

func (*Client) GetMyResourcePermission

func (c *Client) GetMyResourcePermission(ctx context.Context, resourceId ResourceIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GetMyResourcePermission Permesso effettivo del chiamante su una risorsa

Ruolo effettivo (grant diretto, via team, amministratore) tenendo conto degli scope del token. Scope `read:resource`.

Corresponds with GET /resources/{resourceId}/permissions (the `GetMyResourcePermission` operationId).

func (*Client) GetNotification

func (c *Client) GetNotification(ctx context.Context, notificationId NotificationIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GetNotification Legge una notifica

Una notifica di un'altra persona risponde 404, come una inesistente.

Corresponds with GET /notifications/{notificationId} (the `GetNotification` operationId).

func (*Client) GetNotificationPreferences

func (c *Client) GetNotificationPreferences(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetNotificationPreferences Preferenze email delle notifiche

Per ogni tipo (= motivo della notifica) se arriva anche una email (C5). Default: email per `mentioned` e `assigned`, non per gli altri. `emailAvailable` e' `false` quando l'installazione non ha SMTP o l'utente e' un agente (C4, C5): le preferenze si leggono e si salvano lo stesso, ma non partono email.

Corresponds with GET /user/notification-preferences (the `GetNotificationPreferences` operationId).

func (*Client) GetOrgWebhook

func (c *Client) GetOrgWebhook(ctx context.Context, org OrgParam, hookId WebhookIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GetOrgWebhook Legge un webhook di un'organizzazione

Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Un webhook di un altro repo o organizzazione risponde 404.

Corresponds with GET /orgs/{org}/hooks/{hookId} (the `GetOrgWebhook` operationId).

func (*Client) GetOrgWebhookDelivery

func (c *Client) GetOrgWebhookDelivery(ctx context.Context, org OrgParam, hookId WebhookIdParam, deliveryId WebhookDeliveryIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GetOrgWebhookDelivery Dettaglio di una consegna di un'organizzazione

Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Con la richiesta inviata (intestazioni e payload) e la risposta ricevuta, troncata a 4 KB (C8).

Corresponds with GET /orgs/{org}/hooks/{hookId}/deliveries/{deliveryId} (the `GetOrgWebhookDelivery` operationId).

func (*Client) GetOrganization

func (c *Client) GetOrganization(ctx context.Context, org OrgParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GetOrganization Legge un'organizzazione

Corresponds with GET /orgs/{org} (the `GetOrganization` operationId).

func (*Client) GetRepoMirror

func (c *Client) GetRepoMirror(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GetRepoMirror Legge un mirror in push (con il suo stato)

Serve `admin` sul repo (V8). E' l'operazione di stato: `state`, `lastAttemptAt`, `lastSuccessAt`, `lastError` e `lastPushed` (ref → SHA spinti con l'ultimo push riuscito). Un mirror di un altro repo risponde 404.

Corresponds with GET /repos/{owner}/{repo}/mirrors/{mirrorId} (the `GetRepoMirror` operationId).

func (*Client) GetRepoWatch

func (c *Client) GetRepoWatch(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GetRepoWatch Watch del repo

Come l'utente corrente segue il repo (C3): `participating` (default), `all` o `ignore`. Serve `read` sul repo; un repo che non si legge risponde 404.

Corresponds with GET /repos/{owner}/{repo}/watch (the `GetRepoWatch` operationId).

func (*Client) GetRepoWebhook

func (c *Client) GetRepoWebhook(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GetRepoWebhook Legge un webhook di un repo

Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Un webhook di un altro repo o organizzazione risponde 404.

Corresponds with GET /repos/{owner}/{repo}/hooks/{hookId} (the `GetRepoWebhook` operationId).

func (*Client) GetRepoWebhookDelivery

func (c *Client) GetRepoWebhookDelivery(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, deliveryId WebhookDeliveryIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GetRepoWebhookDelivery Dettaglio di una consegna di un repo

Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Con la richiesta inviata (intestazioni e payload) e la risposta ricevuta, troncata a 4 KB (C8).

Corresponds with GET /repos/{owner}/{repo}/hooks/{hookId}/deliveries/{deliveryId} (the `GetRepoWebhookDelivery` operationId).

func (*Client) GetRepository

func (c *Client) GetRepository(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GetRepository Legge un repo per owner/nome

Un repo che l'utente non puo' leggere risponde 404, non 403, per non rivelarne l'esistenza.

Corresponds with GET /repos/{owner}/{repo} (the `GetRepository` operationId).

func (*Client) GetRepositoryArchive

func (c *Client) GetRepositoryArchive(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryArchiveParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetRepositoryArchive Archivio ZIP o tar.gz di un ref (streaming)

Archivio dell'albero a `ref` (branch, tag o commit, regola B3), in ZIP (default) o tar.gz secondo `format`, prodotto e inviato in streaming (nessun buffer in memoria). `Content-Disposition: attachment` con nome `<repo>-<ref>.zip` o `<repo>-<ref>.tar.gz` (un `/` nel ref diventa `-`); stesse intestazioni di sicurezza di `getRepositoryRaw`. Sono questi gli indirizzi di scaricamento dei tag (`Tag.zipUrl`, `Tag.tarGzUrl`, regola B7). Servono sessione o token con `read`. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.

Corresponds with GET /repos/{owner}/{repo}/archive (the `GetRepositoryArchive` operationId).

func (*Client) GetRepositoryBlame

func (c *Client) GetRepositoryBlame(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryBlameParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetRepositoryBlame Blame di un file

Per ogni intervallo di righe di `path` a `ref`, il commit che l'ha scritto per ultimo (mockup 08, scheda Blame). Un file binario o oltre 1 MB risponde 400 `blame_unavailable`. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.

Corresponds with GET /repos/{owner}/{repo}/blame (the `GetRepositoryBlame` operationId).

func (*Client) GetRepositoryBranches

func (c *Client) GetRepositoryBranches(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GetRepositoryBranches Branch del repo, con conteggi

Tutti i branch, con il branch principale (R4) per primo; `total` e' il conteggio (mockup 07: "4 branches"). Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. Non ha `ref`: elenca tutti i branch.

Corresponds with GET /repos/{owner}/{repo}/branches (the `GetRepositoryBranches` operationId).

func (*Client) GetRepositoryCommit

func (c *Client) GetRepositoryCommit(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, sha CommitShaParam, params *GetRepositoryCommitParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetRepositoryCommit Dettaglio di un commit con diff per file

Messaggio, autore e diff per file (mockup 10), con i limiti progressivi della regola B6 (costanti in `x-code-read-limits`; le righe sono quelle cambiate, aggiunte piu' tolte). Un file e' `collapsed` (chiuso di default) con `collapseReason` `large` se ha oltre 500 righe cambiate, `lock` o `generated` per un file di lock o generato (elenco in docs/repos.md); il patch c'e' comunque, se non e' stato omesso per i limiti. Oltre 300 file o 20 000 righe cambiate in totale `listOnly` e' true: solo l'elenco dei file con righe aggiunte e tolte, senza patch (il diff intero si scarica con `getRepositoryCommitPatch`). Resta il limite di 1 MB di patch per file (`truncated`). `ignoreWhitespace` calcola il diff con `git diff -w` (`ignoreWhitespace` e' riportato nella risposta). `path` restringe `files` a quel file. `sha` e' lo sha completo o un prefisso univoco di almeno 7 caratteri; 400 se non e' esadecimale, 404 se non esiste. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.

Corresponds with GET /repos/{owner}/{repo}/commits/{sha} (the `GetRepositoryCommit` operationId).

func (*Client) GetRepositoryCommitPatch

func (c *Client) GetRepositoryCommitPatch(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, sha CommitShaParam, params *GetRepositoryCommitPatchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetRepositoryCommitPatch Diff completo di un commit, scaricabile come .diff o .patch (streaming)

Regola B6: il diff intero del commit, senza i limiti di `getRepositoryCommit` (nessun file chiuso, nessun troncamento), in streaming. `Content-Disposition: attachment` con nome `<sha12>.diff` o `.patch` (lo imposta il servizio git) secondo `format`: `diff` e' `gitGetCommitDiff`, `patch` e' `gitGetCommitPatch`, passati in streaming da core (le interne le definisce GIT-82). Stesse intestazioni di sicurezza di `getRepositoryRaw`. Un commit senza genitori e' confrontato con l'albero vuoto. Un merge e' confrontato con il primo genitore. 400 se `sha` non e' esadecimale, 404 se non esiste. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404.

Corresponds with GET /repos/{owner}/{repo}/commits/{sha}/patch (the `GetRepositoryCommitPatch` operationId).

func (*Client) GetRepositoryCommits

func (c *Client) GetRepositoryCommits(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryCommitsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetRepositoryCommits Storico dei commit, paginato

Commit raggiungibili da `ref`, dal piu' recente (mockup 09). Filtri `author` (nome o email, senza distinguere maiuscole) e `path` (solo i commit che toccano quel percorso). Pagina di default 30, massimo 100. Ogni autore porta `user` se la sua email corrisponde a un utente GitStack, altrimenti null. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.

Corresponds with GET /repos/{owner}/{repo}/commits (the `GetRepositoryCommits` operationId).

func (*Client) GetRepositoryFile

func (c *Client) GetRepositoryFile(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryFileParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetRepositoryFile Contenuto di un file

Contenuto di `path` a `ref` con dimensione, tipo e ultimo commit (mockup 08). Regola B1: la risposta dice sempre in `display` come mostrarlo. Testo fino a 1 MB (1 048 576 byte): `highlight`, `content` intero. Testo da 1 MB a 5 MB (5 242 880 byte): `plain`, `content` intero da mostrare senza evidenziazione. Testo oltre 5 MB: `download`, nessun `content` e `truncated` true (solo scaricamento con `raw`). Immagini comuni (PNG, JPEG, GIF, WebP, SVG; `kind` `image`) fino a 1 MB: `display` `image`, `content` in base64 (`encoding` `base64`) e `mimeType`, cosi' la UI le mostra come immagine anche se `raw` le serve come allegato; oltre 1 MB `download`. Altri binari: `kind` `binary`, `download`, nessun `content`. `size` e' sempre la dimensione reale. 404 se `path` non esiste o non e' un file. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.

Corresponds with GET /repos/{owner}/{repo}/contents (the `GetRepositoryFile` operationId).

func (*Client) GetRepositoryLanguages

func (c *Client) GetRepositoryLanguages(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryLanguagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetRepositoryLanguages Lingue del repo

Byte per linguaggio al branch principale o a `ref`, con la percentuale sul totale, in ordine decrescente (pannello About, mockup 07). Un repo vuoto risponde lista vuota. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.

Corresponds with GET /repos/{owner}/{repo}/languages (the `GetRepositoryLanguages` operationId).

func (*Client) GetRepositoryRaw

func (c *Client) GetRepositoryRaw(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryRawParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetRepositoryRaw Contenuto grezzo di un file (streaming)

Byte del file `path` a `ref`, senza limite di dimensione, in streaming (nessun buffer in memoria), `Content-Length` quando noto. Regola B3, mai servito come pagina eseguibile: un file di testo (non SVG, non binario) esce come `text/plain; charset=utf-8` in linea; qualunque altro (binari, immagini, SVG compreso) come `application/octet-stream` con `Content-Disposition: attachment`. In ogni caso `X-Content-Type-Options: nosniff` e `Content-Security-Policy: sandbox`. Servono sessione o token con `read` (nessun link anonimo). Forma con query, per la SPA e i client; l'indirizzo pubblico per i link e' `getRepositoryRawByPath`. 404 se `path` non esiste o non e' un file. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.

Corresponds with GET /repos/{owner}/{repo}/raw (the `GetRepositoryRaw` operationId).

func (*Client) GetRepositoryRawByPath

func (c *Client) GetRepositoryRawByPath(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, refAndPath RefAndPathParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GetRepositoryRawByPath Contenuto grezzo di un file, per indirizzo (streaming)

Forma a indirizzo di `getRepositoryRaw` (regola B3): il browser la raggiunge come `/<owner>/<repo>/raw/<ref>/<percorso>` (la riscrive il container web, vedi docs/repos.md), l'API come `/v1/repos/<owner>/<repo>/raw/<ref>/<percorso>`. Stesse regole di sicurezza, stessi byte e stesse intestazioni di `getRepositoryRaw` (`text/plain` o allegato, `nosniff`, `Content-Security-Policy: sandbox`). `refAndPath` occupa piu' segmenti: il router di core e la tabella del gateway lo trattano come coda (`x-path-tail`), non come un segmento solo. Servono sessione o token con `read`. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. Un ref che non corrisponde a nessun branch, tag o sha risponde 404 `ref_not_found`.

Corresponds with GET /repos/{owner}/{repo}/raw/{refAndPath} (the `GetRepositoryRawByPath` operationId).

func (*Client) GetRepositoryReadme

func (c *Client) GetRepositoryReadme(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryReadmeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetRepositoryReadme README di una cartella

Il README della cartella `path` (radice se assente), cercato come `README.md`, `README`, `README.txt` (senza distinguere maiuscole), con le stesse regole B1 di `contents` (`kind`, `display`, limiti 1 MB e 5 MB). 404 se non c'e'. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.

Corresponds with GET /repos/{owner}/{repo}/readme (the `GetRepositoryReadme` operationId).

func (*Client) GetRepositoryTags

func (c *Client) GetRepositoryTags(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GetRepositoryTags Tag del repo, con conteggi

Tutti i tag, dal piu' recente; `total` e' il conteggio (mockup 07: "7 tags"). Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. Non ha `ref`: elenca tutti i tag.

Corresponds with GET /repos/{owner}/{repo}/tags (the `GetRepositoryTags` operationId).

func (*Client) GetRepositoryTree

func (c *Client) GetRepositoryTree(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryTreeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetRepositoryTree Albero di una cartella con l'ultimo commit per voce

Voci della cartella `path` (radice se assente) a `ref`, con l'ultimo commit che ha toccato ciascuna (mockup 07). Al massimo 1 000 voci: oltre, `truncated` e' true. Ordine: cartelle, poi file, per nome. 404 se `path` non esiste o non e' una cartella. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.

Corresponds with GET /repos/{owner}/{repo}/tree (the `GetRepositoryTree` operationId).

func (*Client) GetResource

func (c *Client) GetResource(ctx context.Context, resourceId ResourceIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GetResource Legge una risorsa

Corresponds with GET /resources/{resourceId} (the `GetResource` operationId).

func (*Client) GetSshKey

func (c *Client) GetSshKey(ctx context.Context, keyId SshKeyIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GetSshKey Legge una chiave SSH

Corresponds with GET /user/ssh-keys/{keyId} (the `GetSshKey` operationId).

func (*Client) GetTeam

func (c *Client) GetTeam(ctx context.Context, org OrgParam, team TeamParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GetTeam Legge un team

Corresponds with GET /orgs/{org}/teams/{team} (the `GetTeam` operationId).

func (*Client) GetUser

func (c *Client) GetUser(ctx context.Context, username UsernameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GetUser Legge il profilo di un utente

Scope `read:user`. L'email e i campi amministrativi compaiono solo per l'utente stesso e per gli amministratori.

Corresponds with GET /users/{username} (the `GetUser` operationId).

func (*Client) GetUserAccess

func (c *Client) GetUserAccess(ctx context.Context, username UsernameParam, params *GetUserAccessParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetUserAccess Accesso effettivo di un utente ai repository

Solo l'amministratore dell'installazione (403 agli altri, anche per se stessi), scope `read:user`. Per ogni repository non eliminato che l'utente `username` (persona o agent) puo' raggiungere: il ruolo effettivo, il piu' alto fra le fonti (P1-P6), e l'elenco delle fonti (`sources`): grant diretto, grant di un team di cui e' membro (o di un'organizzazione di cui e' owner), owner del repo (organizzazione o repo personale), visibilita' interna, oppure amministratore dell'installazione. Un utente disattivato non ha accesso. 404 se l'utente non esiste. Paginazione come `GET /repos`.

Corresponds with GET /users/{username}/access (the `GetUserAccess` operationId).

func (*Client) GetUserAccessSources

func (c *Client) GetUserAccessSources(ctx context.Context, body GetUserAccessSourcesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

GetUserAccessSources Risorse raggiungibili da un utente, con ruolo e fonti

Per core (`getUserAccess`): per ogni risorsa con un grant o un attributo che riguarda l'utente, il ruolo effettivo e le fonti (stesse regole di `checkPermission`). Per l'amministratore di sistema `admin` e' vero e `items` e' vuoto (core elenca tutti i repo). Utente disattivato: nessun elemento. Utente inesistente: 404.

Takes a body of the `application/json` content type.

Corresponds with POST /internal/permissions/user-access (the `GetUserAccessSources` operationId).

func (*Client) GetUserAccessSourcesWithBody

func (c *Client) GetUserAccessSourcesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

GetUserAccessSourcesWithBody Risorse raggiungibili da un utente, con ruolo e fonti

Per core (`getUserAccess`): per ogni risorsa con un grant o un attributo che riguarda l'utente, il ruolo effettivo e le fonti (stesse regole di `checkPermission`). Per l'amministratore di sistema `admin` e' vero e `items` e' vuoto (core elenca tutti i repo). Utente disattivato: nessun elemento. Utente inesistente: 404.

Takes any type of body and a specified content type.

Corresponds with POST /internal/permissions/user-access (the `GetUserAccessSources` operationId).

func (*Client) GitCreateRepo

func (c *Client) GitCreateRepo(ctx context.Context, body GitCreateRepoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

GitCreateRepo Crea il repo su disco (per core)

Implementata a mano dal servizio git (non generata). Crea il bare repo e, se richiesto (R5), il primo commit su `defaultBranch`.

Takes a body of the `application/json` content type.

Corresponds with POST /internal/git/repos (the `GitCreateRepo` operationId).

func (*Client) GitCreateRepoWithBody

func (c *Client) GitCreateRepoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

GitCreateRepoWithBody Crea il repo su disco (per core)

Implementata a mano dal servizio git (non generata). Crea il bare repo e, se richiesto (R5), il primo commit su `defaultBranch`.

Takes any type of body and a specified content type.

Corresponds with POST /internal/git/repos (the `GitCreateRepo` operationId).

func (*Client) GitDeleteRepo

func (c *Client) GitDeleteRepo(ctx context.Context, repoId GitRepoIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GitDeleteRepo Cancella definitivamente un repo (solo dal cestino)

Risponde 409 se il repo non e' nel cestino.

Corresponds with DELETE /internal/git/repos/{repoId} (the `GitDeleteRepo` operationId).

func (*Client) GitGetArchive

func (c *Client) GitGetArchive(ctx context.Context, repoId GitRepoIdParam, params *GitGetArchiveParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GitGetArchive Archivio ZIP o tar.gz di un ref (streaming) (per core)

Corrispondente interno di `getRepositoryArchive`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Archivio dell'albero a `ref`, in ZIP (default) o tar.gz secondo `format`, in streaming (nessun buffer in memoria). Il nome del file (`Content-Disposition`) lo mette il servizio con il nome del repo che gli passa core in `name`; stesse intestazioni di sicurezza di `getRepositoryRaw`.

Corresponds with GET /internal/git/repos/{repoId}/archive (the `GitGetArchive` operationId).

func (*Client) GitGetBlame

func (c *Client) GitGetBlame(ctx context.Context, repoId GitRepoIdParam, params *GitGetBlameParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GitGetBlame Blame di un file (per core)

Corrispondente interno di `getRepositoryBlame`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Per ogni intervallo di righe di `path` a `ref`, il commit che l'ha scritto per ultimo (mockup 08, scheda Blame). Un file binario o oltre 1 MB risponde 400 `blame_unavailable`.

Corresponds with GET /internal/git/repos/{repoId}/blame (the `GitGetBlame` operationId).

func (*Client) GitGetBranches

func (c *Client) GitGetBranches(ctx context.Context, repoId GitRepoIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GitGetBranches Branch del repo, con conteggi (per core)

Corrispondente interno di `getRepositoryBranches`: parla solo per repoId e non conosce utenti ne' permessi. Gli autori non portano `user`: lo aggiunge core. Tutti i branch, con il branch principale (R4) per primo; `total` e' il conteggio (mockup 07: "4 branches").

Corresponds with GET /internal/git/repos/{repoId}/branches (the `GitGetBranches` operationId).

func (*Client) GitGetCommit

func (c *Client) GitGetCommit(ctx context.Context, repoId GitRepoIdParam, sha CommitShaParam, params *GitGetCommitParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GitGetCommit Dettaglio di un commit con diff per file (per core)

Corrispondente interno di `getRepositoryCommit`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Messaggio, autore e diff per file (mockup 10). Limiti: al massimo 300 file e 20 000 righe di diff in totale, e 1 MB per file; oltre, il file o la risposta sono marcati `truncated` e il patch e' omesso o parziale. `sha` e' lo sha completo o un prefisso univoco di almeno 7 caratteri; 400 se non e' esadecimale, 404 se non esiste.

Corresponds with GET /internal/git/repos/{repoId}/commits/{sha} (the `GitGetCommit` operationId).

func (*Client) GitGetCommitDiff

func (c *Client) GitGetCommitDiff(ctx context.Context, repoId GitRepoIdParam, sha CommitShaParam, params *GitGetCommitDiffParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GitGetCommitDiff Diff completo di un commit come .diff, in streaming (per core)

B6: `git diff --binary` del commit contro il primo genitore (contro l'albero vuoto per il commit iniziale), accettato da `git apply`. Content-Type `text/plain`, Content-Disposition `attachment` con nome `<sha12>.diff`, `X-Content-Type-Options: nosniff`. Nessun limite di righe e nessun buffer in memoria. Gli errori (400, 404) escono come JSON prima del primo byte; un errore a meta' interrompe la risposta.

Corresponds with GET /internal/git/repos/{repoId}/commits/{sha}/diff (the `GitGetCommitDiff` operationId).

func (*Client) GitGetCommitPatch

func (c *Client) GitGetCommitPatch(ctx context.Context, repoId GitRepoIdParam, sha CommitShaParam, params *GitGetCommitPatchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GitGetCommitPatch Patch di un commit in formato git format-patch, in streaming (per core)

B6: come `gitGetCommitDiff`, ma con messaggio e autore in forma di email (`git format-patch --stdout`; per un commit di merge, contro il primo genitore). Nome `<sha12>.patch`. Accettato da `git apply` e `git am`.

Corresponds with GET /internal/git/repos/{repoId}/commits/{sha}/patch (the `GitGetCommitPatch` operationId).

func (*Client) GitGetCommits

func (c *Client) GitGetCommits(ctx context.Context, repoId GitRepoIdParam, params *GitGetCommitsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GitGetCommits Storico dei commit, paginato (per core)

Corrispondente interno di `getRepositoryCommits`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Commit raggiungibili da `ref`, dal piu' recente (mockup 09). Filtri `author` (nome o email, senza distinguere maiuscole) e `path` (solo i commit che toccano quel percorso). Pagina di default 30, massimo 100. Ogni autore porta `user` se la sua email corrisponde a un utente GitStack, altrimenti null.

Corresponds with GET /internal/git/repos/{repoId}/commits (the `GitGetCommits` operationId).

func (*Client) GitGetFile

func (c *Client) GitGetFile(ctx context.Context, repoId GitRepoIdParam, params *GitGetFileParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GitGetFile Contenuto di un file (per core)

Corrispondente interno di `getRepositoryFile`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Stesse regole B1 di `getRepositoryFile` per `kind`, `display`, `content`, `encoding`, `mimeType` e `truncated` (1 MB evidenziato, 5 MB testo semplice, immagini inline fino a 1 MB). 404 se `path` non esiste o non e' un file.

Corresponds with GET /internal/git/repos/{repoId}/contents (the `GitGetFile` operationId).

func (*Client) GitGetLanguages

func (c *Client) GitGetLanguages(ctx context.Context, repoId GitRepoIdParam, params *GitGetLanguagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GitGetLanguages Lingue del repo (per core)

Corrispondente interno di `getRepositoryLanguages`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Byte per linguaggio al branch principale o a `ref`, con la percentuale sul totale, in ordine decrescente (pannello About, mockup 07). Un repo vuoto risponde lista vuota.

Corresponds with GET /internal/git/repos/{repoId}/languages (the `GitGetLanguages` operationId).

func (*Client) GitGetRaw

func (c *Client) GitGetRaw(ctx context.Context, repoId GitRepoIdParam, params *GitGetRawParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GitGetRaw Contenuto grezzo di un file (streaming) (per core)

Corrispondente interno di `getRepositoryRaw`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Byte del file `path` a `ref`, senza limite di dimensione, in streaming (nessun buffer in memoria), `Content-Length` quando noto. Le intestazioni di sicurezza della regola B3 le scrive questo servizio (non nginx, ne' core le riscrive): vedi `getRepositoryRaw`. 404 se `path` non esiste o non e' un file.

Corresponds with GET /internal/git/repos/{repoId}/raw (the `GitGetRaw` operationId).

func (*Client) GitGetReadme

func (c *Client) GitGetReadme(ctx context.Context, repoId GitRepoIdParam, params *GitGetReadmeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GitGetReadme README di una cartella (per core)

Corrispondente interno di `getRepositoryReadme`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Il README della cartella `path` (radice se assente), cercato come `README.md`, `README`, `README.txt` (senza distinguere maiuscole), con le stesse regole B1 di `contents`. 404 se non c'e'.

Corresponds with GET /internal/git/repos/{repoId}/readme (the `GitGetReadme` operationId).

func (*Client) GitGetRepo

func (c *Client) GitGetRepo(ctx context.Context, repoId GitRepoIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GitGetRepo Stato di un repo su disco

Corresponds with GET /internal/git/repos/{repoId} (the `GitGetRepo` operationId).

func (*Client) GitGetTags

func (c *Client) GitGetTags(ctx context.Context, repoId GitRepoIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GitGetTags Tag del repo, con conteggi (per core)

Corrispondente interno di `getRepositoryTags`: parla solo per repoId e non conosce utenti ne' permessi. Gli autori non portano `user`: lo aggiunge core. Tutti i tag, dal piu' recente; `total` e' il conteggio (mockup 07: "7 tags").

Corresponds with GET /internal/git/repos/{repoId}/tags (the `GitGetTags` operationId).

func (*Client) GitGetTree

func (c *Client) GitGetTree(ctx context.Context, repoId GitRepoIdParam, params *GitGetTreeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GitGetTree Albero di una cartella con l'ultimo commit per voce (per core)

Corrispondente interno di `getRepositoryTree`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Voci della cartella `path` (radice se assente) a `ref`, con l'ultimo commit che ha toccato ciascuna (mockup 07). Al massimo 1 000 voci: oltre, `truncated` e' true. Ordine: cartelle, poi file, per nome. 404 se `path` non esiste o non e' una cartella.

Corresponds with GET /internal/git/repos/{repoId}/tree (the `GitGetTree` operationId).

func (*Client) GitListFiles

func (c *Client) GitListFiles(ctx context.Context, repoId GitRepoIdParam, params *GitListFilesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GitListFiles Percorsi di tutti i file di un ref (per core)

Corrispondente interno di `listRepositoryFiles`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Stesse regole B5 (al massimo 50 000 percorsi, `truncated`).

Corresponds with GET /internal/git/repos/{repoId}/files (the `GitListFiles` operationId).

func (*Client) GitRestoreRepo

func (c *Client) GitRestoreRepo(ctx context.Context, repoId GitRepoIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GitRestoreRepo Ripristina un repo dal cestino (R2)

Corresponds with POST /internal/git/repos/{repoId}/restore (the `GitRestoreRepo` operationId).

func (*Client) GitSearchCode

func (c *Client) GitSearchCode(ctx context.Context, repoId GitRepoIdParam, params *GitSearchCodeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GitSearchCode Cerca un testo nel codice di un ref (per core)

Corrispondente interno di `searchRepositoryCode`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Stesse regole B5 (100 risultati, 10 secondi, senza indice).

Corresponds with GET /internal/git/repos/{repoId}/search (the `GitSearchCode` operationId).

func (*Client) GitTrashRepo

func (c *Client) GitTrashRepo(ctx context.Context, repoId GitRepoIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

GitTrashRepo Sposta un repo nel cestino (R2)

Corresponds with POST /internal/git/repos/{repoId}/trash (the `GitTrashRepo` operationId).

func (*Client) GrantResourceCreator

func (c *Client) GrantResourceCreator(ctx context.Context, resourceId openapi_types.UUID, body GrantResourceCreatorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

GrantResourceCreator Assegna il ruolo admin al creatore di una risorsa

Usata da core dopo la creazione di una risorsa: l'utente indicato riceve il grant admin (granted_by = lo stesso utente). Idempotente: se l'utente ha gia' un grant sulla risorsa lo porta ad admin e risponde 200.

Takes a body of the `application/json` content type.

Corresponds with POST /internal/resources/{resourceId}/grants/creator (the `GrantResourceCreator` operationId).

func (*Client) GrantResourceCreatorWithBody

func (c *Client) GrantResourceCreatorWithBody(ctx context.Context, resourceId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

GrantResourceCreatorWithBody Assegna il ruolo admin al creatore di una risorsa

Usata da core dopo la creazione di una risorsa: l'utente indicato riceve il grant admin (granted_by = lo stesso utente). Idempotente: se l'utente ha gia' un grant sulla risorsa lo porta ad admin e risponde 200.

Takes any type of body and a specified content type.

Corresponds with POST /internal/resources/{resourceId}/grants/creator (the `GrantResourceCreator` operationId).

func (*Client) ListDeletedRepositories

func (c *Client) ListDeletedRepositories(ctx context.Context, params *ListDeletedRepositoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListDeletedRepositories Elenca i repo eliminati e ancora ripristinabili

Repo eliminati da meno di 7 giorni (R2) su cui l'utente ha il ruolo `admin` (R12). Con `owner` solo quelli di quell'owner.

Corresponds with GET /repos/deleted (the `ListDeletedRepositories` operationId).

func (*Client) ListIssueCommentVersions

func (c *Client) ListIssueCommentVersions(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, commentId IssueCommentIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

ListIssueCommentVersions Versioni precedenti del testo di un commento

Solo con `admin` (I4), come `listIssueVersions`. Anche per i commenti eliminati.

Corresponds with GET /repos/{owner}/{repo}/issues/{number}/comments/{commentId}/versions (the `ListIssueCommentVersions` operationId).

func (*Client) ListIssueComments

func (c *Client) ListIssueComments(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, params *ListIssueCommentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListIssueComments Commenti della issue

Dal piu' vecchio al piu' recente. Un commento eliminato resta con `deleted: true` e testo vuoto (traccia "comment deleted", I4). Paginazione come `GET /repos`.

Corresponds with GET /repos/{owner}/{repo}/issues/{number}/comments (the `ListIssueComments` operationId).

func (*Client) ListIssueEvents

func (c *Client) ListIssueEvents(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, params *ListIssueEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListIssueEvents Cronologia degli eventi

Eventi in ordine cronologico crescente: apertura, chiusura (con motivo), riapertura, etichette, assegnatari, milestone, modifica del titolo, blocco, `comment_deleted` ("comment deleted", I4) e, da M-06, `referenced_from`, `commit_linked` e `closed_by_commit` (C1, C2). Le issues nascoste: 404 a chi non e' `admin`. Paginazione come `GET /repos`.

Corresponds with GET /repos/{owner}/{repo}/issues/{number}/events (the `ListIssueEvents` operationId).

func (*Client) ListIssueTemplates

func (c *Client) ListIssueTemplates(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

ListIssueTemplates Modelli di issue del repo

Modelli Markdown in `.gitstack/ISSUE_TEMPLATE/` sul branch principale (I11), letti da core tramite il servizio git. Vuoto se la cartella non c'e' o il repo e' vuoto. Il nome e' il file senza estensione. Un modello propone titolo, etichette e testo iniziale: la UI, l'API e `gs` li usano per precompilare `createIssue`, che non li impone.

Corresponds with GET /repos/{owner}/{repo}/issue-templates (the `ListIssueTemplates` operationId).

func (*Client) ListIssueVersions

func (c *Client) ListIssueVersions(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*http.Response, error)

ListIssueVersions Versioni precedenti del testo della issue

Solo con `admin` (I4): 403 per chi legge soltanto. Dalla piu' recente alla piu' vecchia; la versione corrente non e' nell'elenco, e' il testo della issue. Vuoto se non e' mai stata modificata.

Corresponds with GET /repos/{owner}/{repo}/issues/{number}/versions (the `ListIssueVersions` operationId).

func (*Client) ListIssues

func (c *Client) ListIssues(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *ListIssuesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListIssues Elenca e cerca le issues del repo

Issues del repo con filtri (stato, etichette, assegnatario, autore, milestone) e ricerca nel testo. `q` usa la sintassi di I10 e i filtri espliciti si sommano a quelli di `q`. Le issues nascoste (I4) compaiono solo a chi ha `admin`. Paginazione come `GET /repos`. Un repo che l'utente non puo' leggere, eliminato o inesistente risponde 404 (non 403), per non rivelarne l'esistenza.

Corresponds with GET /repos/{owner}/{repo}/issues (the `ListIssues` operationId).

func (*Client) ListLabels

func (c *Client) ListLabels(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *ListLabelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListLabels Etichette del repo

Con il numero di issues aperte che le usano. Ordinate per nome. Paginazione come `GET /repos`.

Corresponds with GET /repos/{owner}/{repo}/labels (the `ListLabels` operationId).

func (*Client) ListMilestones

func (c *Client) ListMilestones(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *ListMilestonesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListMilestones Milestone del repo

Con l'avanzamento: `closedIssues` conta solo le chiuse come `completed`; le `not_planned` e `duplicate` non contano ne' fra le chiuse ne' fra le aperte (I2). Per scadenza crescente, poi per numero.

Corresponds with GET /repos/{owner}/{repo}/milestones (the `ListMilestones` operationId).

func (*Client) ListNotifications

func (c *Client) ListNotifications(ctx context.Context, params *ListNotificationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListNotifications Casella delle notifiche

Notifiche dell'utente corrente, dalla piu' recente (`createdAt` decrescente, poi `id`). Filtri: `reason` (uno o piu' motivi separati da virgola), `state` (`unread` default, `read`, `archived`, `all`; le archiviate compaiono solo con `archived` o `all`) e `repo` (`owner/repo`). Stessa casella e stesse regole per persone e agenti (C4); `gs notification list --json` usa questa operazione. Le notifiche di un repo che l'utente non legge piu' non compaiono e vengono eliminate (C9). `unreadCount` conta le non lette non archiviate dell'utente, con i soli filtri `reason` e `repo`.

Corresponds with GET /notifications (the `ListNotifications` operationId).

func (*Client) ListOidcProviders

func (c *Client) ListOidcProviders(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

ListOidcProviders Provider OIDC abilitati

Elenco pubblico per la pagina di login. Nessun segreto.

Corresponds with GET /auth/oidc/providers (the `ListOidcProviders` operationId).

func (*Client) ListOrgMembers

func (c *Client) ListOrgMembers(ctx context.Context, org OrgParam, params *ListOrgMembersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListOrgMembers Elenca i membri di un'organizzazione

Corresponds with GET /orgs/{org}/members (the `ListOrgMembers` operationId).

func (*Client) ListOrgOwners

func (c *Client) ListOrgOwners(ctx context.Context, orgId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

ListOrgOwners Elenca gli owner di un'organizzazione

Per core (M-06/G, webhook di organizzazione, C6): chi puo' gestire un webhook di organizzazione sono gli owner, e a loro va la notifica di disattivazione (C7). Restituisce gli id utente degli owner; 404 se l'organizzazione non esiste.

Corresponds with GET /internal/orgs/{orgId}/owners (the `ListOrgOwners` operationId).

func (*Client) ListOrgWebhookDeliveries

func (c *Client) ListOrgWebhookDeliveries(ctx context.Context, org OrgParam, hookId WebhookIdParam, params *ListOrgWebhookDeliveriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListOrgWebhookDeliveries Log delle consegne di un webhook di un'organizzazione

Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Dalla piu' recente. Le consegne si conservano 30 giorni (C7). Filtro per `status`.

Corresponds with GET /orgs/{org}/hooks/{hookId}/deliveries (the `ListOrgWebhookDeliveries` operationId).

func (*Client) ListOrgWebhooks

func (c *Client) ListOrgWebhooks(ctx context.Context, org OrgParam, params *ListOrgWebhooksParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListOrgWebhooks Elenca i webhook di un'organizzazione

Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Il segreto non torna mai: `hasSecret` dice se c'e'. Paginazione come `GET /repos`.

Corresponds with GET /orgs/{org}/hooks (the `ListOrgWebhooks` operationId).

func (*Client) ListOrganizations

func (c *Client) ListOrganizations(ctx context.Context, params *ListOrganizationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListOrganizations Elenca le organizzazioni

Le organizzazioni di cui il chiamante e' membro (tutte, per un amministratore). Scope `read:org`.

Corresponds with GET /orgs (the `ListOrganizations` operationId).

func (*Client) ListReadableResources

func (c *Client) ListReadableResources(ctx context.Context, body ListReadableResourcesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ListReadableResources Risorse leggibili da un utente

Usata da core per filtrare l'elenco delle risorse: `resourceIds` sono le risorse su cui l'utente ha almeno read (grant diretto, via team o via owner dell'organizzazione, owner della risorsa o visibilita' interna: stesse regole di `checkPermission`). `all` e' vero solo per l'amministratore di sistema, e in quel caso `resourceIds` e' vuoto. Un utente inesistente o disattivato riceve `all` falso e nessuna risorsa.

Takes a body of the `application/json` content type.

Corresponds with POST /internal/permissions/readable-resources (the `ListReadableResources` operationId).

func (*Client) ListReadableResourcesWithBody

func (c *Client) ListReadableResourcesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

ListReadableResourcesWithBody Risorse leggibili da un utente

Usata da core per filtrare l'elenco delle risorse: `resourceIds` sono le risorse su cui l'utente ha almeno read (grant diretto, via team o via owner dell'organizzazione, owner della risorsa o visibilita' interna: stesse regole di `checkPermission`). `all` e' vero solo per l'amministratore di sistema, e in quel caso `resourceIds` e' vuoto. Un utente inesistente o disattivato riceve `all` falso e nessuna risorsa.

Takes any type of body and a specified content type.

Corresponds with POST /internal/permissions/readable-resources (the `ListReadableResources` operationId).

func (*Client) ListRepoMirrorRuns

func (c *Client) ListRepoMirrorRuns(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam, params *ListRepoMirrorRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListRepoMirrorRuns Log delle ultime esecuzioni di un mirror in push

Serve `admin` sul repo (V8). Le ultime esecuzioni (al massimo 50 per mirror, 30 giorni), dalla piu' recente. Ogni esecuzione dice l'esito, l'errore ripulito da credenziali e lo SHA di ogni ref. Paginazione come `GET /repos`.

Corresponds with GET /repos/{owner}/{repo}/mirrors/{mirrorId}/runs (the `ListRepoMirrorRuns` operationId).

func (*Client) ListRepoMirrors

func (c *Client) ListRepoMirrors(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *ListRepoMirrorsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListRepoMirrors Elenca i mirror in push di un repo

Serve `admin` sul repo (V8); un repo che non si legge risponde 404, uno senza `admin` 403. Il token non torna mai: `hasToken` dice solo che c'e'. Ogni mirror porta lo stato dell'ultimo tentativo (`state`, `lastAttemptAt`, `lastError`, `lastPushed`). Paginazione come `GET /repos`.

Corresponds with GET /repos/{owner}/{repo}/mirrors (the `ListRepoMirrors` operationId).

func (*Client) ListRepoWebhookDeliveries

func (c *Client) ListRepoWebhookDeliveries(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, params *ListRepoWebhookDeliveriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListRepoWebhookDeliveries Log delle consegne di un webhook di un repo

Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Dalla piu' recente. Le consegne si conservano 30 giorni (C7). Filtro per `status`.

Corresponds with GET /repos/{owner}/{repo}/hooks/{hookId}/deliveries (the `ListRepoWebhookDeliveries` operationId).

func (*Client) ListRepoWebhooks

func (c *Client) ListRepoWebhooks(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *ListRepoWebhooksParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListRepoWebhooks Elenca i webhook di un repo

Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Il segreto non torna mai: `hasSecret` dice se c'e'. Paginazione come `GET /repos`.

Corresponds with GET /repos/{owner}/{repo}/hooks (the `ListRepoWebhooks` operationId).

func (*Client) ListRepositories

func (c *Client) ListRepositories(ctx context.Context, params *ListRepositoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListRepositories Elenca i repo leggibili dall'utente

Repo che l'utente corrente puo' leggere (P1, P3, P6), esclusi quelli eliminati; con `owner` solo quelli di quell'utente o organizzazione. Paginazione come `GET /resources`.

Corresponds with GET /repos (the `ListRepositories` operationId).

func (*Client) ListRepositoryFiles

func (c *Client) ListRepositoryFiles(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *ListRepositoryFilesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListRepositoryFiles Percorsi di tutti i file di un ref ("Go to file")

Regola B5: i percorsi di tutti i file (non le cartelle) di `ref`, per il "Go to file"; la corrispondenza approssimata la fa il client. Al massimo 50 000 percorsi: oltre, `truncated` e' true. Un repo vuoto risponde lista vuota. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.

Corresponds with GET /repos/{owner}/{repo}/files (the `ListRepositoryFiles` operationId).

func (*Client) ListResourceGrants

func (c *Client) ListResourceGrants(ctx context.Context, resourceId ResourceIdParam, params *ListResourceGrantsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListResourceGrants Elenca i grant di una risorsa

Scope `read:resource`; serve almeno il ruolo `admin` sulla risorsa.

Corresponds with GET /resources/{resourceId}/grants (the `ListResourceGrants` operationId).

func (*Client) ListResources

func (c *Client) ListResources(ctx context.Context, params *ListResourcesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListResources Elenca le risorse

Elenco paginato delle risorse, con filtro opzionale per tipo (es. `repo`). Il tipo non è vincolato a un insieme fisso: nuove milestone aggiungono nuovi tipi senza cambiare l'endpoint (D15).

Corresponds with GET /resources (the `ListResources` operationId).

func (*Client) ListSshKeys

func (c *Client) ListSshKeys(ctx context.Context, params *ListSshKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListSshKeys Elenca le chiavi SSH dell'utente corrente

Corresponds with GET /user/ssh-keys (the `ListSshKeys` operationId).

func (*Client) ListTeamMembers

func (c *Client) ListTeamMembers(ctx context.Context, org OrgParam, team TeamParam, params *ListTeamMembersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListTeamMembers Elenca i membri di un team

Corresponds with GET /orgs/{org}/teams/{team}/members (the `ListTeamMembers` operationId).

func (*Client) ListTeams

func (c *Client) ListTeams(ctx context.Context, org OrgParam, params *ListTeamsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListTeams Elenca i team di un'organizzazione

Corresponds with GET /orgs/{org}/teams (the `ListTeams` operationId).

func (*Client) ListTokens

func (c *Client) ListTokens(ctx context.Context, params *ListTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListTokens Elenca i token personali dell'utente corrente

Scope `read:user`. Mai il valore del token, solo `hint`.

Corresponds with GET /user/tokens (the `ListTokens` operationId).

func (*Client) ListUserTokens

func (c *Client) ListUserTokens(ctx context.Context, username UsernameParam, params *ListUserTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListUserTokens Elenca i token di un utente agent

Solo amministratori, scope `write:user` (regola P5). Solo per utenti di tipo `agent`: sui token di una persona decide solo lei (409 `not_an_agent`). Mai il valore del token, solo `hint`.

Corresponds with GET /users/{username}/tokens (the `ListUserTokens` operationId).

func (*Client) ListUsers

func (c *Client) ListUsers(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListUsers Elenca gli utenti

Richiede lo scope `read:user`. Il profilo pubblico non include l'email.

Corresponds with GET /users (the `ListUsers` operationId).

func (*Client) LockIssue

func (c *Client) LockIssue(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body LockIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

LockIssue Blocca la discussione

Serve `admin` (I11). Con la discussione bloccata commenta solo chi ha `write` (gli altri 403 `locked`). Bloccare una issue gia' bloccata e' idempotente. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10). Una issue nascosta (I4) risponde 404 a chi non ha `admin`, tranne dove indicato.

Takes a body of the `application/json` content type.

Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/lock (the `LockIssue` operationId).

func (*Client) LockIssueWithBody

func (c *Client) LockIssueWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

LockIssueWithBody Blocca la discussione

Serve `admin` (I11). Con la discussione bloccata commenta solo chi ha `write` (gli altri 403 `locked`). Bloccare una issue gia' bloccata e' idempotente. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10). Una issue nascosta (I4) risponde 404 a chi non ha `admin`, tranne dove indicato.

Takes any type of body and a specified content type.

Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/lock (the `LockIssue` operationId).

func (*Client) Login

func (c *Client) Login(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

Login Accede con username e password

Crea una sessione. La risposta imposta il cookie `gst_session` (HttpOnly, Secure, SameSite=Lax); il valore non e' nel corpo. Le credenziali sbagliate e l'utente disattivato rispondono entrambi 401 con `invalid_credentials`, senza distinguere i casi. Dopo troppi tentativi falliti (per utente o per indirizzo IP) risponde 429 `too_many_attempts` con l'header `Retry-After` in secondi.

Takes a body of the `application/json` content type.

Corresponds with POST /auth/login (the `Login` operationId).

func (*Client) LoginWithBody

func (c *Client) LoginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

LoginWithBody Accede con username e password

Crea una sessione. La risposta imposta il cookie `gst_session` (HttpOnly, Secure, SameSite=Lax); il valore non e' nel corpo. Le credenziali sbagliate e l'utente disattivato rispondono entrambi 401 con `invalid_credentials`, senza distinguere i casi. Dopo troppi tentativi falliti (per utente o per indirizzo IP) risponde 429 `too_many_attempts` con l'header `Retry-After` in secondi.

Takes any type of body and a specified content type.

Corresponds with POST /auth/login (the `Login` operationId).

func (*Client) Logout

func (c *Client) Logout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

Logout Termina la sessione corrente

Revoca la sessione del cookie `gst_session` e lo cancella.

Corresponds with POST /auth/logout (the `Logout` operationId).

func (*Client) LookupSshKey

func (c *Client) LookupSshKey(ctx context.Context, fingerprint string, reqEditors ...RequestEditorFn) (*http.Response, error)

LookupSshKey Risolve un utente dal fingerprint di una chiave SSH

Usata dal servizio git all'accesso SSH. Aggiorna `lastUsedAt`.

Corresponds with GET /internal/ssh-keys/{fingerprint} (the `LookupSshKey` operationId).

func (*Client) LookupUsersByEmail

func (c *Client) LookupUsersByEmail(ctx context.Context, body LookupUsersByEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

LookupUsersByEmail Trova gli utenti GitStack dalle email dei commit

Per core (M-04): confronta le email, senza distinguere maiuscole, con `users.email` (unica su lower(email)). Massimo 100 email per chiamata; core la chiama una volta per pagina di storico, dettaglio o blame. Le email senza utente non compaiono nella risposta.

Takes a body of the `application/json` content type.

Corresponds with POST /internal/users/lookup-emails (the `LookupUsersByEmail` operationId).

func (*Client) LookupUsersByEmailWithBody

func (c *Client) LookupUsersByEmailWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

LookupUsersByEmailWithBody Trova gli utenti GitStack dalle email dei commit

Per core (M-04): confronta le email, senza distinguere maiuscole, con `users.email` (unica su lower(email)). Massimo 100 email per chiamata; core la chiama una volta per pagina di storico, dettaglio o blame. Le email senza utente non compaiono nella risposta.

Takes any type of body and a specified content type.

Corresponds with POST /internal/users/lookup-emails (the `LookupUsersByEmail` operationId).

func (*Client) LookupUsersByIds

func (c *Client) LookupUsersByIds(ctx context.Context, body LookupUsersByIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

LookupUsersByIds Risolve gli id utente in nome e tipo

Per core (M-05): le issues conservano solo gli id degli utenti e la risposta li mostra con nome utente e tipo (persona o agente). Massimo 100 id per chiamata; gli id senza utente non compaiono nella risposta. Gli utenti disattivati restano.

Takes a body of the `application/json` content type.

Corresponds with POST /internal/users/lookup-ids (the `LookupUsersByIds` operationId).

func (*Client) LookupUsersByIdsWithBody

func (c *Client) LookupUsersByIdsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

LookupUsersByIdsWithBody Risolve gli id utente in nome e tipo

Per core (M-05): le issues conservano solo gli id degli utenti e la risposta li mostra con nome utente e tipo (persona o agente). Massimo 100 id per chiamata; gli id senza utente non compaiono nella risposta. Gli utenti disattivati restano.

Takes any type of body and a specified content type.

Corresponds with POST /internal/users/lookup-ids (the `LookupUsersByIds` operationId).

func (*Client) MarkAllNotificationsRead

func (c *Client) MarkAllNotificationsRead(ctx context.Context, params *MarkAllNotificationsReadParams, reqEditors ...RequestEditorFn) (*http.Response, error)

MarkAllNotificationsRead Segna come lette tutte le notifiche

Segna come lette le notifiche non lette dell'utente corrente, con gli stessi filtri facoltativi (`reason`, `repo`) dell'elenco. Idempotente. Le archiviate non cambiano.

Corresponds with POST /notifications/read-all (the `MarkAllNotificationsRead` operationId).

func (*Client) PurgeResourceAccess

func (c *Client) PurgeResourceAccess(ctx context.Context, resourceId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

PurgeResourceAccess Toglie grant e attributi di una risorsa cancellata (per core)

Per core (M-03/F): dopo la cancellazione definitiva di un repo (R2) toglie tutti i grant (`resource_grants`) e gli attributi di owner e visibilita' della risorsa. Idempotente: 204 anche se non c'era niente da togliere.

Corresponds with DELETE /internal/resources/{resourceId} (the `PurgeResourceAccess` operationId).

func (*Client) ReactivateOrgWebhook

func (c *Client) ReactivateOrgWebhook(ctx context.Context, org OrgParam, hookId WebhookIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

ReactivateOrgWebhook Riattiva un webhook di un'organizzazione

Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Riattiva un webhook (disattivato a mano o dopo 3 giorni di fallimenti consecutivi, C7): `active` torna `true` e i fallimenti consecutivi si azzerano. Idempotente su un webhook gia' attivo.

Corresponds with POST /orgs/{org}/hooks/{hookId}/reactivate (the `ReactivateOrgWebhook` operationId).

func (*Client) ReactivateRepoWebhook

func (c *Client) ReactivateRepoWebhook(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

ReactivateRepoWebhook Riattiva un webhook di un repo

Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Riattiva un webhook (disattivato a mano o dopo 3 giorni di fallimenti consecutivi, C7): `active` torna `true` e i fallimenti consecutivi si azzerano. Idempotente su un webhook gia' attivo.

Corresponds with POST /repos/{owner}/{repo}/hooks/{hookId}/reactivate (the `ReactivateRepoWebhook` operationId).

func (*Client) RedeliverOrgWebhookDelivery

func (c *Client) RedeliverOrgWebhookDelivery(ctx context.Context, org OrgParam, hookId WebhookIdParam, deliveryId WebhookDeliveryIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

RedeliverOrgWebhookDelivery Rinvia una consegna (Redeliver) di un'organizzazione

Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Crea una consegna nuova con lo stesso payload e un nuovo `X-GitStack-Delivery` (`redeliveryOf` punta all'originale), firmata di nuovo col segreto corrente. Risponde 202: la consegna e' in coda e il risultato si legge dal log. Funziona anche su un webhook non attivo e dopo un `410 Gone`; una consegna piu' vecchia di 30 giorni non esiste piu' (404).

Corresponds with POST /orgs/{org}/hooks/{hookId}/deliveries/{deliveryId}/redeliver (the `RedeliverOrgWebhookDelivery` operationId).

func (*Client) RedeliverRepoWebhookDelivery

func (c *Client) RedeliverRepoWebhookDelivery(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, deliveryId WebhookDeliveryIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

RedeliverRepoWebhookDelivery Rinvia una consegna (Redeliver) di un repo

Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Crea una consegna nuova con lo stesso payload e un nuovo `X-GitStack-Delivery` (`redeliveryOf` punta all'originale), firmata di nuovo col segreto corrente. Risponde 202: la consegna e' in coda e il risultato si legge dal log. Funziona anche su un webhook non attivo e dopo un `410 Gone`; una consegna piu' vecchia di 30 giorni non esiste piu' (404).

Corresponds with POST /repos/{owner}/{repo}/hooks/{hookId}/deliveries/{deliveryId}/redeliver (the `RedeliverRepoWebhookDelivery` operationId).

func (*Client) RemoveOrgMember

func (c *Client) RemoveOrgMember(ctx context.Context, org OrgParam, username UsernameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

RemoveOrgMember Rimuove un membro

Scope `write:org`, ruolo `owner` (o l'utente stesso). Lo toglie anche da tutti i team. Non si rimuove l'ultimo `owner` (409 `last_owner`).

Corresponds with DELETE /orgs/{org}/members/{username} (the `RemoveOrgMember` operationId).

func (*Client) RemoveTeamMember

func (c *Client) RemoveTeamMember(ctx context.Context, org OrgParam, team TeamParam, username UsernameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

RemoveTeamMember Rimuove un membro dal team

Corresponds with DELETE /orgs/{org}/teams/{team}/members/{username} (the `RemoveTeamMember` operationId).

func (*Client) ReopenIssue

func (c *Client) ReopenIssue(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*http.Response, error)

ReopenIssue Riapre una issue

Come `closeIssue`: chi ha `write` o l'autore (I3). Riaprire azzera motivo e duplicato (I2). Una issue gia' aperta risponde 409 `already_open`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Corresponds with POST /repos/{owner}/{repo}/issues/{number}/reopen (the `ReopenIssue` operationId).

func (*Client) ResetRepoWatch

func (c *Client) ResetRepoWatch(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

ResetRepoWatch Riporta il Watch al default

Torna a `participating`. Idempotente.

Corresponds with DELETE /repos/{owner}/{repo}/watch (the `ResetRepoWatch` operationId).

func (*Client) ResolveMentions

func (c *Client) ResolveMentions(ctx context.Context, body ResolveMentionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ResolveMentions Risolve le menzioni `@utente`, `@agente` e `@org/team`

Per core (M-06, I8): il motore delle notifiche trasforma i nomi citati nel testo di una issue o di un commento in utenti. Ogni nome e' `utente` (persona o agente) oppure `org/team`; il confronto non distingue maiuscole. Un nome che non e' un utente attivo o un team esistente non compare nella risposta (resta testo). Un team si espande in tutti i suoi membri attivi: chi vede il repo lo decide core. Massimo 100 nomi per chiamata.

Takes a body of the `application/json` content type.

Corresponds with POST /internal/mentions/resolve (the `ResolveMentions` operationId).

func (*Client) ResolveMentionsWithBody

func (c *Client) ResolveMentionsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

ResolveMentionsWithBody Risolve le menzioni `@utente`, `@agente` e `@org/team`

Per core (M-06, I8): il motore delle notifiche trasforma i nomi citati nel testo di una issue o di un commento in utenti. Ogni nome e' `utente` (persona o agente) oppure `org/team`; il confronto non distingue maiuscole. Un nome che non e' un utente attivo o un team esistente non compare nella risposta (resta testo). Un team si espande in tutti i suoi membri attivi: chi vede il repo lo decide core. Massimo 100 nomi per chiamata.

Takes any type of body and a specified content type.

Corresponds with POST /internal/mentions/resolve (the `ResolveMentions` operationId).

func (*Client) ResolveOwner

func (c *Client) ResolveOwner(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

ResolveOwner Risolve il nome di un utente o di un'organizzazione

Spazio di nomi unico (R1): restituisce tipo e id di chi si chiama cosi', 404 se il nome non esiste.

Corresponds with GET /internal/owners/{name} (the `ResolveOwner` operationId).

func (*Client) RestoreRepository

func (c *Client) RestoreRepository(ctx context.Context, repoId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

RestoreRepository Ripristina un repo eliminato

Serve il ruolo `admin` sul repo (R12). Risponde 404 se il repo non esiste, non e' eliminato o il periodo di 7 giorni e' scaduto.

Corresponds with POST /repos/deleted/{repoId}/restore (the `RestoreRepository` operationId).

func (*Client) RevokeToken

func (c *Client) RevokeToken(ctx context.Context, tokenId TokenIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

RevokeToken Revoca un token personale

Scope `write:user`. La revoca e' immediata per identity; il gateway la vede entro il TTL della cache di verifica.

Corresponds with DELETE /user/tokens/{tokenId} (the `RevokeToken` operationId).

func (*Client) RevokeUserToken

func (c *Client) RevokeUserToken(ctx context.Context, username UsernameParam, tokenId TokenIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

RevokeUserToken Revoca un token di un utente agent

Solo amministratori, scope `write:user` (regola P5). Un token che non appartiene a quell'agent e' 404. Utente umano: 409 `not_an_agent`.

Corresponds with DELETE /users/{username}/tokens/{tokenId} (the `RevokeUserToken` operationId).

func (*Client) SearchIssues

func (c *Client) SearchIssues(ctx context.Context, params *SearchIssuesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

SearchIssues Cerca issues su tutta l'installazione

Ricerca con la sintassi di I10 (`is:`, `reason:`, `label:`, `assignee:` con `@me` e `@agents`, `author:`, `milestone:`, `no:`, `repo:`, `org:` e testo libero con ricerca testuale PostgreSQL) sui soli repo che l'utente puo' leggere. Stessa sintassi di `listIssues`, che e' la ricerca nel singolo repo. Le issues nascoste compaiono solo a chi ha `admin` sul loro repo. Un `q` che non si puo' interpretare risponde 422.

Corresponds with GET /search/issues (the `SearchIssues` operationId).

func (*Client) SearchRepositoryCode

func (c *Client) SearchRepositoryCode(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *SearchRepositoryCodeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

SearchRepositoryCode Cerca un testo nel codice di un ref ("Search code")

Regola B5: cerca `q` (sottostringa letterale, senza distinguere maiuscole) nei file di testo di `ref`, senza indice. Al massimo 100 risultati con percorso, riga e frammento (`limitReached` se ce ne sono altri), tempo massimo 10 secondi (`timedOut` se interrotta). Un `q` piu' corto di 2 caratteri risponde 400. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.

Corresponds with GET /repos/{owner}/{repo}/search (the `SearchRepositoryCode` operationId).

func (*Client) SetIssueAssignees

func (c *Client) SetIssueAssignees(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body SetIssueAssigneesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SetIssueAssignees Imposta gli assegnatari

Sostituisce l'elenco con quello indicato (vuoto = nessuno). Serve `write` (I3); chi ha `write` puo' anche autoassegnarsi (I6). Al massimo 10, persone o agenti, tutti con `write` sul repo: altrimenti 422 (`details.fields.assignees`). Ogni aggiunta o rimozione e' un evento della cronologia. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type.

Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/assignees (the `SetIssueAssignees` operationId).

func (*Client) SetIssueAssigneesWithBody

func (c *Client) SetIssueAssigneesWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

SetIssueAssigneesWithBody Imposta gli assegnatari

Sostituisce l'elenco con quello indicato (vuoto = nessuno). Serve `write` (I3); chi ha `write` puo' anche autoassegnarsi (I6). Al massimo 10, persone o agenti, tutti con `write` sul repo: altrimenti 422 (`details.fields.assignees`). Ogni aggiunta o rimozione e' un evento della cronologia. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes any type of body and a specified content type.

Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/assignees (the `SetIssueAssignees` operationId).

func (*Client) SetIssueHidden

func (c *Client) SetIssueHidden(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body SetIssueHiddenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SetIssueHidden Nasconde o mostra una issue

Serve `admin` (I4). Una issue nascosta conserva il numero ma il suo contenuto e' visibile solo a `admin`; le altre persone la ricevono come inesistente (404). Le issues non si eliminano. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type.

Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/hidden (the `SetIssueHidden` operationId).

func (*Client) SetIssueHiddenWithBody

func (c *Client) SetIssueHiddenWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

SetIssueHiddenWithBody Nasconde o mostra una issue

Serve `admin` (I4). Una issue nascosta conserva il numero ma il suo contenuto e' visibile solo a `admin`; le altre persone la ricevono come inesistente (404). Le issues non si eliminano. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes any type of body and a specified content type.

Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/hidden (the `SetIssueHidden` operationId).

func (*Client) SetIssueLabels

func (c *Client) SetIssueLabels(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body SetIssueLabelsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SetIssueLabels Imposta le etichette

Sostituisce l'elenco con quello indicato (I5), per nome. Serve `write`. Una etichetta che non esiste nel repo e' 422 (`details.fields.labels`): non si crea al volo. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type.

Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/labels (the `SetIssueLabels` operationId).

func (*Client) SetIssueLabelsWithBody

func (c *Client) SetIssueLabelsWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

SetIssueLabelsWithBody Imposta le etichette

Sostituisce l'elenco con quello indicato (I5), per nome. Serve `write`. Una etichetta che non esiste nel repo e' 422 (`details.fields.labels`): non si crea al volo. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes any type of body and a specified content type.

Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/labels (the `SetIssueLabels` operationId).

func (*Client) SetIssueMilestone

func (c *Client) SetIssueMilestone(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body SetIssueMilestoneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SetIssueMilestone Imposta o toglie la milestone

Al massimo una milestone per issue (I7); `milestone: null` la toglie. Serve `write`. Una milestone che non esiste nel repo e' 422. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type.

Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/milestone (the `SetIssueMilestone` operationId).

func (*Client) SetIssueMilestoneWithBody

func (c *Client) SetIssueMilestoneWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

SetIssueMilestoneWithBody Imposta o toglie la milestone

Al massimo una milestone per issue (I7); `milestone: null` la toglie. Serve `write`. Una milestone che non esiste nel repo e' 422. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes any type of body and a specified content type.

Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/milestone (the `SetIssueMilestone` operationId).

func (*Client) SetOrgMember

func (c *Client) SetOrgMember(ctx context.Context, org OrgParam, username UsernameParam, body SetOrgMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SetOrgMember Aggiunge un membro o ne cambia il ruolo

Scope `write:org`, ruolo `owner`. Idempotente.

Takes a body of the `application/json` content type.

Corresponds with PUT /orgs/{org}/members/{username} (the `SetOrgMember` operationId).

func (*Client) SetOrgMemberWithBody

func (c *Client) SetOrgMemberWithBody(ctx context.Context, org OrgParam, username UsernameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

SetOrgMemberWithBody Aggiunge un membro o ne cambia il ruolo

Scope `write:org`, ruolo `owner`. Idempotente.

Takes any type of body and a specified content type.

Corresponds with PUT /orgs/{org}/members/{username} (the `SetOrgMember` operationId).

func (*Client) SetRepoWatch

func (c *Client) SetRepoWatch(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body SetRepoWatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SetRepoWatch Imposta il Watch del repo

`participating`: notifiche solo per le issues che si seguono (autore, assegnatario, commentatore, menzionato, iscritto); `all`: anche ogni nuova issue e commento del repo; `ignore`: nessuna notifica dal repo, nemmeno le menzioni dirette e le assegnazioni. Serve `read` sul repo.

Takes a body of the `application/json` content type.

Corresponds with PUT /repos/{owner}/{repo}/watch (the `SetRepoWatch` operationId).

func (*Client) SetRepoWatchWithBody

func (c *Client) SetRepoWatchWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

SetRepoWatchWithBody Imposta il Watch del repo

`participating`: notifiche solo per le issues che si seguono (autore, assegnatario, commentatore, menzionato, iscritto); `all`: anche ogni nuova issue e commento del repo; `ignore`: nessuna notifica dal repo, nemmeno le menzioni dirette e le assegnazioni. Serve `read` sul repo.

Takes any type of body and a specified content type.

Corresponds with PUT /repos/{owner}/{repo}/watch (the `SetRepoWatch` operationId).

func (*Client) SetResourceAttributes

func (c *Client) SetResourceAttributes(ctx context.Context, resourceId openapi_types.UUID, body SetResourceAttributesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SetResourceAttributes Imposta owner e visibilita' di una risorsa (per core)

Servita da identity (D-C, M-03). Core la chiama alla creazione di un repo, prima di `grantResourceCreator`, e a ogni cambio di visibilita'. L'owner non cambia mai (R3). Idempotente. Una risorsa senza attributi si comporta come prima di M-03. Con attributi valgono P1 (owner dell'organizzazione: admin), P6 (proprietario del repo personale: admin) e P3 (interno: read a ogni utente attivo), sia in `checkPermission` sia in `listReadableResources`. 404 se l'owner non esiste, 409 se la risorsa ha gia' un altro owner.

Takes a body of the `application/json` content type.

Corresponds with PUT /internal/resources/{resourceId}/attributes (the `SetResourceAttributes` operationId).

func (*Client) SetResourceAttributesWithBody

func (c *Client) SetResourceAttributesWithBody(ctx context.Context, resourceId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

SetResourceAttributesWithBody Imposta owner e visibilita' di una risorsa (per core)

Servita da identity (D-C, M-03). Core la chiama alla creazione di un repo, prima di `grantResourceCreator`, e a ogni cambio di visibilita'. L'owner non cambia mai (R3). Idempotente. Una risorsa senza attributi si comporta come prima di M-03. Con attributi valgono P1 (owner dell'organizzazione: admin), P6 (proprietario del repo personale: admin) e P3 (interno: read a ogni utente attivo), sia in `checkPermission` sia in `listReadableResources`. 404 se l'owner non esiste, 409 se la risorsa ha gia' un altro owner.

Takes any type of body and a specified content type.

Corresponds with PUT /internal/resources/{resourceId}/attributes (the `SetResourceAttributes` operationId).

func (*Client) SetTeamMember

func (c *Client) SetTeamMember(ctx context.Context, org OrgParam, team TeamParam, username UsernameParam, body SetTeamMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

SetTeamMember Aggiunge un membro al team o ne cambia il ruolo

Scope `write:org`. L'utente deve essere gia' membro dell'organizzazione (altrimenti 422 `not_org_member`). Idempotente.

Takes a body of the `application/json` content type.

Corresponds with PUT /orgs/{org}/teams/{team}/members/{username} (the `SetTeamMember` operationId).

func (*Client) SetTeamMemberWithBody

func (c *Client) SetTeamMemberWithBody(ctx context.Context, org OrgParam, team TeamParam, username UsernameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

SetTeamMemberWithBody Aggiunge un membro al team o ne cambia il ruolo

Scope `write:org`. L'utente deve essere gia' membro dell'organizzazione (altrimenti 422 `not_org_member`). Idempotente.

Takes any type of body and a specified content type.

Corresponds with PUT /orgs/{org}/teams/{team}/members/{username} (the `SetTeamMember` operationId).

func (*Client) StartOidcLogin

func (c *Client) StartOidcLogin(ctx context.Context, provider OidcProviderParam, params *StartOidcLoginParams, reqEditors ...RequestEditorFn) (*http.Response, error)

StartOidcLogin Avvia il login OIDC

Redirect (302) all'authorization endpoint del provider (authorization code + PKCE). `redirectTo` e' un percorso relativo dove tornare dopo il login.

Corresponds with GET /auth/oidc/{provider}/start (the `StartOidcLogin` operationId).

func (*Client) SubscribeIssue

func (c *Client) SubscribeIssue(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*http.Response, error)

SubscribeIssue Segue la issue (Subscribe)

Iscrive l'utente corrente (`reason` `manual`), anche se si era disiscritto. Idempotente. Serve poter leggere la issue.

Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/subscription (the `SubscribeIssue` operationId).

func (*Client) SyncRepoMirror

func (c *Client) SyncRepoMirror(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

SyncRepoMirror Sincronizza ora un mirror in push

Serve `admin` sul repo (V8). Mette il mirror in coda subito («Sincronizza ora»): risponde 202 e il push lo esegue il worker, entro pochi secondi; si segue con `getRepoMirror` e `listRepoMirrorRuns`. Su un mirror `diverged` o in `error` azzera i tentativi e riprova: il push resta non forzato, quindi se la destinazione ha ancora una storia diversa il mirror torna `diverged`. Un mirror in pausa (`enabled: false`) risponde 409 `mirror_disabled`. Idempotente se il mirror e' gia' in coda. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).

Corresponds with POST /repos/{owner}/{repo}/mirrors/{mirrorId}/sync (the `SyncRepoMirror` operationId).

func (*Client) UnlockIssue

func (c *Client) UnlockIssue(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*http.Response, error)

UnlockIssue Sblocca la discussione

Serve `admin` (I11). Sbloccare una issue non bloccata e' idempotente. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Corresponds with DELETE /repos/{owner}/{repo}/issues/{number}/lock (the `UnlockIssue` operationId).

func (*Client) UnsubscribeIssue

func (c *Client) UnsubscribeIssue(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*http.Response, error)

UnsubscribeIssue Smette di seguire la issue (Unsubscribe)

Disiscrive l'utente corrente: da qui l'iscrizione automatica non lo riguarda piu' per questa issue, finche' non fa Subscribe. Le menzioni dirette (`@utente`) e le assegnazioni notificano comunque. Idempotente.

Corresponds with DELETE /repos/{owner}/{repo}/issues/{number}/subscription (the `UnsubscribeIssue` operationId).

func (*Client) UpdateIssue

func (c *Client) UpdateIssue(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body UpdateIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateIssue Modifica titolo e testo

Solo l'autore modifica il proprio testo (I4); chiunque altro riceve 403. Ogni modifica del testo salva la versione precedente (visibile con `admin`, `listIssueVersions`) e fa comparire `edited`. Stato, etichette, assegnatari e milestone hanno le loro operazioni. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10). Su una discussione bloccata (I11) l'autore con soli permessi `read` riceve 403 `locked`. Una issue nascosta (I4) risponde 404 a chi non ha `admin`, tranne dove indicato.

Takes a body of the `application/json` content type.

Corresponds with PATCH /repos/{owner}/{repo}/issues/{number} (the `UpdateIssue` operationId).

func (*Client) UpdateIssueComment

func (c *Client) UpdateIssueComment(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, commentId IssueCommentIdParam, body UpdateIssueCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateIssueComment Modifica un commento

Solo l'autore (I4). Salva la versione precedente e imposta `edited`. Un commento eliminato risponde 404. Con la discussione bloccata solo chi ha `write`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type.

Corresponds with PATCH /repos/{owner}/{repo}/issues/{number}/comments/{commentId} (the `UpdateIssueComment` operationId).

func (*Client) UpdateIssueCommentWithBody

func (c *Client) UpdateIssueCommentWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, commentId IssueCommentIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateIssueCommentWithBody Modifica un commento

Solo l'autore (I4). Salva la versione precedente e imposta `edited`. Un commento eliminato risponde 404. Con la discussione bloccata solo chi ha `write`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes any type of body and a specified content type.

Corresponds with PATCH /repos/{owner}/{repo}/issues/{number}/comments/{commentId} (the `UpdateIssueComment` operationId).

func (*Client) UpdateIssueWithBody

func (c *Client) UpdateIssueWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateIssueWithBody Modifica titolo e testo

Solo l'autore modifica il proprio testo (I4); chiunque altro riceve 403. Ogni modifica del testo salva la versione precedente (visibile con `admin`, `listIssueVersions`) e fa comparire `edited`. Stato, etichette, assegnatari e milestone hanno le loro operazioni. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10). Su una discussione bloccata (I11) l'autore con soli permessi `read` riceve 403 `locked`. Una issue nascosta (I4) risponde 404 a chi non ha `admin`, tranne dove indicato.

Takes any type of body and a specified content type.

Corresponds with PATCH /repos/{owner}/{repo}/issues/{number} (the `UpdateIssue` operationId).

func (*Client) UpdateLabel

func (c *Client) UpdateLabel(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, name LabelNameParam, body UpdateLabelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateLabel Modifica un'etichetta

Serve `write`. Rinominare (o cambiare colore) aggiorna tutte le issues che la usano (il legame e' per id). 409 `already_exists` se il nuovo nome e' occupato. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type.

Corresponds with PATCH /repos/{owner}/{repo}/labels/{name} (the `UpdateLabel` operationId).

func (*Client) UpdateLabelWithBody

func (c *Client) UpdateLabelWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, name LabelNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateLabelWithBody Modifica un'etichetta

Serve `write`. Rinominare (o cambiare colore) aggiorna tutte le issues che la usano (il legame e' per id). 409 `already_exists` se il nuovo nome e' occupato. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes any type of body and a specified content type.

Corresponds with PATCH /repos/{owner}/{repo}/labels/{name} (the `UpdateLabel` operationId).

func (*Client) UpdateMilestone

func (c *Client) UpdateMilestone(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, milestoneNumber MilestoneNumberParam, body UpdateMilestoneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateMilestone Modifica o chiude una milestone

Serve `write`. `state` la chiude o la riapre. `dueOn: null` toglie la data. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type.

Corresponds with PATCH /repos/{owner}/{repo}/milestones/{milestoneNumber} (the `UpdateMilestone` operationId).

func (*Client) UpdateMilestoneWithBody

func (c *Client) UpdateMilestoneWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, milestoneNumber MilestoneNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateMilestoneWithBody Modifica o chiude una milestone

Serve `write`. `state` la chiude o la riapre. `dueOn: null` toglie la data. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes any type of body and a specified content type.

Corresponds with PATCH /repos/{owner}/{repo}/milestones/{milestoneNumber} (the `UpdateMilestone` operationId).

func (*Client) UpdateNotification

func (c *Client) UpdateNotification(ctx context.Context, notificationId NotificationIdParam, body UpdateNotificationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateNotification Segna come letta/non letta o archivia

Imposta `read` (segna come letta o di nuovo non letta) e/o `archived` (archivia o ripristina). Almeno un campo, altrimenti 400. Idempotente.

Takes a body of the `application/json` content type.

Corresponds with PATCH /notifications/{notificationId} (the `UpdateNotification` operationId).

func (*Client) UpdateNotificationPreferences

func (c *Client) UpdateNotificationPreferences(ctx context.Context, body UpdateNotificationPreferencesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateNotificationPreferences Imposta le preferenze email

Imposta i tipi indicati in `email`; quelli omessi restano come sono. Un tipo sconosciuto: 422 (`details.fields.email`).

Takes a body of the `application/json` content type.

Corresponds with PUT /user/notification-preferences (the `UpdateNotificationPreferences` operationId).

func (*Client) UpdateNotificationPreferencesWithBody

func (c *Client) UpdateNotificationPreferencesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateNotificationPreferencesWithBody Imposta le preferenze email

Imposta i tipi indicati in `email`; quelli omessi restano come sono. Un tipo sconosciuto: 422 (`details.fields.email`).

Takes any type of body and a specified content type.

Corresponds with PUT /user/notification-preferences (the `UpdateNotificationPreferences` operationId).

func (*Client) UpdateNotificationWithBody

func (c *Client) UpdateNotificationWithBody(ctx context.Context, notificationId NotificationIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateNotificationWithBody Segna come letta/non letta o archivia

Imposta `read` (segna come letta o di nuovo non letta) e/o `archived` (archivia o ripristina). Almeno un campo, altrimenti 400. Idempotente.

Takes any type of body and a specified content type.

Corresponds with PATCH /notifications/{notificationId} (the `UpdateNotification` operationId).

func (*Client) UpdateOrgWebhook

func (c *Client) UpdateOrgWebhook(ctx context.Context, org OrgParam, hookId WebhookIdParam, body UpdateOrgWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateOrgWebhook Modifica un webhook di un'organizzazione

Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Cambia solo i campi indicati. `secret`: una stringa sostituisce il segreto, la stringa vuota lo toglie. `active: false` mette in pausa il webhook senza eliminarlo. Un webhook disattivato dai fallimenti (C7) si riattiva con l'operazione `reactivate`, non con `active: true`: 409 `webhook_disabled`.

Takes a body of the `application/json` content type.

Corresponds with PATCH /orgs/{org}/hooks/{hookId} (the `UpdateOrgWebhook` operationId).

func (*Client) UpdateOrgWebhookWithBody

func (c *Client) UpdateOrgWebhookWithBody(ctx context.Context, org OrgParam, hookId WebhookIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateOrgWebhookWithBody Modifica un webhook di un'organizzazione

Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Cambia solo i campi indicati. `secret`: una stringa sostituisce il segreto, la stringa vuota lo toglie. `active: false` mette in pausa il webhook senza eliminarlo. Un webhook disattivato dai fallimenti (C7) si riattiva con l'operazione `reactivate`, non con `active: true`: 409 `webhook_disabled`.

Takes any type of body and a specified content type.

Corresponds with PATCH /orgs/{org}/hooks/{hookId} (the `UpdateOrgWebhook` operationId).

func (*Client) UpdateOrganization

func (c *Client) UpdateOrganization(ctx context.Context, org OrgParam, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateOrganization Aggiorna un'organizzazione

Scope `write:org`, ruolo `owner`.

Takes a body of the `application/json` content type.

Corresponds with PATCH /orgs/{org} (the `UpdateOrganization` operationId).

func (*Client) UpdateOrganizationWithBody

func (c *Client) UpdateOrganizationWithBody(ctx context.Context, org OrgParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateOrganizationWithBody Aggiorna un'organizzazione

Scope `write:org`, ruolo `owner`.

Takes any type of body and a specified content type.

Corresponds with PATCH /orgs/{org} (the `UpdateOrganization` operationId).

func (*Client) UpdateRepoMirror

func (c *Client) UpdateRepoMirror(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam, body UpdateRepoMirrorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateRepoMirror Modifica un mirror in push

Serve `admin` sul repo (V8). Cambia solo i campi indicati. `token`: una stringa sostituisce il token (non si puo' togliere: il mirror non funzionerebbe). Cambiare `url` azzera lo stato e rimette in coda il mirror. `enabled: false` mette in pausa il mirror (nessun push, nemmeno su richiesta) senza eliminarlo. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type.

Corresponds with PATCH /repos/{owner}/{repo}/mirrors/{mirrorId} (the `UpdateRepoMirror` operationId).

func (*Client) UpdateRepoMirrorWithBody

func (c *Client) UpdateRepoMirrorWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateRepoMirrorWithBody Modifica un mirror in push

Serve `admin` sul repo (V8). Cambia solo i campi indicati. `token`: una stringa sostituisce il token (non si puo' togliere: il mirror non funzionerebbe). Cambiare `url` azzera lo stato e rimette in coda il mirror. `enabled: false` mette in pausa il mirror (nessun push, nemmeno su richiesta) senza eliminarlo. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).

Takes any type of body and a specified content type.

Corresponds with PATCH /repos/{owner}/{repo}/mirrors/{mirrorId} (the `UpdateRepoMirror` operationId).

func (*Client) UpdateRepoWebhook

func (c *Client) UpdateRepoWebhook(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, body UpdateRepoWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateRepoWebhook Modifica un webhook di un repo

Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Cambia solo i campi indicati. `secret`: una stringa sostituisce il segreto, la stringa vuota lo toglie. `active: false` mette in pausa il webhook senza eliminarlo. Un webhook disattivato dai fallimenti (C7) si riattiva con l'operazione `reactivate`, non con `active: true`: 409 `webhook_disabled`. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type.

Corresponds with PATCH /repos/{owner}/{repo}/hooks/{hookId} (the `UpdateRepoWebhook` operationId).

func (*Client) UpdateRepoWebhookWithBody

func (c *Client) UpdateRepoWebhookWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateRepoWebhookWithBody Modifica un webhook di un repo

Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Cambia solo i campi indicati. `secret`: una stringa sostituisce il segreto, la stringa vuota lo toglie. `active: false` mette in pausa il webhook senza eliminarlo. Un webhook disattivato dai fallimenti (C7) si riattiva con l'operazione `reactivate`, non con `active: true`: 409 `webhook_disabled`. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).

Takes any type of body and a specified content type.

Corresponds with PATCH /repos/{owner}/{repo}/hooks/{hookId} (the `UpdateRepoWebhook` operationId).

func (*Client) UpdateRepository

func (c *Client) UpdateRepository(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body UpdateRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateRepository Modifica le impostazioni di un repo

Serve il ruolo `admin` (403 se l'utente legge ma non ha il ruolo). Il branch principale (R4) deve essere un branch esistente; `protectDefaultBranch` e' R9; `archived` archivia o riattiva (R10). Owner e nome non cambiano mai (R3). Un repo archiviato rifiuta ogni modifica con 409, tranne `archived: false` da solo.

Takes a body of the `application/json` content type.

Corresponds with PATCH /repos/{owner}/{repo} (the `UpdateRepository` operationId).

func (*Client) UpdateRepositoryWithBody

func (c *Client) UpdateRepositoryWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateRepositoryWithBody Modifica le impostazioni di un repo

Serve il ruolo `admin` (403 se l'utente legge ma non ha il ruolo). Il branch principale (R4) deve essere un branch esistente; `protectDefaultBranch` e' R9; `archived` archivia o riattiva (R10). Owner e nome non cambiano mai (R3). Un repo archiviato rifiuta ogni modifica con 409, tranne `archived: false` da solo.

Takes any type of body and a specified content type.

Corresponds with PATCH /repos/{owner}/{repo} (the `UpdateRepository` operationId).

func (*Client) UpdateResource

func (c *Client) UpdateResource(ctx context.Context, resourceId ResourceIdParam, body UpdateResourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateResource Aggiorna una risorsa

Aggiornamento parziale: solo i campi presenti nel corpo cambiano.

Takes a body of the `application/json` content type.

Corresponds with PATCH /resources/{resourceId} (the `UpdateResource` operationId).

func (*Client) UpdateResourceGrant

func (c *Client) UpdateResourceGrant(ctx context.Context, resourceId ResourceIdParam, grantId GrantIdParam, body UpdateResourceGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateResourceGrant Cambia il ruolo di un grant

Takes a body of the `application/json` content type.

Corresponds with PATCH /resources/{resourceId}/grants/{grantId} (the `UpdateResourceGrant` operationId).

func (*Client) UpdateResourceGrantWithBody

func (c *Client) UpdateResourceGrantWithBody(ctx context.Context, resourceId ResourceIdParam, grantId GrantIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateResourceGrantWithBody Cambia il ruolo di un grant

Takes any type of body and a specified content type.

Corresponds with PATCH /resources/{resourceId}/grants/{grantId} (the `UpdateResourceGrant` operationId).

func (*Client) UpdateResourceWithBody

func (c *Client) UpdateResourceWithBody(ctx context.Context, resourceId ResourceIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateResourceWithBody Aggiorna una risorsa

Aggiornamento parziale: solo i campi presenti nel corpo cambiano.

Takes any type of body and a specified content type.

Corresponds with PATCH /resources/{resourceId} (the `UpdateResource` operationId).

func (*Client) UpdateTeam

func (c *Client) UpdateTeam(ctx context.Context, org OrgParam, team TeamParam, body UpdateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateTeam Aggiorna un team

Takes a body of the `application/json` content type.

Corresponds with PATCH /orgs/{org}/teams/{team} (the `UpdateTeam` operationId).

func (*Client) UpdateTeamWithBody

func (c *Client) UpdateTeamWithBody(ctx context.Context, org OrgParam, team TeamParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateTeamWithBody Aggiorna un team

Takes any type of body and a specified content type.

Corresponds with PATCH /orgs/{org}/teams/{team} (the `UpdateTeam` operationId).

func (*Client) UpdateUser

func (c *Client) UpdateUser(ctx context.Context, username UsernameParam, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateUser Aggiorna il profilo

Scope `write:user`. Solo l'utente stesso (profilo) o un amministratore (anche `isAdmin`, `isActive`).

Takes a body of the `application/json` content type.

Corresponds with PATCH /users/{username} (the `UpdateUser` operationId).

func (*Client) UpdateUserWithBody

func (c *Client) UpdateUserWithBody(ctx context.Context, username UsernameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateUserWithBody Aggiorna il profilo

Scope `write:user`. Solo l'utente stesso (profilo) o un amministratore (anche `isAdmin`, `isActive`).

Takes any type of body and a specified content type.

Corresponds with PATCH /users/{username} (the `UpdateUser` operationId).

func (*Client) UploadIssueAttachmentWithBody

func (c *Client) UploadIssueAttachmentWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UploadIssueAttachmentWithBody Carica un allegato

`multipart/form-data` con un solo campo `file`. Chi vede il repo (I3, I9). Tipi ammessi: immagini (PNG, JPEG, GIF, WebP), PDF, testo/log, ZIP; limite configurabile (default 10 MB): oltre, 413 `attachment_too_large`; tipo non ammesso (verificato sui byte, non sul nome): 422 `unsupported_media_type`. L'allegato nasce non collegato e va indicato in `attachmentIds` di una issue o di un commento; uno non collegato entro 24 ore e' eliminato. Si salvano solo i metadati in DB; il nome originale non entra mai nel percorso su disco. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes any type of body and a specified content type.

Corresponds with POST /repos/{owner}/{repo}/issue-attachments (the `UploadIssueAttachment` operationId).

func (*Client) VerifyCredential

func (c *Client) VerifyCredential(ctx context.Context, body VerifyCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

VerifyCredential Verifica una credenziale (per il gateway)

Il gateway invia il valore grezzo della credenziale (cookie di sessione oppure token `gst_...`) e riceve il principal. Non c'e' distinzione fra "sconosciuta", "scaduta" e "revocata": `active` false. Aggiorna `last_used_at` (al piu' una volta al minuto per credenziale).

Takes a body of the `application/json` content type.

Corresponds with POST /internal/verify (the `VerifyCredential` operationId).

func (*Client) VerifyCredentialWithBody

func (c *Client) VerifyCredentialWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

VerifyCredentialWithBody Verifica una credenziale (per il gateway)

Il gateway invia il valore grezzo della credenziale (cookie di sessione oppure token `gst_...`) e riceve il principal. Non c'e' distinzione fra "sconosciuta", "scaduta" e "revocata": `active` false. Aggiorna `last_used_at` (al piu' una volta al minuto per credenziale).

Takes any type of body and a specified content type.

Corresponds with POST /internal/verify (the `VerifyCredential` operationId).

type ClientInterface

type ClientInterface interface {

	// LoginWithBody Accede con username e password
	//
	// Crea una sessione. La risposta imposta il cookie `gst_session` (HttpOnly, Secure, SameSite=Lax); il valore non e' nel corpo. Le credenziali sbagliate e l'utente disattivato rispondono entrambi 401 con `invalid_credentials`, senza distinguere i casi. Dopo troppi tentativi falliti (per utente o per indirizzo IP) risponde 429 `too_many_attempts` con l'header `Retry-After` in secondi.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /auth/login (the `Login` operationId).
	LoginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Login Accede con username e password
	//
	// Crea una sessione. La risposta imposta il cookie `gst_session` (HttpOnly, Secure, SameSite=Lax); il valore non e' nel corpo. Le credenziali sbagliate e l'utente disattivato rispondono entrambi 401 con `invalid_credentials`, senza distinguere i casi. Dopo troppi tentativi falliti (per utente o per indirizzo IP) risponde 429 `too_many_attempts` con l'header `Retry-After` in secondi.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /auth/login (the `Login` operationId).
	Login(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Logout Termina la sessione corrente
	//
	// Revoca la sessione del cookie `gst_session` e lo cancella.
	//
	// Corresponds with POST /auth/logout (the `Logout` operationId).
	Logout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListOidcProviders Provider OIDC abilitati
	//
	// Elenco pubblico per la pagina di login. Nessun segreto.
	//
	// Corresponds with GET /auth/oidc/providers (the `ListOidcProviders` operationId).
	ListOidcProviders(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FinishOidcLogin Completa il login OIDC
	//
	// Callback del provider. Se l'identita' (provider, subject) e' gia' collegata a un utente crea la sessione (cookie `gst_session`) e fa redirect (302) a `redirectTo`. Altrimenti decide la configurazione del provider: con `linkByVerifiedEmail` (default false) e un'email che il provider dichiara verificata (`email_verified`) collega l'identita' all'utente locale con quella email; con `autoCreateUsers` (default false) crea un nuovo utente (senza password) e lo collega; un'email non verificata non si collega mai a un utente esistente. In tutti gli altri casi (compreso il default, con entrambe le opzioni a false) risponde 409 `oidc_identity_unlinked`.
	//
	// Corresponds with GET /auth/oidc/{provider}/callback (the `FinishOidcLogin` operationId).
	FinishOidcLogin(ctx context.Context, provider OidcProviderParam, params *FinishOidcLoginParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StartOidcLogin Avvia il login OIDC
	//
	// Redirect (302) all'authorization endpoint del provider (authorization code + PKCE). `redirectTo` e' un percorso relativo dove tornare dopo il login.
	//
	// Corresponds with GET /auth/oidc/{provider}/start (the `StartOidcLogin` operationId).
	StartOidcLogin(ctx context.Context, provider OidcProviderParam, params *StartOidcLoginParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCurrentSession Sessione corrente
	//
	// Chi e' il chiamante e con quale credenziale (sessione o token personale, con i suoi scope). Non richiede scope: basta essere autenticati.
	//
	// Corresponds with GET /auth/session (the `GetCurrentSession` operationId).
	GetCurrentSession(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetHealth Stato del servizio
	//
	// Controllo di salute, senza autenticazione: usato da orchestratore (k3s) e dai probe di deploy.
	//
	// Corresponds with GET /health (the `GetHealth` operationId).
	GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GitCreateRepoWithBody Crea il repo su disco (per core)
	//
	// Implementata a mano dal servizio git (non generata). Crea il bare repo e, se richiesto (R5), il primo commit su `defaultBranch`.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /internal/git/repos (the `GitCreateRepo` operationId).
	GitCreateRepoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GitCreateRepo Crea il repo su disco (per core)
	//
	// Implementata a mano dal servizio git (non generata). Crea il bare repo e, se richiesto (R5), il primo commit su `defaultBranch`.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /internal/git/repos (the `GitCreateRepo` operationId).
	GitCreateRepo(ctx context.Context, body GitCreateRepoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GitDeleteRepo Cancella definitivamente un repo (solo dal cestino)
	//
	// Risponde 409 se il repo non e' nel cestino.
	//
	// Corresponds with DELETE /internal/git/repos/{repoId} (the `GitDeleteRepo` operationId).
	GitDeleteRepo(ctx context.Context, repoId GitRepoIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GitGetRepo Stato di un repo su disco
	//
	// Corresponds with GET /internal/git/repos/{repoId} (the `GitGetRepo` operationId).
	GitGetRepo(ctx context.Context, repoId GitRepoIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GitGetArchive Archivio ZIP o tar.gz di un ref (streaming) (per core)
	//
	// Corrispondente interno di `getRepositoryArchive`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Archivio dell'albero a `ref`, in ZIP (default) o tar.gz secondo `format`, in streaming (nessun buffer in memoria). Il nome del file (`Content-Disposition`) lo mette il servizio con il nome del repo che gli passa core in `name`; stesse intestazioni di sicurezza di `getRepositoryRaw`.
	//
	// Corresponds with GET /internal/git/repos/{repoId}/archive (the `GitGetArchive` operationId).
	GitGetArchive(ctx context.Context, repoId GitRepoIdParam, params *GitGetArchiveParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GitGetBlame Blame di un file (per core)
	//
	// Corrispondente interno di `getRepositoryBlame`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Per ogni intervallo di righe di `path` a `ref`, il commit che l'ha scritto per ultimo (mockup 08, scheda Blame). Un file binario o oltre 1 MB risponde 400 `blame_unavailable`.
	//
	// Corresponds with GET /internal/git/repos/{repoId}/blame (the `GitGetBlame` operationId).
	GitGetBlame(ctx context.Context, repoId GitRepoIdParam, params *GitGetBlameParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GitGetBranches Branch del repo, con conteggi (per core)
	//
	// Corrispondente interno di `getRepositoryBranches`: parla solo per repoId e non conosce utenti ne' permessi. Gli autori non portano `user`: lo aggiunge core. Tutti i branch, con il branch principale (R4) per primo; `total` e' il conteggio (mockup 07: "4 branches").
	//
	// Corresponds with GET /internal/git/repos/{repoId}/branches (the `GitGetBranches` operationId).
	GitGetBranches(ctx context.Context, repoId GitRepoIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GitGetCommits Storico dei commit, paginato (per core)
	//
	// Corrispondente interno di `getRepositoryCommits`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Commit raggiungibili da `ref`, dal piu' recente (mockup 09). Filtri `author` (nome o email, senza distinguere maiuscole) e `path` (solo i commit che toccano quel percorso). Pagina di default 30, massimo 100. Ogni autore porta `user` se la sua email corrisponde a un utente GitStack, altrimenti null.
	//
	// Corresponds with GET /internal/git/repos/{repoId}/commits (the `GitGetCommits` operationId).
	GitGetCommits(ctx context.Context, repoId GitRepoIdParam, params *GitGetCommitsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GitGetCommit Dettaglio di un commit con diff per file (per core)
	//
	// Corrispondente interno di `getRepositoryCommit`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Messaggio, autore e diff per file (mockup 10). Limiti: al massimo 300 file e 20 000 righe di diff in totale, e 1 MB per file; oltre, il file o la risposta sono marcati `truncated` e il patch e' omesso o parziale. `sha` e' lo sha completo o un prefisso univoco di almeno 7 caratteri; 400 se non e' esadecimale, 404 se non esiste.
	//
	// Corresponds with GET /internal/git/repos/{repoId}/commits/{sha} (the `GitGetCommit` operationId).
	GitGetCommit(ctx context.Context, repoId GitRepoIdParam, sha CommitShaParam, params *GitGetCommitParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GitGetCommitDiff Diff completo di un commit come .diff, in streaming (per core)
	//
	// B6: `git diff --binary` del commit contro il primo genitore (contro l'albero vuoto per il commit iniziale), accettato da `git apply`. Content-Type `text/plain`, Content-Disposition `attachment` con nome `<sha12>.diff`, `X-Content-Type-Options: nosniff`. Nessun limite di righe e nessun buffer in memoria. Gli errori (400, 404) escono come JSON prima del primo byte; un errore a meta' interrompe la risposta.
	//
	// Corresponds with GET /internal/git/repos/{repoId}/commits/{sha}/diff (the `GitGetCommitDiff` operationId).
	GitGetCommitDiff(ctx context.Context, repoId GitRepoIdParam, sha CommitShaParam, params *GitGetCommitDiffParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GitGetCommitPatch Patch di un commit in formato git format-patch, in streaming (per core)
	//
	// B6: come `gitGetCommitDiff`, ma con messaggio e autore in forma di email (`git format-patch --stdout`; per un commit di merge, contro il primo genitore). Nome `<sha12>.patch`. Accettato da `git apply` e `git am`.
	//
	// Corresponds with GET /internal/git/repos/{repoId}/commits/{sha}/patch (the `GitGetCommitPatch` operationId).
	GitGetCommitPatch(ctx context.Context, repoId GitRepoIdParam, sha CommitShaParam, params *GitGetCommitPatchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GitGetFile Contenuto di un file (per core)
	//
	// Corrispondente interno di `getRepositoryFile`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Stesse regole B1 di `getRepositoryFile` per `kind`, `display`, `content`, `encoding`, `mimeType` e `truncated` (1 MB evidenziato, 5 MB testo semplice, immagini inline fino a 1 MB). 404 se `path` non esiste o non e' un file.
	//
	// Corresponds with GET /internal/git/repos/{repoId}/contents (the `GitGetFile` operationId).
	GitGetFile(ctx context.Context, repoId GitRepoIdParam, params *GitGetFileParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GitListFiles Percorsi di tutti i file di un ref (per core)
	//
	// Corrispondente interno di `listRepositoryFiles`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Stesse regole B5 (al massimo 50 000 percorsi, `truncated`).
	//
	// Corresponds with GET /internal/git/repos/{repoId}/files (the `GitListFiles` operationId).
	GitListFiles(ctx context.Context, repoId GitRepoIdParam, params *GitListFilesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GitGetLanguages Lingue del repo (per core)
	//
	// Corrispondente interno di `getRepositoryLanguages`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Byte per linguaggio al branch principale o a `ref`, con la percentuale sul totale, in ordine decrescente (pannello About, mockup 07). Un repo vuoto risponde lista vuota.
	//
	// Corresponds with GET /internal/git/repos/{repoId}/languages (the `GitGetLanguages` operationId).
	GitGetLanguages(ctx context.Context, repoId GitRepoIdParam, params *GitGetLanguagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GitGetRaw Contenuto grezzo di un file (streaming) (per core)
	//
	// Corrispondente interno di `getRepositoryRaw`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Byte del file `path` a `ref`, senza limite di dimensione, in streaming (nessun buffer in memoria), `Content-Length` quando noto. Le intestazioni di sicurezza della regola B3 le scrive questo servizio (non nginx, ne' core le riscrive): vedi `getRepositoryRaw`. 404 se `path` non esiste o non e' un file.
	//
	// Corresponds with GET /internal/git/repos/{repoId}/raw (the `GitGetRaw` operationId).
	GitGetRaw(ctx context.Context, repoId GitRepoIdParam, params *GitGetRawParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GitGetReadme README di una cartella (per core)
	//
	// Corrispondente interno di `getRepositoryReadme`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Il README della cartella `path` (radice se assente), cercato come `README.md`, `README`, `README.txt` (senza distinguere maiuscole), con le stesse regole B1 di `contents`. 404 se non c'e'.
	//
	// Corresponds with GET /internal/git/repos/{repoId}/readme (the `GitGetReadme` operationId).
	GitGetReadme(ctx context.Context, repoId GitRepoIdParam, params *GitGetReadmeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GitRestoreRepo Ripristina un repo dal cestino (R2)
	//
	// Corresponds with POST /internal/git/repos/{repoId}/restore (the `GitRestoreRepo` operationId).
	GitRestoreRepo(ctx context.Context, repoId GitRepoIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GitSearchCode Cerca un testo nel codice di un ref (per core)
	//
	// Corrispondente interno di `searchRepositoryCode`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Stesse regole B5 (100 risultati, 10 secondi, senza indice).
	//
	// Corresponds with GET /internal/git/repos/{repoId}/search (the `GitSearchCode` operationId).
	GitSearchCode(ctx context.Context, repoId GitRepoIdParam, params *GitSearchCodeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GitGetTags Tag del repo, con conteggi (per core)
	//
	// Corrispondente interno di `getRepositoryTags`: parla solo per repoId e non conosce utenti ne' permessi. Gli autori non portano `user`: lo aggiunge core. Tutti i tag, dal piu' recente; `total` e' il conteggio (mockup 07: "7 tags").
	//
	// Corresponds with GET /internal/git/repos/{repoId}/tags (the `GitGetTags` operationId).
	GitGetTags(ctx context.Context, repoId GitRepoIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GitTrashRepo Sposta un repo nel cestino (R2)
	//
	// Corresponds with POST /internal/git/repos/{repoId}/trash (the `GitTrashRepo` operationId).
	GitTrashRepo(ctx context.Context, repoId GitRepoIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GitGetTree Albero di una cartella con l'ultimo commit per voce (per core)
	//
	// Corrispondente interno di `getRepositoryTree`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Voci della cartella `path` (radice se assente) a `ref`, con l'ultimo commit che ha toccato ciascuna (mockup 07). Al massimo 1 000 voci: oltre, `truncated` e' true. Ordine: cartelle, poi file, per nome. 404 se `path` non esiste o non e' una cartella.
	//
	// Corresponds with GET /internal/git/repos/{repoId}/tree (the `GitGetTree` operationId).
	GitGetTree(ctx context.Context, repoId GitRepoIdParam, params *GitGetTreeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResolveMentionsWithBody Risolve le menzioni `@utente`, `@agente` e `@org/team`
	//
	// Per core (M-06, I8): il motore delle notifiche trasforma i nomi citati nel testo di una issue o di un commento in utenti. Ogni nome e' `utente` (persona o agente) oppure `org/team`; il confronto non distingue maiuscole. Un nome che non e' un utente attivo o un team esistente non compare nella risposta (resta testo). Un team si espande in tutti i suoi membri attivi: chi vede il repo lo decide core. Massimo 100 nomi per chiamata.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /internal/mentions/resolve (the `ResolveMentions` operationId).
	ResolveMentionsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResolveMentions Risolve le menzioni `@utente`, `@agente` e `@org/team`
	//
	// Per core (M-06, I8): il motore delle notifiche trasforma i nomi citati nel testo di una issue o di un commento in utenti. Ogni nome e' `utente` (persona o agente) oppure `org/team`; il confronto non distingue maiuscole. Un nome che non e' un utente attivo o un team esistente non compare nella risposta (resta testo). Un team si espande in tutti i suoi membri attivi: chi vede il repo lo decide core. Massimo 100 nomi per chiamata.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /internal/mentions/resolve (the `ResolveMentions` operationId).
	ResolveMentions(ctx context.Context, body ResolveMentionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListOrgOwners Elenca gli owner di un'organizzazione
	//
	// Per core (M-06/G, webhook di organizzazione, C6): chi puo' gestire un webhook di organizzazione sono gli owner, e a loro va la notifica di disattivazione (C7). Restituisce gli id utente degli owner; 404 se l'organizzazione non esiste.
	//
	// Corresponds with GET /internal/orgs/{orgId}/owners (the `ListOrgOwners` operationId).
	ListOrgOwners(ctx context.Context, orgId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResolveOwner Risolve il nome di un utente o di un'organizzazione
	//
	// Spazio di nomi unico (R1): restituisce tipo e id di chi si chiama cosi', 404 se il nome non esiste.
	//
	// Corresponds with GET /internal/owners/{name} (the `ResolveOwner` operationId).
	ResolveOwner(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CheckPermissionWithBody Verifica un permesso su una risorsa
	//
	// Usata da core e git per applicare i permessi: `allowed` e' vero se l'utente ha almeno il ruolo richiesto sulla risorsa (grant diretto, via team, amministratore; owner dell'organizzazione e proprietario del repo personale sono admin, una risorsa interna e' leggibile da ogni utente attivo: P1, P6, P3).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /internal/permissions/check (the `CheckPermission` operationId).
	CheckPermissionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CheckPermission Verifica un permesso su una risorsa
	//
	// Usata da core e git per applicare i permessi: `allowed` e' vero se l'utente ha almeno il ruolo richiesto sulla risorsa (grant diretto, via team, amministratore; owner dell'organizzazione e proprietario del repo personale sono admin, una risorsa interna e' leggibile da ogni utente attivo: P1, P6, P3).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /internal/permissions/check (the `CheckPermission` operationId).
	CheckPermission(ctx context.Context, body CheckPermissionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListReadableResourcesWithBody Risorse leggibili da un utente
	//
	// Usata da core per filtrare l'elenco delle risorse: `resourceIds` sono le risorse su cui l'utente ha almeno read (grant diretto, via team o via owner dell'organizzazione, owner della risorsa o visibilita' interna: stesse regole di `checkPermission`). `all` e' vero solo per l'amministratore di sistema, e in quel caso `resourceIds` e' vuoto. Un utente inesistente o disattivato riceve `all` falso e nessuna risorsa.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /internal/permissions/readable-resources (the `ListReadableResources` operationId).
	ListReadableResourcesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListReadableResources Risorse leggibili da un utente
	//
	// Usata da core per filtrare l'elenco delle risorse: `resourceIds` sono le risorse su cui l'utente ha almeno read (grant diretto, via team o via owner dell'organizzazione, owner della risorsa o visibilita' interna: stesse regole di `checkPermission`). `all` e' vero solo per l'amministratore di sistema, e in quel caso `resourceIds` e' vuoto. Un utente inesistente o disattivato riceve `all` falso e nessuna risorsa.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /internal/permissions/readable-resources (the `ListReadableResources` operationId).
	ListReadableResources(ctx context.Context, body ListReadableResourcesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetUserAccessSourcesWithBody Risorse raggiungibili da un utente, con ruolo e fonti
	//
	// Per core (`getUserAccess`): per ogni risorsa con un grant o un attributo che riguarda l'utente, il ruolo effettivo e le fonti (stesse regole di `checkPermission`). Per l'amministratore di sistema `admin` e' vero e `items` e' vuoto (core elenca tutti i repo). Utente disattivato: nessun elemento. Utente inesistente: 404.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /internal/permissions/user-access (the `GetUserAccessSources` operationId).
	GetUserAccessSourcesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetUserAccessSources Risorse raggiungibili da un utente, con ruolo e fonti
	//
	// Per core (`getUserAccess`): per ogni risorsa con un grant o un attributo che riguarda l'utente, il ruolo effettivo e le fonti (stesse regole di `checkPermission`). Per l'amministratore di sistema `admin` e' vero e `items` e' vuoto (core elenca tutti i repo). Utente disattivato: nessun elemento. Utente inesistente: 404.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /internal/permissions/user-access (the `GetUserAccessSources` operationId).
	GetUserAccessSources(ctx context.Context, body GetUserAccessSourcesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PurgeResourceAccess Toglie grant e attributi di una risorsa cancellata (per core)
	//
	// Per core (M-03/F): dopo la cancellazione definitiva di un repo (R2) toglie tutti i grant (`resource_grants`) e gli attributi di owner e visibilita' della risorsa. Idempotente: 204 anche se non c'era niente da togliere.
	//
	// Corresponds with DELETE /internal/resources/{resourceId} (the `PurgeResourceAccess` operationId).
	PurgeResourceAccess(ctx context.Context, resourceId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetResourceAttributesWithBody Imposta owner e visibilita' di una risorsa (per core)
	//
	// Servita da identity (D-C, M-03). Core la chiama alla creazione di un repo, prima di `grantResourceCreator`, e a ogni cambio di visibilita'. L'owner non cambia mai (R3). Idempotente. Una risorsa senza attributi si comporta come prima di M-03. Con attributi valgono P1 (owner dell'organizzazione: admin), P6 (proprietario del repo personale: admin) e P3 (interno: read a ogni utente attivo), sia in `checkPermission` sia in `listReadableResources`. 404 se l'owner non esiste, 409 se la risorsa ha gia' un altro owner.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /internal/resources/{resourceId}/attributes (the `SetResourceAttributes` operationId).
	SetResourceAttributesWithBody(ctx context.Context, resourceId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetResourceAttributes Imposta owner e visibilita' di una risorsa (per core)
	//
	// Servita da identity (D-C, M-03). Core la chiama alla creazione di un repo, prima di `grantResourceCreator`, e a ogni cambio di visibilita'. L'owner non cambia mai (R3). Idempotente. Una risorsa senza attributi si comporta come prima di M-03. Con attributi valgono P1 (owner dell'organizzazione: admin), P6 (proprietario del repo personale: admin) e P3 (interno: read a ogni utente attivo), sia in `checkPermission` sia in `listReadableResources`. 404 se l'owner non esiste, 409 se la risorsa ha gia' un altro owner.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /internal/resources/{resourceId}/attributes (the `SetResourceAttributes` operationId).
	SetResourceAttributes(ctx context.Context, resourceId openapi_types.UUID, body SetResourceAttributesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GrantResourceCreatorWithBody Assegna il ruolo admin al creatore di una risorsa
	//
	// Usata da core dopo la creazione di una risorsa: l'utente indicato riceve il grant admin (granted_by = lo stesso utente). Idempotente: se l'utente ha gia' un grant sulla risorsa lo porta ad admin e risponde 200.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /internal/resources/{resourceId}/grants/creator (the `GrantResourceCreator` operationId).
	GrantResourceCreatorWithBody(ctx context.Context, resourceId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GrantResourceCreator Assegna il ruolo admin al creatore di una risorsa
	//
	// Usata da core dopo la creazione di una risorsa: l'utente indicato riceve il grant admin (granted_by = lo stesso utente). Idempotente: se l'utente ha gia' un grant sulla risorsa lo porta ad admin e risponde 200.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /internal/resources/{resourceId}/grants/creator (the `GrantResourceCreator` operationId).
	GrantResourceCreator(ctx context.Context, resourceId openapi_types.UUID, body GrantResourceCreatorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LookupSshKey Risolve un utente dal fingerprint di una chiave SSH
	//
	// Usata dal servizio git all'accesso SSH. Aggiorna `lastUsedAt`.
	//
	// Corresponds with GET /internal/ssh-keys/{fingerprint} (the `LookupSshKey` operationId).
	LookupSshKey(ctx context.Context, fingerprint string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LookupUsersByEmailWithBody Trova gli utenti GitStack dalle email dei commit
	//
	// Per core (M-04): confronta le email, senza distinguere maiuscole, con `users.email` (unica su lower(email)). Massimo 100 email per chiamata; core la chiama una volta per pagina di storico, dettaglio o blame. Le email senza utente non compaiono nella risposta.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /internal/users/lookup-emails (the `LookupUsersByEmail` operationId).
	LookupUsersByEmailWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LookupUsersByEmail Trova gli utenti GitStack dalle email dei commit
	//
	// Per core (M-04): confronta le email, senza distinguere maiuscole, con `users.email` (unica su lower(email)). Massimo 100 email per chiamata; core la chiama una volta per pagina di storico, dettaglio o blame. Le email senza utente non compaiono nella risposta.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /internal/users/lookup-emails (the `LookupUsersByEmail` operationId).
	LookupUsersByEmail(ctx context.Context, body LookupUsersByEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LookupUsersByIdsWithBody Risolve gli id utente in nome e tipo
	//
	// Per core (M-05): le issues conservano solo gli id degli utenti e la risposta li mostra con nome utente e tipo (persona o agente). Massimo 100 id per chiamata; gli id senza utente non compaiono nella risposta. Gli utenti disattivati restano.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /internal/users/lookup-ids (the `LookupUsersByIds` operationId).
	LookupUsersByIdsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LookupUsersByIds Risolve gli id utente in nome e tipo
	//
	// Per core (M-05): le issues conservano solo gli id degli utenti e la risposta li mostra con nome utente e tipo (persona o agente). Massimo 100 id per chiamata; gli id senza utente non compaiono nella risposta. Gli utenti disattivati restano.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /internal/users/lookup-ids (the `LookupUsersByIds` operationId).
	LookupUsersByIds(ctx context.Context, body LookupUsersByIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// VerifyCredentialWithBody Verifica una credenziale (per il gateway)
	//
	// Il gateway invia il valore grezzo della credenziale (cookie di sessione oppure token `gst_...`) e riceve il principal. Non c'e' distinzione fra "sconosciuta", "scaduta" e "revocata": `active` false. Aggiorna `last_used_at` (al piu' una volta al minuto per credenziale).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /internal/verify (the `VerifyCredential` operationId).
	VerifyCredentialWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// VerifyCredential Verifica una credenziale (per il gateway)
	//
	// Il gateway invia il valore grezzo della credenziale (cookie di sessione oppure token `gst_...`) e riceve il principal. Non c'e' distinzione fra "sconosciuta", "scaduta" e "revocata": `active` false. Aggiorna `last_used_at` (al piu' una volta al minuto per credenziale).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /internal/verify (the `VerifyCredential` operationId).
	VerifyCredential(ctx context.Context, body VerifyCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMeta Versione del server
	//
	// Versione dell'installazione e del contratto API, senza autenticazione. Usato da gs per il controllo di compatibilita (G6).
	//
	// Corresponds with GET /meta (the `GetMeta` operationId).
	GetMeta(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteNotifications Elimina in blocco le notifiche
	//
	// Elimina le notifiche dell'utente corrente nello stato indicato (`read` o `archived`; le non lette non si eliminano in blocco), con gli stessi filtri `reason` e `repo` dell'elenco (C9). Risponde 200 con il numero di notifiche eliminate.
	//
	// Corresponds with DELETE /notifications (the `DeleteNotifications` operationId).
	DeleteNotifications(ctx context.Context, params *DeleteNotificationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListNotifications Casella delle notifiche
	//
	// Notifiche dell'utente corrente, dalla piu' recente (`createdAt` decrescente, poi `id`). Filtri: `reason` (uno o piu' motivi separati da virgola), `state` (`unread` default, `read`, `archived`, `all`; le archiviate compaiono solo con `archived` o `all`) e `repo` (`owner/repo`). Stessa casella e stesse regole per persone e agenti (C4); `gs notification list --json` usa questa operazione. Le notifiche di un repo che l'utente non legge piu' non compaiono e vengono eliminate (C9). `unreadCount` conta le non lette non archiviate dell'utente, con i soli filtri `reason` e `repo`.
	//
	// Corresponds with GET /notifications (the `ListNotifications` operationId).
	ListNotifications(ctx context.Context, params *ListNotificationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MarkAllNotificationsRead Segna come lette tutte le notifiche
	//
	// Segna come lette le notifiche non lette dell'utente corrente, con gli stessi filtri facoltativi (`reason`, `repo`) dell'elenco. Idempotente. Le archiviate non cambiano.
	//
	// Corresponds with POST /notifications/read-all (the `MarkAllNotificationsRead` operationId).
	MarkAllNotificationsRead(ctx context.Context, params *MarkAllNotificationsReadParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteNotification Elimina una notifica
	//
	// Eliminazione manuale (C9), anche di una non letta.
	//
	// Corresponds with DELETE /notifications/{notificationId} (the `DeleteNotification` operationId).
	DeleteNotification(ctx context.Context, notificationId NotificationIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetNotification Legge una notifica
	//
	// Una notifica di un'altra persona risponde 404, come una inesistente.
	//
	// Corresponds with GET /notifications/{notificationId} (the `GetNotification` operationId).
	GetNotification(ctx context.Context, notificationId NotificationIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateNotificationWithBody Segna come letta/non letta o archivia
	//
	// Imposta `read` (segna come letta o di nuovo non letta) e/o `archived` (archivia o ripristina). Almeno un campo, altrimenti 400. Idempotente.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /notifications/{notificationId} (the `UpdateNotification` operationId).
	UpdateNotificationWithBody(ctx context.Context, notificationId NotificationIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateNotification Segna come letta/non letta o archivia
	//
	// Imposta `read` (segna come letta o di nuovo non letta) e/o `archived` (archivia o ripristina). Almeno un campo, altrimenti 400. Idempotente.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /notifications/{notificationId} (the `UpdateNotification` operationId).
	UpdateNotification(ctx context.Context, notificationId NotificationIdParam, body UpdateNotificationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListOrganizations Elenca le organizzazioni
	//
	// Le organizzazioni di cui il chiamante e' membro (tutte, per un amministratore). Scope `read:org`.
	//
	// Corresponds with GET /orgs (the `ListOrganizations` operationId).
	ListOrganizations(ctx context.Context, params *ListOrganizationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateOrganizationWithBody Crea un'organizzazione
	//
	// Scope `write:org`. Il creatore ne diventa `owner`.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /orgs (the `CreateOrganization` operationId).
	CreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateOrganization Crea un'organizzazione
	//
	// Scope `write:org`. Il creatore ne diventa `owner`.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /orgs (the `CreateOrganization` operationId).
	CreateOrganization(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteOrganization Elimina un'organizzazione
	//
	// Scope `admin:org`, ruolo `owner`. Elimina a cascata team e membership.
	//
	// Corresponds with DELETE /orgs/{org} (the `DeleteOrganization` operationId).
	DeleteOrganization(ctx context.Context, org OrgParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOrganization Legge un'organizzazione
	//
	// Corresponds with GET /orgs/{org} (the `GetOrganization` operationId).
	GetOrganization(ctx context.Context, org OrgParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateOrganizationWithBody Aggiorna un'organizzazione
	//
	// Scope `write:org`, ruolo `owner`.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /orgs/{org} (the `UpdateOrganization` operationId).
	UpdateOrganizationWithBody(ctx context.Context, org OrgParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateOrganization Aggiorna un'organizzazione
	//
	// Scope `write:org`, ruolo `owner`.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /orgs/{org} (the `UpdateOrganization` operationId).
	UpdateOrganization(ctx context.Context, org OrgParam, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListOrgWebhooks Elenca i webhook di un'organizzazione
	//
	// Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Il segreto non torna mai: `hasSecret` dice se c'e'. Paginazione come `GET /repos`.
	//
	// Corresponds with GET /orgs/{org}/hooks (the `ListOrgWebhooks` operationId).
	ListOrgWebhooks(ctx context.Context, org OrgParam, params *ListOrgWebhooksParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateOrgWebhookWithBody Crea un webhook di un'organizzazione
	//
	// Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. `url` http o https; sempre bloccati loopback, indirizzi interni del cluster e link-local, anche dopo redirect e risoluzione DNS, e le destinazioni vietate dall'amministratore (C8): 422 (`details.fields.url`, codice `url_not_allowed`). `events` almeno uno fra `push`, `issues`, `issue_comment`, `repository`. Il `secret` e' facoltativo (senza, la consegna non e' firmata): non torna mai nelle risposte. Il formato dei payload e le intestazioni sono in docs/webhooks.md.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /orgs/{org}/hooks (the `CreateOrgWebhook` operationId).
	CreateOrgWebhookWithBody(ctx context.Context, org OrgParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateOrgWebhook Crea un webhook di un'organizzazione
	//
	// Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. `url` http o https; sempre bloccati loopback, indirizzi interni del cluster e link-local, anche dopo redirect e risoluzione DNS, e le destinazioni vietate dall'amministratore (C8): 422 (`details.fields.url`, codice `url_not_allowed`). `events` almeno uno fra `push`, `issues`, `issue_comment`, `repository`. Il `secret` e' facoltativo (senza, la consegna non e' firmata): non torna mai nelle risposte. Il formato dei payload e le intestazioni sono in docs/webhooks.md.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /orgs/{org}/hooks (the `CreateOrgWebhook` operationId).
	CreateOrgWebhook(ctx context.Context, org OrgParam, body CreateOrgWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteOrgWebhook Elimina un webhook di un'organizzazione
	//
	// Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Elimina anche il log delle consegne e le notifiche di disattivazione collegate.
	//
	// Corresponds with DELETE /orgs/{org}/hooks/{hookId} (the `DeleteOrgWebhook` operationId).
	DeleteOrgWebhook(ctx context.Context, org OrgParam, hookId WebhookIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOrgWebhook Legge un webhook di un'organizzazione
	//
	// Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Un webhook di un altro repo o organizzazione risponde 404.
	//
	// Corresponds with GET /orgs/{org}/hooks/{hookId} (the `GetOrgWebhook` operationId).
	GetOrgWebhook(ctx context.Context, org OrgParam, hookId WebhookIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateOrgWebhookWithBody Modifica un webhook di un'organizzazione
	//
	// Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Cambia solo i campi indicati. `secret`: una stringa sostituisce il segreto, la stringa vuota lo toglie. `active: false` mette in pausa il webhook senza eliminarlo. Un webhook disattivato dai fallimenti (C7) si riattiva con l'operazione `reactivate`, non con `active: true`: 409 `webhook_disabled`.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /orgs/{org}/hooks/{hookId} (the `UpdateOrgWebhook` operationId).
	UpdateOrgWebhookWithBody(ctx context.Context, org OrgParam, hookId WebhookIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateOrgWebhook Modifica un webhook di un'organizzazione
	//
	// Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Cambia solo i campi indicati. `secret`: una stringa sostituisce il segreto, la stringa vuota lo toglie. `active: false` mette in pausa il webhook senza eliminarlo. Un webhook disattivato dai fallimenti (C7) si riattiva con l'operazione `reactivate`, non con `active: true`: 409 `webhook_disabled`.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /orgs/{org}/hooks/{hookId} (the `UpdateOrgWebhook` operationId).
	UpdateOrgWebhook(ctx context.Context, org OrgParam, hookId WebhookIdParam, body UpdateOrgWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListOrgWebhookDeliveries Log delle consegne di un webhook di un'organizzazione
	//
	// Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Dalla piu' recente. Le consegne si conservano 30 giorni (C7). Filtro per `status`.
	//
	// Corresponds with GET /orgs/{org}/hooks/{hookId}/deliveries (the `ListOrgWebhookDeliveries` operationId).
	ListOrgWebhookDeliveries(ctx context.Context, org OrgParam, hookId WebhookIdParam, params *ListOrgWebhookDeliveriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOrgWebhookDelivery Dettaglio di una consegna di un'organizzazione
	//
	// Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Con la richiesta inviata (intestazioni e payload) e la risposta ricevuta, troncata a 4 KB (C8).
	//
	// Corresponds with GET /orgs/{org}/hooks/{hookId}/deliveries/{deliveryId} (the `GetOrgWebhookDelivery` operationId).
	GetOrgWebhookDelivery(ctx context.Context, org OrgParam, hookId WebhookIdParam, deliveryId WebhookDeliveryIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RedeliverOrgWebhookDelivery Rinvia una consegna (Redeliver) di un'organizzazione
	//
	// Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Crea una consegna nuova con lo stesso payload e un nuovo `X-GitStack-Delivery` (`redeliveryOf` punta all'originale), firmata di nuovo col segreto corrente. Risponde 202: la consegna e' in coda e il risultato si legge dal log. Funziona anche su un webhook non attivo e dopo un `410 Gone`; una consegna piu' vecchia di 30 giorni non esiste piu' (404).
	//
	// Corresponds with POST /orgs/{org}/hooks/{hookId}/deliveries/{deliveryId}/redeliver (the `RedeliverOrgWebhookDelivery` operationId).
	RedeliverOrgWebhookDelivery(ctx context.Context, org OrgParam, hookId WebhookIdParam, deliveryId WebhookDeliveryIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReactivateOrgWebhook Riattiva un webhook di un'organizzazione
	//
	// Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Riattiva un webhook (disattivato a mano o dopo 3 giorni di fallimenti consecutivi, C7): `active` torna `true` e i fallimenti consecutivi si azzerano. Idempotente su un webhook gia' attivo.
	//
	// Corresponds with POST /orgs/{org}/hooks/{hookId}/reactivate (the `ReactivateOrgWebhook` operationId).
	ReactivateOrgWebhook(ctx context.Context, org OrgParam, hookId WebhookIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListOrgMembers Elenca i membri di un'organizzazione
	//
	// Corresponds with GET /orgs/{org}/members (the `ListOrgMembers` operationId).
	ListOrgMembers(ctx context.Context, org OrgParam, params *ListOrgMembersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RemoveOrgMember Rimuove un membro
	//
	// Scope `write:org`, ruolo `owner` (o l'utente stesso). Lo toglie anche da tutti i team. Non si rimuove l'ultimo `owner` (409 `last_owner`).
	//
	// Corresponds with DELETE /orgs/{org}/members/{username} (the `RemoveOrgMember` operationId).
	RemoveOrgMember(ctx context.Context, org OrgParam, username UsernameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetOrgMemberWithBody Aggiunge un membro o ne cambia il ruolo
	//
	// Scope `write:org`, ruolo `owner`. Idempotente.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /orgs/{org}/members/{username} (the `SetOrgMember` operationId).
	SetOrgMemberWithBody(ctx context.Context, org OrgParam, username UsernameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetOrgMember Aggiunge un membro o ne cambia il ruolo
	//
	// Scope `write:org`, ruolo `owner`. Idempotente.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /orgs/{org}/members/{username} (the `SetOrgMember` operationId).
	SetOrgMember(ctx context.Context, org OrgParam, username UsernameParam, body SetOrgMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListTeams Elenca i team di un'organizzazione
	//
	// Corresponds with GET /orgs/{org}/teams (the `ListTeams` operationId).
	ListTeams(ctx context.Context, org OrgParam, params *ListTeamsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateTeamWithBody Crea un team
	//
	// Scope `write:org`, ruolo `owner`.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /orgs/{org}/teams (the `CreateTeam` operationId).
	CreateTeamWithBody(ctx context.Context, org OrgParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateTeam Crea un team
	//
	// Scope `write:org`, ruolo `owner`.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /orgs/{org}/teams (the `CreateTeam` operationId).
	CreateTeam(ctx context.Context, org OrgParam, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteTeam Elimina un team
	//
	// Elimina anche i grant assegnati al team.
	//
	// Corresponds with DELETE /orgs/{org}/teams/{team} (the `DeleteTeam` operationId).
	DeleteTeam(ctx context.Context, org OrgParam, team TeamParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTeam Legge un team
	//
	// Corresponds with GET /orgs/{org}/teams/{team} (the `GetTeam` operationId).
	GetTeam(ctx context.Context, org OrgParam, team TeamParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateTeamWithBody Aggiorna un team
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /orgs/{org}/teams/{team} (the `UpdateTeam` operationId).
	UpdateTeamWithBody(ctx context.Context, org OrgParam, team TeamParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateTeam Aggiorna un team
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /orgs/{org}/teams/{team} (the `UpdateTeam` operationId).
	UpdateTeam(ctx context.Context, org OrgParam, team TeamParam, body UpdateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListTeamMembers Elenca i membri di un team
	//
	// Corresponds with GET /orgs/{org}/teams/{team}/members (the `ListTeamMembers` operationId).
	ListTeamMembers(ctx context.Context, org OrgParam, team TeamParam, params *ListTeamMembersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RemoveTeamMember Rimuove un membro dal team
	//
	// Corresponds with DELETE /orgs/{org}/teams/{team}/members/{username} (the `RemoveTeamMember` operationId).
	RemoveTeamMember(ctx context.Context, org OrgParam, team TeamParam, username UsernameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetTeamMemberWithBody Aggiunge un membro al team o ne cambia il ruolo
	//
	// Scope `write:org`. L'utente deve essere gia' membro dell'organizzazione (altrimenti 422 `not_org_member`). Idempotente.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /orgs/{org}/teams/{team}/members/{username} (the `SetTeamMember` operationId).
	SetTeamMemberWithBody(ctx context.Context, org OrgParam, team TeamParam, username UsernameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetTeamMember Aggiunge un membro al team o ne cambia il ruolo
	//
	// Scope `write:org`. L'utente deve essere gia' membro dell'organizzazione (altrimenti 422 `not_org_member`). Idempotente.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /orgs/{org}/teams/{team}/members/{username} (the `SetTeamMember` operationId).
	SetTeamMember(ctx context.Context, org OrgParam, team TeamParam, username UsernameParam, body SetTeamMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListRepositories Elenca i repo leggibili dall'utente
	//
	// Repo che l'utente corrente puo' leggere (P1, P3, P6), esclusi quelli eliminati; con `owner` solo quelli di quell'utente o organizzazione. Paginazione come `GET /resources`.
	//
	// Corresponds with GET /repos (the `ListRepositories` operationId).
	ListRepositories(ctx context.Context, params *ListRepositoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateRepositoryWithBody Crea un repo
	//
	// `owner` e' il nome dell'utente o dell'organizzazione (spazio di nomi unico, R1). Serve poter creare repo per quell'owner: se stesso, o un owner dell'organizzazione. Il creatore riceve il ruolo `admin`. Senza opzioni di contenuto iniziale (R5) il repo nasce vuoto. Risponde 409 se il nome e' occupato, anche da un repo eliminato (R2); 404 se `owner` non esiste.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /repos (the `CreateRepository` operationId).
	CreateRepositoryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateRepository Crea un repo
	//
	// `owner` e' il nome dell'utente o dell'organizzazione (spazio di nomi unico, R1). Serve poter creare repo per quell'owner: se stesso, o un owner dell'organizzazione. Il creatore riceve il ruolo `admin`. Senza opzioni di contenuto iniziale (R5) il repo nasce vuoto. Risponde 409 se il nome e' occupato, anche da un repo eliminato (R2); 404 se `owner` non esiste.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /repos (the `CreateRepository` operationId).
	CreateRepository(ctx context.Context, body CreateRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListDeletedRepositories Elenca i repo eliminati e ancora ripristinabili
	//
	// Repo eliminati da meno di 7 giorni (R2) su cui l'utente ha il ruolo `admin` (R12). Con `owner` solo quelli di quell'owner.
	//
	// Corresponds with GET /repos/deleted (the `ListDeletedRepositories` operationId).
	ListDeletedRepositories(ctx context.Context, params *ListDeletedRepositoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RestoreRepository Ripristina un repo eliminato
	//
	// Serve il ruolo `admin` sul repo (R12). Risponde 404 se il repo non esiste, non e' eliminato o il periodo di 7 giorni e' scaduto.
	//
	// Corresponds with POST /repos/deleted/{repoId}/restore (the `RestoreRepository` operationId).
	RestoreRepository(ctx context.Context, repoId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteRepository Elimina un repo (recuperabile per 7 giorni)
	//
	// Serve il ruolo `admin` (R12). Il repo sparisce subito per tutti e resta ripristinabile per 7 giorni (R2); il nome resta occupato.
	//
	// Corresponds with DELETE /repos/{owner}/{repo} (the `DeleteRepository` operationId).
	DeleteRepository(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRepository Legge un repo per owner/nome
	//
	// Un repo che l'utente non puo' leggere risponde 404, non 403, per non rivelarne l'esistenza.
	//
	// Corresponds with GET /repos/{owner}/{repo} (the `GetRepository` operationId).
	GetRepository(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateRepositoryWithBody Modifica le impostazioni di un repo
	//
	// Serve il ruolo `admin` (403 se l'utente legge ma non ha il ruolo). Il branch principale (R4) deve essere un branch esistente; `protectDefaultBranch` e' R9; `archived` archivia o riattiva (R10). Owner e nome non cambiano mai (R3). Un repo archiviato rifiuta ogni modifica con 409, tranne `archived: false` da solo.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /repos/{owner}/{repo} (the `UpdateRepository` operationId).
	UpdateRepositoryWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateRepository Modifica le impostazioni di un repo
	//
	// Serve il ruolo `admin` (403 se l'utente legge ma non ha il ruolo). Il branch principale (R4) deve essere un branch esistente; `protectDefaultBranch` e' R9; `archived` archivia o riattiva (R10). Owner e nome non cambiano mai (R3). Un repo archiviato rifiuta ogni modifica con 409, tranne `archived: false` da solo.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /repos/{owner}/{repo} (the `UpdateRepository` operationId).
	UpdateRepository(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body UpdateRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRepositoryArchive Archivio ZIP o tar.gz di un ref (streaming)
	//
	// Archivio dell'albero a `ref` (branch, tag o commit, regola B3), in ZIP (default) o tar.gz secondo `format`, prodotto e inviato in streaming (nessun buffer in memoria). `Content-Disposition: attachment` con nome `<repo>-<ref>.zip` o `<repo>-<ref>.tar.gz` (un `/` nel ref diventa `-`); stesse intestazioni di sicurezza di `getRepositoryRaw`. Sono questi gli indirizzi di scaricamento dei tag (`Tag.zipUrl`, `Tag.tarGzUrl`, regola B7). Servono sessione o token con `read`. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.
	//
	// Corresponds with GET /repos/{owner}/{repo}/archive (the `GetRepositoryArchive` operationId).
	GetRepositoryArchive(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryArchiveParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRepositoryBlame Blame di un file
	//
	// Per ogni intervallo di righe di `path` a `ref`, il commit che l'ha scritto per ultimo (mockup 08, scheda Blame). Un file binario o oltre 1 MB risponde 400 `blame_unavailable`. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.
	//
	// Corresponds with GET /repos/{owner}/{repo}/blame (the `GetRepositoryBlame` operationId).
	GetRepositoryBlame(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryBlameParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRepositoryBranches Branch del repo, con conteggi
	//
	// Tutti i branch, con il branch principale (R4) per primo; `total` e' il conteggio (mockup 07: "4 branches"). Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. Non ha `ref`: elenca tutti i branch.
	//
	// Corresponds with GET /repos/{owner}/{repo}/branches (the `GetRepositoryBranches` operationId).
	GetRepositoryBranches(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRepositoryCommits Storico dei commit, paginato
	//
	// Commit raggiungibili da `ref`, dal piu' recente (mockup 09). Filtri `author` (nome o email, senza distinguere maiuscole) e `path` (solo i commit che toccano quel percorso). Pagina di default 30, massimo 100. Ogni autore porta `user` se la sua email corrisponde a un utente GitStack, altrimenti null. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.
	//
	// Corresponds with GET /repos/{owner}/{repo}/commits (the `GetRepositoryCommits` operationId).
	GetRepositoryCommits(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryCommitsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRepositoryCommit Dettaglio di un commit con diff per file
	//
	// Messaggio, autore e diff per file (mockup 10), con i limiti progressivi della regola B6 (costanti in `x-code-read-limits`; le righe sono quelle cambiate, aggiunte piu' tolte). Un file e' `collapsed` (chiuso di default) con `collapseReason` `large` se ha oltre 500 righe cambiate, `lock` o `generated` per un file di lock o generato (elenco in docs/repos.md); il patch c'e' comunque, se non e' stato omesso per i limiti. Oltre 300 file o 20 000 righe cambiate in totale `listOnly` e' true: solo l'elenco dei file con righe aggiunte e tolte, senza patch (il diff intero si scarica con `getRepositoryCommitPatch`). Resta il limite di 1 MB di patch per file (`truncated`). `ignoreWhitespace` calcola il diff con `git diff -w` (`ignoreWhitespace` e' riportato nella risposta). `path` restringe `files` a quel file. `sha` e' lo sha completo o un prefisso univoco di almeno 7 caratteri; 400 se non e' esadecimale, 404 se non esiste. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.
	//
	// Corresponds with GET /repos/{owner}/{repo}/commits/{sha} (the `GetRepositoryCommit` operationId).
	GetRepositoryCommit(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, sha CommitShaParam, params *GetRepositoryCommitParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRepositoryCommitPatch Diff completo di un commit, scaricabile come .diff o .patch (streaming)
	//
	// Regola B6: il diff intero del commit, senza i limiti di `getRepositoryCommit` (nessun file chiuso, nessun troncamento), in streaming. `Content-Disposition: attachment` con nome `<sha12>.diff` o `.patch` (lo imposta il servizio git) secondo `format`: `diff` e' `gitGetCommitDiff`, `patch` e' `gitGetCommitPatch`, passati in streaming da core (le interne le definisce GIT-82). Stesse intestazioni di sicurezza di `getRepositoryRaw`. Un commit senza genitori e' confrontato con l'albero vuoto. Un merge e' confrontato con il primo genitore. 400 se `sha` non e' esadecimale, 404 se non esiste. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404.
	//
	// Corresponds with GET /repos/{owner}/{repo}/commits/{sha}/patch (the `GetRepositoryCommitPatch` operationId).
	GetRepositoryCommitPatch(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, sha CommitShaParam, params *GetRepositoryCommitPatchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRepositoryFile Contenuto di un file
	//
	// Contenuto di `path` a `ref` con dimensione, tipo e ultimo commit (mockup 08). Regola B1: la risposta dice sempre in `display` come mostrarlo. Testo fino a 1 MB (1 048 576 byte): `highlight`, `content` intero. Testo da 1 MB a 5 MB (5 242 880 byte): `plain`, `content` intero da mostrare senza evidenziazione. Testo oltre 5 MB: `download`, nessun `content` e `truncated` true (solo scaricamento con `raw`). Immagini comuni (PNG, JPEG, GIF, WebP, SVG; `kind` `image`) fino a 1 MB: `display` `image`, `content` in base64 (`encoding` `base64`) e `mimeType`, cosi' la UI le mostra come immagine anche se `raw` le serve come allegato; oltre 1 MB `download`. Altri binari: `kind` `binary`, `download`, nessun `content`. `size` e' sempre la dimensione reale. 404 se `path` non esiste o non e' un file. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.
	//
	// Corresponds with GET /repos/{owner}/{repo}/contents (the `GetRepositoryFile` operationId).
	GetRepositoryFile(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryFileParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListRepositoryFiles Percorsi di tutti i file di un ref ("Go to file")
	//
	// Regola B5: i percorsi di tutti i file (non le cartelle) di `ref`, per il "Go to file"; la corrispondenza approssimata la fa il client. Al massimo 50 000 percorsi: oltre, `truncated` e' true. Un repo vuoto risponde lista vuota. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.
	//
	// Corresponds with GET /repos/{owner}/{repo}/files (the `ListRepositoryFiles` operationId).
	ListRepositoryFiles(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *ListRepositoryFilesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListRepoWebhooks Elenca i webhook di un repo
	//
	// Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Il segreto non torna mai: `hasSecret` dice se c'e'. Paginazione come `GET /repos`.
	//
	// Corresponds with GET /repos/{owner}/{repo}/hooks (the `ListRepoWebhooks` operationId).
	ListRepoWebhooks(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *ListRepoWebhooksParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateRepoWebhookWithBody Crea un webhook di un repo
	//
	// Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. `url` http o https; sempre bloccati loopback, indirizzi interni del cluster e link-local, anche dopo redirect e risoluzione DNS, e le destinazioni vietate dall'amministratore (C8): 422 (`details.fields.url`, codice `url_not_allowed`). `events` almeno uno fra `push`, `issues`, `issue_comment`, `repository`. Il `secret` e' facoltativo (senza, la consegna non e' firmata): non torna mai nelle risposte. Il formato dei payload e le intestazioni sono in docs/webhooks.md. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /repos/{owner}/{repo}/hooks (the `CreateRepoWebhook` operationId).
	CreateRepoWebhookWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateRepoWebhook Crea un webhook di un repo
	//
	// Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. `url` http o https; sempre bloccati loopback, indirizzi interni del cluster e link-local, anche dopo redirect e risoluzione DNS, e le destinazioni vietate dall'amministratore (C8): 422 (`details.fields.url`, codice `url_not_allowed`). `events` almeno uno fra `push`, `issues`, `issue_comment`, `repository`. Il `secret` e' facoltativo (senza, la consegna non e' firmata): non torna mai nelle risposte. Il formato dei payload e le intestazioni sono in docs/webhooks.md. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /repos/{owner}/{repo}/hooks (the `CreateRepoWebhook` operationId).
	CreateRepoWebhook(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body CreateRepoWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteRepoWebhook Elimina un webhook di un repo
	//
	// Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Elimina anche il log delle consegne e le notifiche di disattivazione collegate.
	//
	// Corresponds with DELETE /repos/{owner}/{repo}/hooks/{hookId} (the `DeleteRepoWebhook` operationId).
	DeleteRepoWebhook(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRepoWebhook Legge un webhook di un repo
	//
	// Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Un webhook di un altro repo o organizzazione risponde 404.
	//
	// Corresponds with GET /repos/{owner}/{repo}/hooks/{hookId} (the `GetRepoWebhook` operationId).
	GetRepoWebhook(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateRepoWebhookWithBody Modifica un webhook di un repo
	//
	// Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Cambia solo i campi indicati. `secret`: una stringa sostituisce il segreto, la stringa vuota lo toglie. `active: false` mette in pausa il webhook senza eliminarlo. Un webhook disattivato dai fallimenti (C7) si riattiva con l'operazione `reactivate`, non con `active: true`: 409 `webhook_disabled`. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /repos/{owner}/{repo}/hooks/{hookId} (the `UpdateRepoWebhook` operationId).
	UpdateRepoWebhookWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateRepoWebhook Modifica un webhook di un repo
	//
	// Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Cambia solo i campi indicati. `secret`: una stringa sostituisce il segreto, la stringa vuota lo toglie. `active: false` mette in pausa il webhook senza eliminarlo. Un webhook disattivato dai fallimenti (C7) si riattiva con l'operazione `reactivate`, non con `active: true`: 409 `webhook_disabled`. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /repos/{owner}/{repo}/hooks/{hookId} (the `UpdateRepoWebhook` operationId).
	UpdateRepoWebhook(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, body UpdateRepoWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListRepoWebhookDeliveries Log delle consegne di un webhook di un repo
	//
	// Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Dalla piu' recente. Le consegne si conservano 30 giorni (C7). Filtro per `status`.
	//
	// Corresponds with GET /repos/{owner}/{repo}/hooks/{hookId}/deliveries (the `ListRepoWebhookDeliveries` operationId).
	ListRepoWebhookDeliveries(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, params *ListRepoWebhookDeliveriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRepoWebhookDelivery Dettaglio di una consegna di un repo
	//
	// Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Con la richiesta inviata (intestazioni e payload) e la risposta ricevuta, troncata a 4 KB (C8).
	//
	// Corresponds with GET /repos/{owner}/{repo}/hooks/{hookId}/deliveries/{deliveryId} (the `GetRepoWebhookDelivery` operationId).
	GetRepoWebhookDelivery(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, deliveryId WebhookDeliveryIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RedeliverRepoWebhookDelivery Rinvia una consegna (Redeliver) di un repo
	//
	// Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Crea una consegna nuova con lo stesso payload e un nuovo `X-GitStack-Delivery` (`redeliveryOf` punta all'originale), firmata di nuovo col segreto corrente. Risponde 202: la consegna e' in coda e il risultato si legge dal log. Funziona anche su un webhook non attivo e dopo un `410 Gone`; una consegna piu' vecchia di 30 giorni non esiste piu' (404).
	//
	// Corresponds with POST /repos/{owner}/{repo}/hooks/{hookId}/deliveries/{deliveryId}/redeliver (the `RedeliverRepoWebhookDelivery` operationId).
	RedeliverRepoWebhookDelivery(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, deliveryId WebhookDeliveryIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReactivateRepoWebhook Riattiva un webhook di un repo
	//
	// Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Riattiva un webhook (disattivato a mano o dopo 3 giorni di fallimenti consecutivi, C7): `active` torna `true` e i fallimenti consecutivi si azzerano. Idempotente su un webhook gia' attivo.
	//
	// Corresponds with POST /repos/{owner}/{repo}/hooks/{hookId}/reactivate (the `ReactivateRepoWebhook` operationId).
	ReactivateRepoWebhook(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UploadIssueAttachmentWithBody Carica un allegato
	//
	// `multipart/form-data` con un solo campo `file`. Chi vede il repo (I3, I9). Tipi ammessi: immagini (PNG, JPEG, GIF, WebP), PDF, testo/log, ZIP; limite configurabile (default 10 MB): oltre, 413 `attachment_too_large`; tipo non ammesso (verificato sui byte, non sul nome): 422 `unsupported_media_type`. L'allegato nasce non collegato e va indicato in `attachmentIds` di una issue o di un commento; uno non collegato entro 24 ore e' eliminato. Si salvano solo i metadati in DB; il nome originale non entra mai nel percorso su disco. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /repos/{owner}/{repo}/issue-attachments (the `UploadIssueAttachment` operationId).
	UploadIssueAttachmentWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetIssueAttachment Scarica un allegato
	//
	// Solo chi vede il repo (I9): nessun URL pubblico, la richiesta e' sempre autenticata. Sempre `Content-Disposition: attachment`, `X-Content-Type-Options: nosniff` e `Content-Security-Policy: sandbox` (come B3). Un allegato di una issue nascosta e' 404 per chi non ha `admin`. Un repo che l'utente non puo' leggere, eliminato o inesistente risponde 404 (non 403), per non rivelarne l'esistenza.
	//
	// Corresponds with GET /repos/{owner}/{repo}/issue-attachments/{attachmentId} (the `GetIssueAttachment` operationId).
	GetIssueAttachment(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, attachmentId IssueAttachmentIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListIssueTemplates Modelli di issue del repo
	//
	// Modelli Markdown in `.gitstack/ISSUE_TEMPLATE/` sul branch principale (I11), letti da core tramite il servizio git. Vuoto se la cartella non c'e' o il repo e' vuoto. Il nome e' il file senza estensione. Un modello propone titolo, etichette e testo iniziale: la UI, l'API e `gs` li usano per precompilare `createIssue`, che non li impone.
	//
	// Corresponds with GET /repos/{owner}/{repo}/issue-templates (the `ListIssueTemplates` operationId).
	ListIssueTemplates(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListIssues Elenca e cerca le issues del repo
	//
	// Issues del repo con filtri (stato, etichette, assegnatario, autore, milestone) e ricerca nel testo. `q` usa la sintassi di I10 e i filtri espliciti si sommano a quelli di `q`. Le issues nascoste (I4) compaiono solo a chi ha `admin`. Paginazione come `GET /repos`. Un repo che l'utente non puo' leggere, eliminato o inesistente risponde 404 (non 403), per non rivelarne l'esistenza.
	//
	// Corresponds with GET /repos/{owner}/{repo}/issues (the `ListIssues` operationId).
	ListIssues(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *ListIssuesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateIssueWithBody Apre una issue
	//
	// Chi vede il repo (anche per visibilita' interna) apre issues (I3, P7). Il numero `#n` viene dal contatore del repo condiviso con le PR (I1) e non si riusa mai. Etichette, assegnatari e milestone nel corpo richiedono `write` (403 altrimenti); gli assegnatari sono al massimo 10 e devono avere `write` (I6, 422). `attachmentIds` sono allegati gia' caricati da chi crea (I9). Testo oltre il limite: 413 (`body_too_large`, 1 MiB). Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10). Un repo che l'utente non puo' leggere, eliminato o inesistente risponde 404 (non 403), per non rivelarne l'esistenza.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /repos/{owner}/{repo}/issues (the `CreateIssue` operationId).
	CreateIssueWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateIssue Apre una issue
	//
	// Chi vede il repo (anche per visibilita' interna) apre issues (I3, P7). Il numero `#n` viene dal contatore del repo condiviso con le PR (I1) e non si riusa mai. Etichette, assegnatari e milestone nel corpo richiedono `write` (403 altrimenti); gli assegnatari sono al massimo 10 e devono avere `write` (I6, 422). `attachmentIds` sono allegati gia' caricati da chi crea (I9). Testo oltre il limite: 413 (`body_too_large`, 1 MiB). Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10). Un repo che l'utente non puo' leggere, eliminato o inesistente risponde 404 (non 403), per non rivelarne l'esistenza.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /repos/{owner}/{repo}/issues (the `CreateIssue` operationId).
	CreateIssue(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body CreateIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetIssue Legge una issue per numero
	//
	// Una issue che non esiste nel repo risponde 404. Se e' nascosta (I4) chi non ha `admin` riceve 404, come se non esistesse, per non rivelare ne' il contenuto ne' l'esistenza di cio' che e' stato nascosto. Un repo che l'utente non puo' leggere, eliminato o inesistente risponde 404 (non 403), per non rivelarne l'esistenza.
	//
	// Corresponds with GET /repos/{owner}/{repo}/issues/{number} (the `GetIssue` operationId).
	GetIssue(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateIssueWithBody Modifica titolo e testo
	//
	// Solo l'autore modifica il proprio testo (I4); chiunque altro riceve 403. Ogni modifica del testo salva la versione precedente (visibile con `admin`, `listIssueVersions`) e fa comparire `edited`. Stato, etichette, assegnatari e milestone hanno le loro operazioni. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10). Su una discussione bloccata (I11) l'autore con soli permessi `read` riceve 403 `locked`. Una issue nascosta (I4) risponde 404 a chi non ha `admin`, tranne dove indicato.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /repos/{owner}/{repo}/issues/{number} (the `UpdateIssue` operationId).
	UpdateIssueWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateIssue Modifica titolo e testo
	//
	// Solo l'autore modifica il proprio testo (I4); chiunque altro riceve 403. Ogni modifica del testo salva la versione precedente (visibile con `admin`, `listIssueVersions`) e fa comparire `edited`. Stato, etichette, assegnatari e milestone hanno le loro operazioni. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10). Su una discussione bloccata (I11) l'autore con soli permessi `read` riceve 403 `locked`. Una issue nascosta (I4) risponde 404 a chi non ha `admin`, tranne dove indicato.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /repos/{owner}/{repo}/issues/{number} (the `UpdateIssue` operationId).
	UpdateIssue(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body UpdateIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetIssueAssigneesWithBody Imposta gli assegnatari
	//
	// Sostituisce l'elenco con quello indicato (vuoto = nessuno). Serve `write` (I3); chi ha `write` puo' anche autoassegnarsi (I6). Al massimo 10, persone o agenti, tutti con `write` sul repo: altrimenti 422 (`details.fields.assignees`). Ogni aggiunta o rimozione e' un evento della cronologia. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/assignees (the `SetIssueAssignees` operationId).
	SetIssueAssigneesWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetIssueAssignees Imposta gli assegnatari
	//
	// Sostituisce l'elenco con quello indicato (vuoto = nessuno). Serve `write` (I3); chi ha `write` puo' anche autoassegnarsi (I6). Al massimo 10, persone o agenti, tutti con `write` sul repo: altrimenti 422 (`details.fields.assignees`). Ogni aggiunta o rimozione e' un evento della cronologia. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/assignees (the `SetIssueAssignees` operationId).
	SetIssueAssignees(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body SetIssueAssigneesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CloseIssueWithBody Chiude una issue con un motivo
	//
	// Motivo `completed`, `not_planned` o `duplicate` (I2); con `duplicate` serve `duplicateOf`, il numero di un'altra issue dello stesso repo diversa da questa (422 altrimenti, e anche se `reason` non e' `duplicate` e `duplicateOf` c'e'). Possono chiudere chi ha `write` e l'autore della issue (I3). Una issue gia' chiusa risponde 409 `already_closed`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /repos/{owner}/{repo}/issues/{number}/close (the `CloseIssue` operationId).
	CloseIssueWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CloseIssue Chiude una issue con un motivo
	//
	// Motivo `completed`, `not_planned` o `duplicate` (I2); con `duplicate` serve `duplicateOf`, il numero di un'altra issue dello stesso repo diversa da questa (422 altrimenti, e anche se `reason` non e' `duplicate` e `duplicateOf` c'e'). Possono chiudere chi ha `write` e l'autore della issue (I3). Una issue gia' chiusa risponde 409 `already_closed`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /repos/{owner}/{repo}/issues/{number}/close (the `CloseIssue` operationId).
	CloseIssue(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body CloseIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListIssueComments Commenti della issue
	//
	// Dal piu' vecchio al piu' recente. Un commento eliminato resta con `deleted: true` e testo vuoto (traccia "comment deleted", I4). Paginazione come `GET /repos`.
	//
	// Corresponds with GET /repos/{owner}/{repo}/issues/{number}/comments (the `ListIssueComments` operationId).
	ListIssueComments(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, params *ListIssueCommentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateIssueCommentWithBody Commenta la issue
	//
	// Chi vede il repo commenta (I3), anche issues chiuse. Con la discussione bloccata (I11) solo chi ha `write` (403 `locked`). Testo Markdown, al massimo 65536 caratteri (413 `body_too_large` oltre 1 MiB); `attachmentIds` come in `createIssue`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /repos/{owner}/{repo}/issues/{number}/comments (the `CreateIssueComment` operationId).
	CreateIssueCommentWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateIssueComment Commenta la issue
	//
	// Chi vede il repo commenta (I3), anche issues chiuse. Con la discussione bloccata (I11) solo chi ha `write` (403 `locked`). Testo Markdown, al massimo 65536 caratteri (413 `body_too_large` oltre 1 MiB); `attachmentIds` come in `createIssue`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /repos/{owner}/{repo}/issues/{number}/comments (the `CreateIssueComment` operationId).
	CreateIssueComment(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body CreateIssueCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteIssueComment Elimina un commento
	//
	// L'autore o chi ha `admin` (I4). Il testo viene svuotato e si registra l'evento `comment_deleted` ("comment deleted"); le versioni precedenti restano visibili a `admin`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Corresponds with DELETE /repos/{owner}/{repo}/issues/{number}/comments/{commentId} (the `DeleteIssueComment` operationId).
	DeleteIssueComment(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, commentId IssueCommentIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateIssueCommentWithBody Modifica un commento
	//
	// Solo l'autore (I4). Salva la versione precedente e imposta `edited`. Un commento eliminato risponde 404. Con la discussione bloccata solo chi ha `write`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /repos/{owner}/{repo}/issues/{number}/comments/{commentId} (the `UpdateIssueComment` operationId).
	UpdateIssueCommentWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, commentId IssueCommentIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateIssueComment Modifica un commento
	//
	// Solo l'autore (I4). Salva la versione precedente e imposta `edited`. Un commento eliminato risponde 404. Con la discussione bloccata solo chi ha `write`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /repos/{owner}/{repo}/issues/{number}/comments/{commentId} (the `UpdateIssueComment` operationId).
	UpdateIssueComment(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, commentId IssueCommentIdParam, body UpdateIssueCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListIssueCommentVersions Versioni precedenti del testo di un commento
	//
	// Solo con `admin` (I4), come `listIssueVersions`. Anche per i commenti eliminati.
	//
	// Corresponds with GET /repos/{owner}/{repo}/issues/{number}/comments/{commentId}/versions (the `ListIssueCommentVersions` operationId).
	ListIssueCommentVersions(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, commentId IssueCommentIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListIssueEvents Cronologia degli eventi
	//
	// Eventi in ordine cronologico crescente: apertura, chiusura (con motivo), riapertura, etichette, assegnatari, milestone, modifica del titolo, blocco, `comment_deleted` ("comment deleted", I4) e, da M-06, `referenced_from`, `commit_linked` e `closed_by_commit` (C1, C2). Le issues nascoste: 404 a chi non e' `admin`. Paginazione come `GET /repos`.
	//
	// Corresponds with GET /repos/{owner}/{repo}/issues/{number}/events (the `ListIssueEvents` operationId).
	ListIssueEvents(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, params *ListIssueEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetIssueHiddenWithBody Nasconde o mostra una issue
	//
	// Serve `admin` (I4). Una issue nascosta conserva il numero ma il suo contenuto e' visibile solo a `admin`; le altre persone la ricevono come inesistente (404). Le issues non si eliminano. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/hidden (the `SetIssueHidden` operationId).
	SetIssueHiddenWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetIssueHidden Nasconde o mostra una issue
	//
	// Serve `admin` (I4). Una issue nascosta conserva il numero ma il suo contenuto e' visibile solo a `admin`; le altre persone la ricevono come inesistente (404). Le issues non si eliminano. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/hidden (the `SetIssueHidden` operationId).
	SetIssueHidden(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body SetIssueHiddenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetIssueLabelsWithBody Imposta le etichette
	//
	// Sostituisce l'elenco con quello indicato (I5), per nome. Serve `write`. Una etichetta che non esiste nel repo e' 422 (`details.fields.labels`): non si crea al volo. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/labels (the `SetIssueLabels` operationId).
	SetIssueLabelsWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetIssueLabels Imposta le etichette
	//
	// Sostituisce l'elenco con quello indicato (I5), per nome. Serve `write`. Una etichetta che non esiste nel repo e' 422 (`details.fields.labels`): non si crea al volo. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/labels (the `SetIssueLabels` operationId).
	SetIssueLabels(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body SetIssueLabelsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UnlockIssue Sblocca la discussione
	//
	// Serve `admin` (I11). Sbloccare una issue non bloccata e' idempotente. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Corresponds with DELETE /repos/{owner}/{repo}/issues/{number}/lock (the `UnlockIssue` operationId).
	UnlockIssue(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LockIssueWithBody Blocca la discussione
	//
	// Serve `admin` (I11). Con la discussione bloccata commenta solo chi ha `write` (gli altri 403 `locked`). Bloccare una issue gia' bloccata e' idempotente. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10). Una issue nascosta (I4) risponde 404 a chi non ha `admin`, tranne dove indicato.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/lock (the `LockIssue` operationId).
	LockIssueWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LockIssue Blocca la discussione
	//
	// Serve `admin` (I11). Con la discussione bloccata commenta solo chi ha `write` (gli altri 403 `locked`). Bloccare una issue gia' bloccata e' idempotente. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10). Una issue nascosta (I4) risponde 404 a chi non ha `admin`, tranne dove indicato.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/lock (the `LockIssue` operationId).
	LockIssue(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body LockIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetIssueMilestoneWithBody Imposta o toglie la milestone
	//
	// Al massimo una milestone per issue (I7); `milestone: null` la toglie. Serve `write`. Una milestone che non esiste nel repo e' 422. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/milestone (the `SetIssueMilestone` operationId).
	SetIssueMilestoneWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetIssueMilestone Imposta o toglie la milestone
	//
	// Al massimo una milestone per issue (I7); `milestone: null` la toglie. Serve `write`. Una milestone che non esiste nel repo e' 422. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/milestone (the `SetIssueMilestone` operationId).
	SetIssueMilestone(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body SetIssueMilestoneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReopenIssue Riapre una issue
	//
	// Come `closeIssue`: chi ha `write` o l'autore (I3). Riaprire azzera motivo e duplicato (I2). Una issue gia' aperta risponde 409 `already_open`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Corresponds with POST /repos/{owner}/{repo}/issues/{number}/reopen (the `ReopenIssue` operationId).
	ReopenIssue(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UnsubscribeIssue Smette di seguire la issue (Unsubscribe)
	//
	// Disiscrive l'utente corrente: da qui l'iscrizione automatica non lo riguarda piu' per questa issue, finche' non fa Subscribe. Le menzioni dirette (`@utente`) e le assegnazioni notificano comunque. Idempotente.
	//
	// Corresponds with DELETE /repos/{owner}/{repo}/issues/{number}/subscription (the `UnsubscribeIssue` operationId).
	UnsubscribeIssue(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetIssueSubscription Iscrizione alla issue
	//
	// Se l'utente corrente segue la issue (C3) e perche'. Autore, assegnatari, commentatori e menzionati seguono in automatico. Serve poter leggere la issue; una nascosta risponde 404 a chi non e' `admin`.
	//
	// Corresponds with GET /repos/{owner}/{repo}/issues/{number}/subscription (the `GetIssueSubscription` operationId).
	GetIssueSubscription(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SubscribeIssue Segue la issue (Subscribe)
	//
	// Iscrive l'utente corrente (`reason` `manual`), anche se si era disiscritto. Idempotente. Serve poter leggere la issue.
	//
	// Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/subscription (the `SubscribeIssue` operationId).
	SubscribeIssue(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListIssueVersions Versioni precedenti del testo della issue
	//
	// Solo con `admin` (I4): 403 per chi legge soltanto. Dalla piu' recente alla piu' vecchia; la versione corrente non e' nell'elenco, e' il testo della issue. Vuoto se non e' mai stata modificata.
	//
	// Corresponds with GET /repos/{owner}/{repo}/issues/{number}/versions (the `ListIssueVersions` operationId).
	ListIssueVersions(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListLabels Etichette del repo
	//
	// Con il numero di issues aperte che le usano. Ordinate per nome. Paginazione come `GET /repos`.
	//
	// Corresponds with GET /repos/{owner}/{repo}/labels (the `ListLabels` operationId).
	ListLabels(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *ListLabelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateLabelWithBody Crea un'etichetta
	//
	// Serve `write` (I3, I5). Il nome e' unico nel repo senza distinguere maiuscole/minuscole (409 `already_exists`), 1-50 caratteri, senza `/`, virgole ne' caratteri di controllo. Il colore e' esadecimale a sei cifre. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /repos/{owner}/{repo}/labels (the `CreateLabel` operationId).
	CreateLabelWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateLabel Crea un'etichetta
	//
	// Serve `write` (I3, I5). Il nome e' unico nel repo senza distinguere maiuscole/minuscole (409 `already_exists`), 1-50 caratteri, senza `/`, virgole ne' caratteri di controllo. Il colore e' esadecimale a sei cifre. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /repos/{owner}/{repo}/labels (the `CreateLabel` operationId).
	CreateLabel(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body CreateLabelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteLabel Elimina un'etichetta
	//
	// Serve `write`. Toglie l'etichetta da tutte le issues (evento `unlabeled` nella cronologia). Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Corresponds with DELETE /repos/{owner}/{repo}/labels/{name} (the `DeleteLabel` operationId).
	DeleteLabel(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, name LabelNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetLabel Legge un'etichetta
	//
	// Per nome, senza distinguere maiuscole/minuscole.
	//
	// Corresponds with GET /repos/{owner}/{repo}/labels/{name} (the `GetLabel` operationId).
	GetLabel(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, name LabelNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateLabelWithBody Modifica un'etichetta
	//
	// Serve `write`. Rinominare (o cambiare colore) aggiorna tutte le issues che la usano (il legame e' per id). 409 `already_exists` se il nuovo nome e' occupato. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /repos/{owner}/{repo}/labels/{name} (the `UpdateLabel` operationId).
	UpdateLabelWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, name LabelNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateLabel Modifica un'etichetta
	//
	// Serve `write`. Rinominare (o cambiare colore) aggiorna tutte le issues che la usano (il legame e' per id). 409 `already_exists` se il nuovo nome e' occupato. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /repos/{owner}/{repo}/labels/{name} (the `UpdateLabel` operationId).
	UpdateLabel(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, name LabelNameParam, body UpdateLabelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRepositoryLanguages Lingue del repo
	//
	// Byte per linguaggio al branch principale o a `ref`, con la percentuale sul totale, in ordine decrescente (pannello About, mockup 07). Un repo vuoto risponde lista vuota. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.
	//
	// Corresponds with GET /repos/{owner}/{repo}/languages (the `GetRepositoryLanguages` operationId).
	GetRepositoryLanguages(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryLanguagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListMilestones Milestone del repo
	//
	// Con l'avanzamento: `closedIssues` conta solo le chiuse come `completed`; le `not_planned` e `duplicate` non contano ne' fra le chiuse ne' fra le aperte (I2). Per scadenza crescente, poi per numero.
	//
	// Corresponds with GET /repos/{owner}/{repo}/milestones (the `ListMilestones` operationId).
	ListMilestones(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *ListMilestonesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateMilestoneWithBody Crea una milestone
	//
	// Serve `write` (I7). Titolo unico nel repo senza distinguere maiuscole/minuscole (409 `already_exists`), descrizione e data (`dueOn`) facoltative. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /repos/{owner}/{repo}/milestones (the `CreateMilestone` operationId).
	CreateMilestoneWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateMilestone Crea una milestone
	//
	// Serve `write` (I7). Titolo unico nel repo senza distinguere maiuscole/minuscole (409 `already_exists`), descrizione e data (`dueOn`) facoltative. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /repos/{owner}/{repo}/milestones (the `CreateMilestone` operationId).
	CreateMilestone(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body CreateMilestoneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteMilestone Elimina una milestone
	//
	// Serve `write`. Le issues collegate restano, senza milestone (evento `demilestoned`). Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Corresponds with DELETE /repos/{owner}/{repo}/milestones/{milestoneNumber} (the `DeleteMilestone` operationId).
	DeleteMilestone(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, milestoneNumber MilestoneNumberParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMilestone Legge una milestone
	//
	// Per numero della milestone nel repo.
	//
	// Corresponds with GET /repos/{owner}/{repo}/milestones/{milestoneNumber} (the `GetMilestone` operationId).
	GetMilestone(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, milestoneNumber MilestoneNumberParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateMilestoneWithBody Modifica o chiude una milestone
	//
	// Serve `write`. `state` la chiude o la riapre. `dueOn: null` toglie la data. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /repos/{owner}/{repo}/milestones/{milestoneNumber} (the `UpdateMilestone` operationId).
	UpdateMilestoneWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, milestoneNumber MilestoneNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateMilestone Modifica o chiude una milestone
	//
	// Serve `write`. `state` la chiude o la riapre. `dueOn: null` toglie la data. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /repos/{owner}/{repo}/milestones/{milestoneNumber} (the `UpdateMilestone` operationId).
	UpdateMilestone(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, milestoneNumber MilestoneNumberParam, body UpdateMilestoneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListRepoMirrors Elenca i mirror in push di un repo
	//
	// Serve `admin` sul repo (V8); un repo che non si legge risponde 404, uno senza `admin` 403. Il token non torna mai: `hasToken` dice solo che c'e'. Ogni mirror porta lo stato dell'ultimo tentativo (`state`, `lastAttemptAt`, `lastError`, `lastPushed`). Paginazione come `GET /repos`.
	//
	// Corresponds with GET /repos/{owner}/{repo}/mirrors (the `ListRepoMirrors` operationId).
	ListRepoMirrors(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *ListRepoMirrorsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateRepoMirrorWithBody Crea un mirror in push di un repo
	//
	// Serve `admin` sul repo (V8). Il mirror spinge il branch principale e i tag del repo su un altro server Git in HTTPS, a ogni push su quei ref e su richiesta (`sync`), SEMPRE senza push forzato: se la destinazione ha una storia diversa il mirror si ferma (`state: diverged`) e non sovrascrive mai. `url` e' `https://` senza credenziali nell'indirizzo; sempre bloccati loopback, indirizzi interni del cluster e link-local anche dopo la risoluzione DNS, e le destinazioni vietate dall'amministratore (C8): 422 `url_not_allowed` (`details.fields.url`). `username` e `token` sono la credenziale per la destinazione (per GitHub: utente e token personale con permesso di scrittura): il token e' cifrato (AES-256-GCM, come i segreti dei webhook) e non torna mai nelle risposte. Senza chiave dei segreti sul server: 503 `mirror_secrets_unavailable`. Un mirror attivo parte subito con una prima sincronizzazione. Lo stesso `url` due volte sullo stesso repo: 409 `conflict`. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /repos/{owner}/{repo}/mirrors (the `CreateRepoMirror` operationId).
	CreateRepoMirrorWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateRepoMirror Crea un mirror in push di un repo
	//
	// Serve `admin` sul repo (V8). Il mirror spinge il branch principale e i tag del repo su un altro server Git in HTTPS, a ogni push su quei ref e su richiesta (`sync`), SEMPRE senza push forzato: se la destinazione ha una storia diversa il mirror si ferma (`state: diverged`) e non sovrascrive mai. `url` e' `https://` senza credenziali nell'indirizzo; sempre bloccati loopback, indirizzi interni del cluster e link-local anche dopo la risoluzione DNS, e le destinazioni vietate dall'amministratore (C8): 422 `url_not_allowed` (`details.fields.url`). `username` e `token` sono la credenziale per la destinazione (per GitHub: utente e token personale con permesso di scrittura): il token e' cifrato (AES-256-GCM, come i segreti dei webhook) e non torna mai nelle risposte. Senza chiave dei segreti sul server: 503 `mirror_secrets_unavailable`. Un mirror attivo parte subito con una prima sincronizzazione. Lo stesso `url` due volte sullo stesso repo: 409 `conflict`. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /repos/{owner}/{repo}/mirrors (the `CreateRepoMirror` operationId).
	CreateRepoMirror(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body CreateRepoMirrorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteRepoMirror Elimina un mirror in push
	//
	// Serve `admin` sul repo (V8). Elimina anche il log delle esecuzioni. Non tocca la destinazione. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).
	//
	// Corresponds with DELETE /repos/{owner}/{repo}/mirrors/{mirrorId} (the `DeleteRepoMirror` operationId).
	DeleteRepoMirror(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRepoMirror Legge un mirror in push (con il suo stato)
	//
	// Serve `admin` sul repo (V8). E' l'operazione di stato: `state`, `lastAttemptAt`, `lastSuccessAt`, `lastError` e `lastPushed` (ref → SHA spinti con l'ultimo push riuscito). Un mirror di un altro repo risponde 404.
	//
	// Corresponds with GET /repos/{owner}/{repo}/mirrors/{mirrorId} (the `GetRepoMirror` operationId).
	GetRepoMirror(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateRepoMirrorWithBody Modifica un mirror in push
	//
	// Serve `admin` sul repo (V8). Cambia solo i campi indicati. `token`: una stringa sostituisce il token (non si puo' togliere: il mirror non funzionerebbe). Cambiare `url` azzera lo stato e rimette in coda il mirror. `enabled: false` mette in pausa il mirror (nessun push, nemmeno su richiesta) senza eliminarlo. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /repos/{owner}/{repo}/mirrors/{mirrorId} (the `UpdateRepoMirror` operationId).
	UpdateRepoMirrorWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateRepoMirror Modifica un mirror in push
	//
	// Serve `admin` sul repo (V8). Cambia solo i campi indicati. `token`: una stringa sostituisce il token (non si puo' togliere: il mirror non funzionerebbe). Cambiare `url` azzera lo stato e rimette in coda il mirror. `enabled: false` mette in pausa il mirror (nessun push, nemmeno su richiesta) senza eliminarlo. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /repos/{owner}/{repo}/mirrors/{mirrorId} (the `UpdateRepoMirror` operationId).
	UpdateRepoMirror(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam, body UpdateRepoMirrorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListRepoMirrorRuns Log delle ultime esecuzioni di un mirror in push
	//
	// Serve `admin` sul repo (V8). Le ultime esecuzioni (al massimo 50 per mirror, 30 giorni), dalla piu' recente. Ogni esecuzione dice l'esito, l'errore ripulito da credenziali e lo SHA di ogni ref. Paginazione come `GET /repos`.
	//
	// Corresponds with GET /repos/{owner}/{repo}/mirrors/{mirrorId}/runs (the `ListRepoMirrorRuns` operationId).
	ListRepoMirrorRuns(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam, params *ListRepoMirrorRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SyncRepoMirror Sincronizza ora un mirror in push
	//
	// Serve `admin` sul repo (V8). Mette il mirror in coda subito («Sincronizza ora»): risponde 202 e il push lo esegue il worker, entro pochi secondi; si segue con `getRepoMirror` e `listRepoMirrorRuns`. Su un mirror `diverged` o in `error` azzera i tentativi e riprova: il push resta non forzato, quindi se la destinazione ha ancora una storia diversa il mirror torna `diverged`. Un mirror in pausa (`enabled: false`) risponde 409 `mirror_disabled`. Idempotente se il mirror e' gia' in coda. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).
	//
	// Corresponds with POST /repos/{owner}/{repo}/mirrors/{mirrorId}/sync (the `SyncRepoMirror` operationId).
	SyncRepoMirror(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRepositoryRaw Contenuto grezzo di un file (streaming)
	//
	// Byte del file `path` a `ref`, senza limite di dimensione, in streaming (nessun buffer in memoria), `Content-Length` quando noto. Regola B3, mai servito come pagina eseguibile: un file di testo (non SVG, non binario) esce come `text/plain; charset=utf-8` in linea; qualunque altro (binari, immagini, SVG compreso) come `application/octet-stream` con `Content-Disposition: attachment`. In ogni caso `X-Content-Type-Options: nosniff` e `Content-Security-Policy: sandbox`. Servono sessione o token con `read` (nessun link anonimo). Forma con query, per la SPA e i client; l'indirizzo pubblico per i link e' `getRepositoryRawByPath`. 404 se `path` non esiste o non e' un file. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.
	//
	// Corresponds with GET /repos/{owner}/{repo}/raw (the `GetRepositoryRaw` operationId).
	GetRepositoryRaw(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryRawParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRepositoryRawByPath Contenuto grezzo di un file, per indirizzo (streaming)
	//
	// Forma a indirizzo di `getRepositoryRaw` (regola B3): il browser la raggiunge come `/<owner>/<repo>/raw/<ref>/<percorso>` (la riscrive il container web, vedi docs/repos.md), l'API come `/v1/repos/<owner>/<repo>/raw/<ref>/<percorso>`. Stesse regole di sicurezza, stessi byte e stesse intestazioni di `getRepositoryRaw` (`text/plain` o allegato, `nosniff`, `Content-Security-Policy: sandbox`). `refAndPath` occupa piu' segmenti: il router di core e la tabella del gateway lo trattano come coda (`x-path-tail`), non come un segmento solo. Servono sessione o token con `read`. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. Un ref che non corrisponde a nessun branch, tag o sha risponde 404 `ref_not_found`.
	//
	// Corresponds with GET /repos/{owner}/{repo}/raw/{refAndPath} (the `GetRepositoryRawByPath` operationId).
	GetRepositoryRawByPath(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, refAndPath RefAndPathParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRepositoryReadme README di una cartella
	//
	// Il README della cartella `path` (radice se assente), cercato come `README.md`, `README`, `README.txt` (senza distinguere maiuscole), con le stesse regole B1 di `contents` (`kind`, `display`, limiti 1 MB e 5 MB). 404 se non c'e'. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.
	//
	// Corresponds with GET /repos/{owner}/{repo}/readme (the `GetRepositoryReadme` operationId).
	GetRepositoryReadme(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryReadmeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SearchRepositoryCode Cerca un testo nel codice di un ref ("Search code")
	//
	// Regola B5: cerca `q` (sottostringa letterale, senza distinguere maiuscole) nei file di testo di `ref`, senza indice. Al massimo 100 risultati con percorso, riga e frammento (`limitReached` se ce ne sono altri), tempo massimo 10 secondi (`timedOut` se interrotta). Un `q` piu' corto di 2 caratteri risponde 400. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.
	//
	// Corresponds with GET /repos/{owner}/{repo}/search (the `SearchRepositoryCode` operationId).
	SearchRepositoryCode(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *SearchRepositoryCodeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRepositoryTags Tag del repo, con conteggi
	//
	// Tutti i tag, dal piu' recente; `total` e' il conteggio (mockup 07: "7 tags"). Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. Non ha `ref`: elenca tutti i tag.
	//
	// Corresponds with GET /repos/{owner}/{repo}/tags (the `GetRepositoryTags` operationId).
	GetRepositoryTags(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRepositoryTree Albero di una cartella con l'ultimo commit per voce
	//
	// Voci della cartella `path` (radice se assente) a `ref`, con l'ultimo commit che ha toccato ciascuna (mockup 07). Al massimo 1 000 voci: oltre, `truncated` e' true. Ordine: cartelle, poi file, per nome. 404 se `path` non esiste o non e' una cartella. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.
	//
	// Corresponds with GET /repos/{owner}/{repo}/tree (the `GetRepositoryTree` operationId).
	GetRepositoryTree(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryTreeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResetRepoWatch Riporta il Watch al default
	//
	// Torna a `participating`. Idempotente.
	//
	// Corresponds with DELETE /repos/{owner}/{repo}/watch (the `ResetRepoWatch` operationId).
	ResetRepoWatch(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRepoWatch Watch del repo
	//
	// Come l'utente corrente segue il repo (C3): `participating` (default), `all` o `ignore`. Serve `read` sul repo; un repo che non si legge risponde 404.
	//
	// Corresponds with GET /repos/{owner}/{repo}/watch (the `GetRepoWatch` operationId).
	GetRepoWatch(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetRepoWatchWithBody Imposta il Watch del repo
	//
	// `participating`: notifiche solo per le issues che si seguono (autore, assegnatario, commentatore, menzionato, iscritto); `all`: anche ogni nuova issue e commento del repo; `ignore`: nessuna notifica dal repo, nemmeno le menzioni dirette e le assegnazioni. Serve `read` sul repo.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /repos/{owner}/{repo}/watch (the `SetRepoWatch` operationId).
	SetRepoWatchWithBody(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetRepoWatch Imposta il Watch del repo
	//
	// `participating`: notifiche solo per le issues che si seguono (autore, assegnatario, commentatore, menzionato, iscritto); `all`: anche ogni nuova issue e commento del repo; `ignore`: nessuna notifica dal repo, nemmeno le menzioni dirette e le assegnazioni. Serve `read` sul repo.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /repos/{owner}/{repo}/watch (the `SetRepoWatch` operationId).
	SetRepoWatch(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body SetRepoWatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListResources Elenca le risorse
	//
	// Elenco paginato delle risorse, con filtro opzionale per tipo (es. `repo`). Il tipo non è vincolato a un insieme fisso: nuove milestone aggiungono nuovi tipi senza cambiare l'endpoint (D15).
	//
	// Corresponds with GET /resources (the `ListResources` operationId).
	ListResources(ctx context.Context, params *ListResourcesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateResourceWithBody Crea una risorsa
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /resources (the `CreateResource` operationId).
	CreateResourceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateResource Crea una risorsa
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /resources (the `CreateResource` operationId).
	CreateResource(ctx context.Context, body CreateResourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteResource Elimina una risorsa
	//
	// Corresponds with DELETE /resources/{resourceId} (the `DeleteResource` operationId).
	DeleteResource(ctx context.Context, resourceId ResourceIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetResource Legge una risorsa
	//
	// Corresponds with GET /resources/{resourceId} (the `GetResource` operationId).
	GetResource(ctx context.Context, resourceId ResourceIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateResourceWithBody Aggiorna una risorsa
	//
	// Aggiornamento parziale: solo i campi presenti nel corpo cambiano.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /resources/{resourceId} (the `UpdateResource` operationId).
	UpdateResourceWithBody(ctx context.Context, resourceId ResourceIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateResource Aggiorna una risorsa
	//
	// Aggiornamento parziale: solo i campi presenti nel corpo cambiano.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /resources/{resourceId} (the `UpdateResource` operationId).
	UpdateResource(ctx context.Context, resourceId ResourceIdParam, body UpdateResourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListResourceGrants Elenca i grant di una risorsa
	//
	// Scope `read:resource`; serve almeno il ruolo `admin` sulla risorsa.
	//
	// Corresponds with GET /resources/{resourceId}/grants (the `ListResourceGrants` operationId).
	ListResourceGrants(ctx context.Context, resourceId ResourceIdParam, params *ListResourceGrantsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateResourceGrantWithBody Assegna un ruolo su una risorsa a un utente o a un team
	//
	// Scope `write:resource`; serve il ruolo `admin` sulla risorsa. Un solo grant per (risorsa, soggetto): il secondo risponde 409.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /resources/{resourceId}/grants (the `CreateResourceGrant` operationId).
	CreateResourceGrantWithBody(ctx context.Context, resourceId ResourceIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateResourceGrant Assegna un ruolo su una risorsa a un utente o a un team
	//
	// Scope `write:resource`; serve il ruolo `admin` sulla risorsa. Un solo grant per (risorsa, soggetto): il secondo risponde 409.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /resources/{resourceId}/grants (the `CreateResourceGrant` operationId).
	CreateResourceGrant(ctx context.Context, resourceId ResourceIdParam, body CreateResourceGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteResourceGrant Revoca un grant
	//
	// Corresponds with DELETE /resources/{resourceId}/grants/{grantId} (the `DeleteResourceGrant` operationId).
	DeleteResourceGrant(ctx context.Context, resourceId ResourceIdParam, grantId GrantIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateResourceGrantWithBody Cambia il ruolo di un grant
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /resources/{resourceId}/grants/{grantId} (the `UpdateResourceGrant` operationId).
	UpdateResourceGrantWithBody(ctx context.Context, resourceId ResourceIdParam, grantId GrantIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateResourceGrant Cambia il ruolo di un grant
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /resources/{resourceId}/grants/{grantId} (the `UpdateResourceGrant` operationId).
	UpdateResourceGrant(ctx context.Context, resourceId ResourceIdParam, grantId GrantIdParam, body UpdateResourceGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMyResourcePermission Permesso effettivo del chiamante su una risorsa
	//
	// Ruolo effettivo (grant diretto, via team, amministratore) tenendo conto degli scope del token. Scope `read:resource`.
	//
	// Corresponds with GET /resources/{resourceId}/permissions (the `GetMyResourcePermission` operationId).
	GetMyResourcePermission(ctx context.Context, resourceId ResourceIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SearchIssues Cerca issues su tutta l'installazione
	//
	// Ricerca con la sintassi di I10 (`is:`, `reason:`, `label:`, `assignee:` con `@me` e `@agents`, `author:`, `milestone:`, `no:`, `repo:`, `org:` e testo libero con ricerca testuale PostgreSQL) sui soli repo che l'utente puo' leggere. Stessa sintassi di `listIssues`, che e' la ricerca nel singolo repo. Le issues nascoste compaiono solo a chi ha `admin` sul loro repo. Un `q` che non si puo' interpretare risponde 422.
	//
	// Corresponds with GET /search/issues (the `SearchIssues` operationId).
	SearchIssues(ctx context.Context, params *SearchIssuesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetNotificationPreferences Preferenze email delle notifiche
	//
	// Per ogni tipo (= motivo della notifica) se arriva anche una email (C5). Default: email per `mentioned` e `assigned`, non per gli altri. `emailAvailable` e' `false` quando l'installazione non ha SMTP o l'utente e' un agente (C4, C5): le preferenze si leggono e si salvano lo stesso, ma non partono email.
	//
	// Corresponds with GET /user/notification-preferences (the `GetNotificationPreferences` operationId).
	GetNotificationPreferences(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateNotificationPreferencesWithBody Imposta le preferenze email
	//
	// Imposta i tipi indicati in `email`; quelli omessi restano come sono. Un tipo sconosciuto: 422 (`details.fields.email`).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /user/notification-preferences (the `UpdateNotificationPreferences` operationId).
	UpdateNotificationPreferencesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateNotificationPreferences Imposta le preferenze email
	//
	// Imposta i tipi indicati in `email`; quelli omessi restano come sono. Un tipo sconosciuto: 422 (`details.fields.email`).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /user/notification-preferences (the `UpdateNotificationPreferences` operationId).
	UpdateNotificationPreferences(ctx context.Context, body UpdateNotificationPreferencesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSshKeys Elenca le chiavi SSH dell'utente corrente
	//
	// Corresponds with GET /user/ssh-keys (the `ListSshKeys` operationId).
	ListSshKeys(ctx context.Context, params *ListSshKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddSshKeyWithBody Aggiunge una chiave SSH
	//
	// Scope `write:user`. Il servizio valida la chiave, calcola il fingerprint SHA256 e lo tiene unico: la stessa chiave non puo' appartenere a due utenti (409 `ssh_key_in_use`).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /user/ssh-keys (the `AddSshKey` operationId).
	AddSshKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AddSshKey Aggiunge una chiave SSH
	//
	// Scope `write:user`. Il servizio valida la chiave, calcola il fingerprint SHA256 e lo tiene unico: la stessa chiave non puo' appartenere a due utenti (409 `ssh_key_in_use`).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /user/ssh-keys (the `AddSshKey` operationId).
	AddSshKey(ctx context.Context, body AddSshKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteSshKey Elimina una chiave SSH
	//
	// Corresponds with DELETE /user/ssh-keys/{keyId} (the `DeleteSshKey` operationId).
	DeleteSshKey(ctx context.Context, keyId SshKeyIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSshKey Legge una chiave SSH
	//
	// Corresponds with GET /user/ssh-keys/{keyId} (the `GetSshKey` operationId).
	GetSshKey(ctx context.Context, keyId SshKeyIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListTokens Elenca i token personali dell'utente corrente
	//
	// Scope `read:user`. Mai il valore del token, solo `hint`.
	//
	// Corresponds with GET /user/tokens (the `ListTokens` operationId).
	ListTokens(ctx context.Context, params *ListTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateTokenWithBody Crea un token personale
	//
	// Scope `write:user`. Il valore (`gst_...`) e' nella risposta una volta sola: il servizio conserva solo l'hash. Un token non puo' avere scope che il suo creatore non ha.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /user/tokens (the `CreateToken` operationId).
	CreateTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateToken Crea un token personale
	//
	// Scope `write:user`. Il valore (`gst_...`) e' nella risposta una volta sola: il servizio conserva solo l'hash. Un token non puo' avere scope che il suo creatore non ha.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /user/tokens (the `CreateToken` operationId).
	CreateToken(ctx context.Context, body CreateTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RevokeToken Revoca un token personale
	//
	// Scope `write:user`. La revoca e' immediata per identity; il gateway la vede entro il TTL della cache di verifica.
	//
	// Corresponds with DELETE /user/tokens/{tokenId} (the `RevokeToken` operationId).
	RevokeToken(ctx context.Context, tokenId TokenIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListUsers Elenca gli utenti
	//
	// Richiede lo scope `read:user`. Il profilo pubblico non include l'email.
	//
	// Corresponds with GET /users (the `ListUsers` operationId).
	ListUsers(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateUserWithBody Crea un utente
	//
	// Solo amministratori, scope `write:user`. Serve a creare utenti umani e agenti; non c'e' auto-registrazione.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /users (the `CreateUser` operationId).
	CreateUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateUser Crea un utente
	//
	// Solo amministratori, scope `write:user`. Serve a creare utenti umani e agenti; non c'e' auto-registrazione.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /users (the `CreateUser` operationId).
	CreateUser(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteUser Elimina un utente
	//
	// Solo amministratori, scope `write:user`. Elimina a cascata sessioni, token, chiavi SSH e membership. Non si puo' eliminare l'ultimo amministratore (409 `last_admin`).
	//
	// Corresponds with DELETE /users/{username} (the `DeleteUser` operationId).
	DeleteUser(ctx context.Context, username UsernameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetUser Legge il profilo di un utente
	//
	// Scope `read:user`. L'email e i campi amministrativi compaiono solo per l'utente stesso e per gli amministratori.
	//
	// Corresponds with GET /users/{username} (the `GetUser` operationId).
	GetUser(ctx context.Context, username UsernameParam, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateUserWithBody Aggiorna il profilo
	//
	// Scope `write:user`. Solo l'utente stesso (profilo) o un amministratore (anche `isAdmin`, `isActive`).
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /users/{username} (the `UpdateUser` operationId).
	UpdateUserWithBody(ctx context.Context, username UsernameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateUser Aggiorna il profilo
	//
	// Scope `write:user`. Solo l'utente stesso (profilo) o un amministratore (anche `isAdmin`, `isActive`).
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /users/{username} (the `UpdateUser` operationId).
	UpdateUser(ctx context.Context, username UsernameParam, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetUserAccess Accesso effettivo di un utente ai repository
	//
	// Solo l'amministratore dell'installazione (403 agli altri, anche per se stessi), scope `read:user`. Per ogni repository non eliminato che l'utente `username` (persona o agent) puo' raggiungere: il ruolo effettivo, il piu' alto fra le fonti (P1-P6), e l'elenco delle fonti (`sources`): grant diretto, grant di un team di cui e' membro (o di un'organizzazione di cui e' owner), owner del repo (organizzazione o repo personale), visibilita' interna, oppure amministratore dell'installazione. Un utente disattivato non ha accesso. 404 se l'utente non esiste. Paginazione come `GET /repos`.
	//
	// Corresponds with GET /users/{username}/access (the `GetUserAccess` operationId).
	GetUserAccess(ctx context.Context, username UsernameParam, params *GetUserAccessParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChangePasswordWithBody Cambia la password
	//
	// Scope `write:user`. L'utente stesso deve fornire `currentPassword`; un amministratore no. Con `currentPassword` sbagliata risponde 403 `forbidden` (il chiamante e' gia' autenticato: un 401 farebbe uscire il client). Revoca le altre sessioni dell'utente.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /users/{username}/password (the `ChangePassword` operationId).
	ChangePasswordWithBody(ctx context.Context, username UsernameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChangePassword Cambia la password
	//
	// Scope `write:user`. L'utente stesso deve fornire `currentPassword`; un amministratore no. Con `currentPassword` sbagliata risponde 403 `forbidden` (il chiamante e' gia' autenticato: un 401 farebbe uscire il client). Revoca le altre sessioni dell'utente.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /users/{username}/password (the `ChangePassword` operationId).
	ChangePassword(ctx context.Context, username UsernameParam, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListUserTokens Elenca i token di un utente agent
	//
	// Solo amministratori, scope `write:user` (regola P5). Solo per utenti di tipo `agent`: sui token di una persona decide solo lei (409 `not_an_agent`). Mai il valore del token, solo `hint`.
	//
	// Corresponds with GET /users/{username}/tokens (the `ListUserTokens` operationId).
	ListUserTokens(ctx context.Context, username UsernameParam, params *ListUserTokensParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateUserTokenWithBody Crea un token per un utente agent
	//
	// Solo amministratori, scope `write:user` (regola P5). Solo per utenti di tipo `agent` (409 `not_an_agent` altrimenti). Stesse regole dei token personali: scope dal catalogo, scadenza obbligatoria con lo stesso massimo, valore (`gst_...`) mostrato una sola volta, nel database solo lo SHA-256.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /users/{username}/tokens (the `CreateUserToken` operationId).
	CreateUserTokenWithBody(ctx context.Context, username UsernameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateUserToken Crea un token per un utente agent
	//
	// Solo amministratori, scope `write:user` (regola P5). Solo per utenti di tipo `agent` (409 `not_an_agent` altrimenti). Stesse regole dei token personali: scope dal catalogo, scadenza obbligatoria con lo stesso massimo, valore (`gst_...`) mostrato una sola volta, nel database solo lo SHA-256.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /users/{username}/tokens (the `CreateUserToken` operationId).
	CreateUserToken(ctx context.Context, username UsernameParam, body CreateUserTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RevokeUserToken Revoca un token di un utente agent
	//
	// Solo amministratori, scope `write:user` (regola P5). Un token che non appartiene a quell'agent e' 404. Utente umano: 409 `not_an_agent`.
	//
	// Corresponds with DELETE /users/{username}/tokens/{tokenId} (the `RevokeUserToken` operationId).
	RevokeUserToken(ctx context.Context, username UsernameParam, tokenId TokenIdParam, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) AddSshKeyWithBodyWithResponse

func (c *ClientWithResponses) AddSshKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddSshKeyResponse, error)

AddSshKeyWithBodyWithResponse Aggiunge una chiave SSH

Scope `write:user`. Il servizio valida la chiave, calcola il fingerprint SHA256 e lo tiene unico: la stessa chiave non puo' appartenere a due utenti (409 `ssh_key_in_use`).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /user/ssh-keys (the `AddSshKey` operationId).

func (*ClientWithResponses) AddSshKeyWithResponse

func (c *ClientWithResponses) AddSshKeyWithResponse(ctx context.Context, body AddSshKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*AddSshKeyResponse, error)

AddSshKeyWithResponse Aggiunge una chiave SSH

Scope `write:user`. Il servizio valida la chiave, calcola il fingerprint SHA256 e lo tiene unico: la stessa chiave non puo' appartenere a due utenti (409 `ssh_key_in_use`).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /user/ssh-keys (the `AddSshKey` operationId).

func (*ClientWithResponses) ChangePasswordWithBodyWithResponse

func (c *ClientWithResponses) ChangePasswordWithBodyWithResponse(ctx context.Context, username UsernameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangePasswordResponse, error)

ChangePasswordWithBodyWithResponse Cambia la password

Scope `write:user`. L'utente stesso deve fornire `currentPassword`; un amministratore no. Con `currentPassword` sbagliata risponde 403 `forbidden` (il chiamante e' gia' autenticato: un 401 farebbe uscire il client). Revoca le altre sessioni dell'utente.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /users/{username}/password (the `ChangePassword` operationId).

func (*ClientWithResponses) ChangePasswordWithResponse

func (c *ClientWithResponses) ChangePasswordWithResponse(ctx context.Context, username UsernameParam, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangePasswordResponse, error)

ChangePasswordWithResponse Cambia la password

Scope `write:user`. L'utente stesso deve fornire `currentPassword`; un amministratore no. Con `currentPassword` sbagliata risponde 403 `forbidden` (il chiamante e' gia' autenticato: un 401 farebbe uscire il client). Revoca le altre sessioni dell'utente.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /users/{username}/password (the `ChangePassword` operationId).

func (*ClientWithResponses) CheckPermissionWithBodyWithResponse

func (c *ClientWithResponses) CheckPermissionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CheckPermissionResponse, error)

CheckPermissionWithBodyWithResponse Verifica un permesso su una risorsa

Usata da core e git per applicare i permessi: `allowed` e' vero se l'utente ha almeno il ruolo richiesto sulla risorsa (grant diretto, via team, amministratore; owner dell'organizzazione e proprietario del repo personale sono admin, una risorsa interna e' leggibile da ogni utente attivo: P1, P6, P3).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /internal/permissions/check (the `CheckPermission` operationId).

func (*ClientWithResponses) CheckPermissionWithResponse

func (c *ClientWithResponses) CheckPermissionWithResponse(ctx context.Context, body CheckPermissionJSONRequestBody, reqEditors ...RequestEditorFn) (*CheckPermissionResponse, error)

CheckPermissionWithResponse Verifica un permesso su una risorsa

Usata da core e git per applicare i permessi: `allowed` e' vero se l'utente ha almeno il ruolo richiesto sulla risorsa (grant diretto, via team, amministratore; owner dell'organizzazione e proprietario del repo personale sono admin, una risorsa interna e' leggibile da ogni utente attivo: P1, P6, P3).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /internal/permissions/check (the `CheckPermission` operationId).

func (*ClientWithResponses) CloseIssueWithBodyWithResponse

func (c *ClientWithResponses) CloseIssueWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CloseIssueResponse, error)

CloseIssueWithBodyWithResponse Chiude una issue con un motivo

Motivo `completed`, `not_planned` o `duplicate` (I2); con `duplicate` serve `duplicateOf`, il numero di un'altra issue dello stesso repo diversa da questa (422 altrimenti, e anche se `reason` non e' `duplicate` e `duplicateOf` c'e'). Possono chiudere chi ha `write` e l'autore della issue (I3). Una issue gia' chiusa risponde 409 `already_closed`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /repos/{owner}/{repo}/issues/{number}/close (the `CloseIssue` operationId).

func (*ClientWithResponses) CloseIssueWithResponse

func (c *ClientWithResponses) CloseIssueWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body CloseIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*CloseIssueResponse, error)

CloseIssueWithResponse Chiude una issue con un motivo

Motivo `completed`, `not_planned` o `duplicate` (I2); con `duplicate` serve `duplicateOf`, il numero di un'altra issue dello stesso repo diversa da questa (422 altrimenti, e anche se `reason` non e' `duplicate` e `duplicateOf` c'e'). Possono chiudere chi ha `write` e l'autore della issue (I3). Una issue gia' chiusa risponde 409 `already_closed`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /repos/{owner}/{repo}/issues/{number}/close (the `CloseIssue` operationId).

func (*ClientWithResponses) CreateIssueCommentWithBodyWithResponse

func (c *ClientWithResponses) CreateIssueCommentWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIssueCommentResponse, error)

CreateIssueCommentWithBodyWithResponse Commenta la issue

Chi vede il repo commenta (I3), anche issues chiuse. Con la discussione bloccata (I11) solo chi ha `write` (403 `locked`). Testo Markdown, al massimo 65536 caratteri (413 `body_too_large` oltre 1 MiB); `attachmentIds` come in `createIssue`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /repos/{owner}/{repo}/issues/{number}/comments (the `CreateIssueComment` operationId).

func (*ClientWithResponses) CreateIssueCommentWithResponse

CreateIssueCommentWithResponse Commenta la issue

Chi vede il repo commenta (I3), anche issues chiuse. Con la discussione bloccata (I11) solo chi ha `write` (403 `locked`). Testo Markdown, al massimo 65536 caratteri (413 `body_too_large` oltre 1 MiB); `attachmentIds` come in `createIssue`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /repos/{owner}/{repo}/issues/{number}/comments (the `CreateIssueComment` operationId).

func (*ClientWithResponses) CreateIssueWithBodyWithResponse

func (c *ClientWithResponses) CreateIssueWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIssueResponse, error)

CreateIssueWithBodyWithResponse Apre una issue

Chi vede il repo (anche per visibilita' interna) apre issues (I3, P7). Il numero `#n` viene dal contatore del repo condiviso con le PR (I1) e non si riusa mai. Etichette, assegnatari e milestone nel corpo richiedono `write` (403 altrimenti); gli assegnatari sono al massimo 10 e devono avere `write` (I6, 422). `attachmentIds` sono allegati gia' caricati da chi crea (I9). Testo oltre il limite: 413 (`body_too_large`, 1 MiB). Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10). Un repo che l'utente non puo' leggere, eliminato o inesistente risponde 404 (non 403), per non rivelarne l'esistenza.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /repos/{owner}/{repo}/issues (the `CreateIssue` operationId).

func (*ClientWithResponses) CreateIssueWithResponse

func (c *ClientWithResponses) CreateIssueWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body CreateIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIssueResponse, error)

CreateIssueWithResponse Apre una issue

Chi vede il repo (anche per visibilita' interna) apre issues (I3, P7). Il numero `#n` viene dal contatore del repo condiviso con le PR (I1) e non si riusa mai. Etichette, assegnatari e milestone nel corpo richiedono `write` (403 altrimenti); gli assegnatari sono al massimo 10 e devono avere `write` (I6, 422). `attachmentIds` sono allegati gia' caricati da chi crea (I9). Testo oltre il limite: 413 (`body_too_large`, 1 MiB). Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10). Un repo che l'utente non puo' leggere, eliminato o inesistente risponde 404 (non 403), per non rivelarne l'esistenza.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /repos/{owner}/{repo}/issues (the `CreateIssue` operationId).

func (*ClientWithResponses) CreateLabelWithBodyWithResponse

func (c *ClientWithResponses) CreateLabelWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateLabelResponse, error)

CreateLabelWithBodyWithResponse Crea un'etichetta

Serve `write` (I3, I5). Il nome e' unico nel repo senza distinguere maiuscole/minuscole (409 `already_exists`), 1-50 caratteri, senza `/`, virgole ne' caratteri di controllo. Il colore e' esadecimale a sei cifre. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /repos/{owner}/{repo}/labels (the `CreateLabel` operationId).

func (*ClientWithResponses) CreateLabelWithResponse

func (c *ClientWithResponses) CreateLabelWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body CreateLabelJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateLabelResponse, error)

CreateLabelWithResponse Crea un'etichetta

Serve `write` (I3, I5). Il nome e' unico nel repo senza distinguere maiuscole/minuscole (409 `already_exists`), 1-50 caratteri, senza `/`, virgole ne' caratteri di controllo. Il colore e' esadecimale a sei cifre. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /repos/{owner}/{repo}/labels (the `CreateLabel` operationId).

func (*ClientWithResponses) CreateMilestoneWithBodyWithResponse

func (c *ClientWithResponses) CreateMilestoneWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMilestoneResponse, error)

CreateMilestoneWithBodyWithResponse Crea una milestone

Serve `write` (I7). Titolo unico nel repo senza distinguere maiuscole/minuscole (409 `already_exists`), descrizione e data (`dueOn`) facoltative. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /repos/{owner}/{repo}/milestones (the `CreateMilestone` operationId).

func (*ClientWithResponses) CreateMilestoneWithResponse

func (c *ClientWithResponses) CreateMilestoneWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body CreateMilestoneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMilestoneResponse, error)

CreateMilestoneWithResponse Crea una milestone

Serve `write` (I7). Titolo unico nel repo senza distinguere maiuscole/minuscole (409 `already_exists`), descrizione e data (`dueOn`) facoltative. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /repos/{owner}/{repo}/milestones (the `CreateMilestone` operationId).

func (*ClientWithResponses) CreateOrgWebhookWithBodyWithResponse

func (c *ClientWithResponses) CreateOrgWebhookWithBodyWithResponse(ctx context.Context, org OrgParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrgWebhookResponse, error)

CreateOrgWebhookWithBodyWithResponse Crea un webhook di un'organizzazione

Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. `url` http o https; sempre bloccati loopback, indirizzi interni del cluster e link-local, anche dopo redirect e risoluzione DNS, e le destinazioni vietate dall'amministratore (C8): 422 (`details.fields.url`, codice `url_not_allowed`). `events` almeno uno fra `push`, `issues`, `issue_comment`, `repository`. Il `secret` e' facoltativo (senza, la consegna non e' firmata): non torna mai nelle risposte. Il formato dei payload e le intestazioni sono in docs/webhooks.md.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /orgs/{org}/hooks (the `CreateOrgWebhook` operationId).

func (*ClientWithResponses) CreateOrgWebhookWithResponse

func (c *ClientWithResponses) CreateOrgWebhookWithResponse(ctx context.Context, org OrgParam, body CreateOrgWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrgWebhookResponse, error)

CreateOrgWebhookWithResponse Crea un webhook di un'organizzazione

Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. `url` http o https; sempre bloccati loopback, indirizzi interni del cluster e link-local, anche dopo redirect e risoluzione DNS, e le destinazioni vietate dall'amministratore (C8): 422 (`details.fields.url`, codice `url_not_allowed`). `events` almeno uno fra `push`, `issues`, `issue_comment`, `repository`. Il `secret` e' facoltativo (senza, la consegna non e' firmata): non torna mai nelle risposte. Il formato dei payload e le intestazioni sono in docs/webhooks.md.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /orgs/{org}/hooks (the `CreateOrgWebhook` operationId).

func (*ClientWithResponses) CreateOrganizationWithBodyWithResponse

func (c *ClientWithResponses) CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)

CreateOrganizationWithBodyWithResponse Crea un'organizzazione

Scope `write:org`. Il creatore ne diventa `owner`.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /orgs (the `CreateOrganization` operationId).

func (*ClientWithResponses) CreateOrganizationWithResponse

func (c *ClientWithResponses) CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)

CreateOrganizationWithResponse Crea un'organizzazione

Scope `write:org`. Il creatore ne diventa `owner`.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /orgs (the `CreateOrganization` operationId).

func (*ClientWithResponses) CreateRepoMirrorWithBodyWithResponse

func (c *ClientWithResponses) CreateRepoMirrorWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRepoMirrorResponse, error)

CreateRepoMirrorWithBodyWithResponse Crea un mirror in push di un repo

Serve `admin` sul repo (V8). Il mirror spinge il branch principale e i tag del repo su un altro server Git in HTTPS, a ogni push su quei ref e su richiesta (`sync`), SEMPRE senza push forzato: se la destinazione ha una storia diversa il mirror si ferma (`state: diverged`) e non sovrascrive mai. `url` e' `https://` senza credenziali nell'indirizzo; sempre bloccati loopback, indirizzi interni del cluster e link-local anche dopo la risoluzione DNS, e le destinazioni vietate dall'amministratore (C8): 422 `url_not_allowed` (`details.fields.url`). `username` e `token` sono la credenziale per la destinazione (per GitHub: utente e token personale con permesso di scrittura): il token e' cifrato (AES-256-GCM, come i segreti dei webhook) e non torna mai nelle risposte. Senza chiave dei segreti sul server: 503 `mirror_secrets_unavailable`. Un mirror attivo parte subito con una prima sincronizzazione. Lo stesso `url` due volte sullo stesso repo: 409 `conflict`. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /repos/{owner}/{repo}/mirrors (the `CreateRepoMirror` operationId).

func (*ClientWithResponses) CreateRepoMirrorWithResponse

func (c *ClientWithResponses) CreateRepoMirrorWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body CreateRepoMirrorJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRepoMirrorResponse, error)

CreateRepoMirrorWithResponse Crea un mirror in push di un repo

Serve `admin` sul repo (V8). Il mirror spinge il branch principale e i tag del repo su un altro server Git in HTTPS, a ogni push su quei ref e su richiesta (`sync`), SEMPRE senza push forzato: se la destinazione ha una storia diversa il mirror si ferma (`state: diverged`) e non sovrascrive mai. `url` e' `https://` senza credenziali nell'indirizzo; sempre bloccati loopback, indirizzi interni del cluster e link-local anche dopo la risoluzione DNS, e le destinazioni vietate dall'amministratore (C8): 422 `url_not_allowed` (`details.fields.url`). `username` e `token` sono la credenziale per la destinazione (per GitHub: utente e token personale con permesso di scrittura): il token e' cifrato (AES-256-GCM, come i segreti dei webhook) e non torna mai nelle risposte. Senza chiave dei segreti sul server: 503 `mirror_secrets_unavailable`. Un mirror attivo parte subito con una prima sincronizzazione. Lo stesso `url` due volte sullo stesso repo: 409 `conflict`. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /repos/{owner}/{repo}/mirrors (the `CreateRepoMirror` operationId).

func (*ClientWithResponses) CreateRepoWebhookWithBodyWithResponse

func (c *ClientWithResponses) CreateRepoWebhookWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRepoWebhookResponse, error)

CreateRepoWebhookWithBodyWithResponse Crea un webhook di un repo

Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. `url` http o https; sempre bloccati loopback, indirizzi interni del cluster e link-local, anche dopo redirect e risoluzione DNS, e le destinazioni vietate dall'amministratore (C8): 422 (`details.fields.url`, codice `url_not_allowed`). `events` almeno uno fra `push`, `issues`, `issue_comment`, `repository`. Il `secret` e' facoltativo (senza, la consegna non e' firmata): non torna mai nelle risposte. Il formato dei payload e le intestazioni sono in docs/webhooks.md. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /repos/{owner}/{repo}/hooks (the `CreateRepoWebhook` operationId).

func (*ClientWithResponses) CreateRepoWebhookWithResponse

func (c *ClientWithResponses) CreateRepoWebhookWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body CreateRepoWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRepoWebhookResponse, error)

CreateRepoWebhookWithResponse Crea un webhook di un repo

Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. `url` http o https; sempre bloccati loopback, indirizzi interni del cluster e link-local, anche dopo redirect e risoluzione DNS, e le destinazioni vietate dall'amministratore (C8): 422 (`details.fields.url`, codice `url_not_allowed`). `events` almeno uno fra `push`, `issues`, `issue_comment`, `repository`. Il `secret` e' facoltativo (senza, la consegna non e' firmata): non torna mai nelle risposte. Il formato dei payload e le intestazioni sono in docs/webhooks.md. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /repos/{owner}/{repo}/hooks (the `CreateRepoWebhook` operationId).

func (*ClientWithResponses) CreateRepositoryWithBodyWithResponse

func (c *ClientWithResponses) CreateRepositoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRepositoryResponse, error)

CreateRepositoryWithBodyWithResponse Crea un repo

`owner` e' il nome dell'utente o dell'organizzazione (spazio di nomi unico, R1). Serve poter creare repo per quell'owner: se stesso, o un owner dell'organizzazione. Il creatore riceve il ruolo `admin`. Senza opzioni di contenuto iniziale (R5) il repo nasce vuoto. Risponde 409 se il nome e' occupato, anche da un repo eliminato (R2); 404 se `owner` non esiste.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /repos (the `CreateRepository` operationId).

func (*ClientWithResponses) CreateRepositoryWithResponse

func (c *ClientWithResponses) CreateRepositoryWithResponse(ctx context.Context, body CreateRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRepositoryResponse, error)

CreateRepositoryWithResponse Crea un repo

`owner` e' il nome dell'utente o dell'organizzazione (spazio di nomi unico, R1). Serve poter creare repo per quell'owner: se stesso, o un owner dell'organizzazione. Il creatore riceve il ruolo `admin`. Senza opzioni di contenuto iniziale (R5) il repo nasce vuoto. Risponde 409 se il nome e' occupato, anche da un repo eliminato (R2); 404 se `owner` non esiste.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /repos (the `CreateRepository` operationId).

func (*ClientWithResponses) CreateResourceGrantWithBodyWithResponse

func (c *ClientWithResponses) CreateResourceGrantWithBodyWithResponse(ctx context.Context, resourceId ResourceIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateResourceGrantResponse, error)

CreateResourceGrantWithBodyWithResponse Assegna un ruolo su una risorsa a un utente o a un team

Scope `write:resource`; serve il ruolo `admin` sulla risorsa. Un solo grant per (risorsa, soggetto): il secondo risponde 409.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /resources/{resourceId}/grants (the `CreateResourceGrant` operationId).

func (*ClientWithResponses) CreateResourceGrantWithResponse

func (c *ClientWithResponses) CreateResourceGrantWithResponse(ctx context.Context, resourceId ResourceIdParam, body CreateResourceGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateResourceGrantResponse, error)

CreateResourceGrantWithResponse Assegna un ruolo su una risorsa a un utente o a un team

Scope `write:resource`; serve il ruolo `admin` sulla risorsa. Un solo grant per (risorsa, soggetto): il secondo risponde 409.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /resources/{resourceId}/grants (the `CreateResourceGrant` operationId).

func (*ClientWithResponses) CreateResourceWithBodyWithResponse

func (c *ClientWithResponses) CreateResourceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateResourceResponse, error)

CreateResourceWithBodyWithResponse Crea una risorsa

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /resources (the `CreateResource` operationId).

func (*ClientWithResponses) CreateResourceWithResponse

func (c *ClientWithResponses) CreateResourceWithResponse(ctx context.Context, body CreateResourceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateResourceResponse, error)

CreateResourceWithResponse Crea una risorsa

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /resources (the `CreateResource` operationId).

func (*ClientWithResponses) CreateTeamWithBodyWithResponse

func (c *ClientWithResponses) CreateTeamWithBodyWithResponse(ctx context.Context, org OrgParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error)

CreateTeamWithBodyWithResponse Crea un team

Scope `write:org`, ruolo `owner`.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /orgs/{org}/teams (the `CreateTeam` operationId).

func (*ClientWithResponses) CreateTeamWithResponse

func (c *ClientWithResponses) CreateTeamWithResponse(ctx context.Context, org OrgParam, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error)

CreateTeamWithResponse Crea un team

Scope `write:org`, ruolo `owner`.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /orgs/{org}/teams (the `CreateTeam` operationId).

func (*ClientWithResponses) CreateTokenWithBodyWithResponse

func (c *ClientWithResponses) CreateTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTokenResponse, error)

CreateTokenWithBodyWithResponse Crea un token personale

Scope `write:user`. Il valore (`gst_...`) e' nella risposta una volta sola: il servizio conserva solo l'hash. Un token non puo' avere scope che il suo creatore non ha.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /user/tokens (the `CreateToken` operationId).

func (*ClientWithResponses) CreateTokenWithResponse

func (c *ClientWithResponses) CreateTokenWithResponse(ctx context.Context, body CreateTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTokenResponse, error)

CreateTokenWithResponse Crea un token personale

Scope `write:user`. Il valore (`gst_...`) e' nella risposta una volta sola: il servizio conserva solo l'hash. Un token non puo' avere scope che il suo creatore non ha.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /user/tokens (the `CreateToken` operationId).

func (*ClientWithResponses) CreateUserTokenWithBodyWithResponse

func (c *ClientWithResponses) CreateUserTokenWithBodyWithResponse(ctx context.Context, username UsernameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserTokenResponse, error)

CreateUserTokenWithBodyWithResponse Crea un token per un utente agent

Solo amministratori, scope `write:user` (regola P5). Solo per utenti di tipo `agent` (409 `not_an_agent` altrimenti). Stesse regole dei token personali: scope dal catalogo, scadenza obbligatoria con lo stesso massimo, valore (`gst_...`) mostrato una sola volta, nel database solo lo SHA-256.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /users/{username}/tokens (the `CreateUserToken` operationId).

func (*ClientWithResponses) CreateUserTokenWithResponse

func (c *ClientWithResponses) CreateUserTokenWithResponse(ctx context.Context, username UsernameParam, body CreateUserTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserTokenResponse, error)

CreateUserTokenWithResponse Crea un token per un utente agent

Solo amministratori, scope `write:user` (regola P5). Solo per utenti di tipo `agent` (409 `not_an_agent` altrimenti). Stesse regole dei token personali: scope dal catalogo, scadenza obbligatoria con lo stesso massimo, valore (`gst_...`) mostrato una sola volta, nel database solo lo SHA-256.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /users/{username}/tokens (the `CreateUserToken` operationId).

func (*ClientWithResponses) CreateUserWithBodyWithResponse

func (c *ClientWithResponses) CreateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)

CreateUserWithBodyWithResponse Crea un utente

Solo amministratori, scope `write:user`. Serve a creare utenti umani e agenti; non c'e' auto-registrazione.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /users (the `CreateUser` operationId).

func (*ClientWithResponses) CreateUserWithResponse

func (c *ClientWithResponses) CreateUserWithResponse(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)

CreateUserWithResponse Crea un utente

Solo amministratori, scope `write:user`. Serve a creare utenti umani e agenti; non c'e' auto-registrazione.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /users (the `CreateUser` operationId).

func (*ClientWithResponses) DeleteIssueCommentWithResponse

func (c *ClientWithResponses) DeleteIssueCommentWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, commentId IssueCommentIdParam, reqEditors ...RequestEditorFn) (*DeleteIssueCommentResponse, error)

DeleteIssueCommentWithResponse Elimina un commento

L'autore o chi ha `admin` (I4). Il testo viene svuotato e si registra l'evento `comment_deleted` ("comment deleted"); le versioni precedenti restano visibili a `admin`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /repos/{owner}/{repo}/issues/{number}/comments/{commentId} (the `DeleteIssueComment` operationId).

func (*ClientWithResponses) DeleteLabelWithResponse

func (c *ClientWithResponses) DeleteLabelWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, name LabelNameParam, reqEditors ...RequestEditorFn) (*DeleteLabelResponse, error)

DeleteLabelWithResponse Elimina un'etichetta

Serve `write`. Toglie l'etichetta da tutte le issues (evento `unlabeled` nella cronologia). Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /repos/{owner}/{repo}/labels/{name} (the `DeleteLabel` operationId).

func (*ClientWithResponses) DeleteMilestoneWithResponse

func (c *ClientWithResponses) DeleteMilestoneWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, milestoneNumber MilestoneNumberParam, reqEditors ...RequestEditorFn) (*DeleteMilestoneResponse, error)

DeleteMilestoneWithResponse Elimina una milestone

Serve `write`. Le issues collegate restano, senza milestone (evento `demilestoned`). Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /repos/{owner}/{repo}/milestones/{milestoneNumber} (the `DeleteMilestone` operationId).

func (*ClientWithResponses) DeleteNotificationWithResponse

func (c *ClientWithResponses) DeleteNotificationWithResponse(ctx context.Context, notificationId NotificationIdParam, reqEditors ...RequestEditorFn) (*DeleteNotificationResponse, error)

DeleteNotificationWithResponse Elimina una notifica

Eliminazione manuale (C9), anche di una non letta.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /notifications/{notificationId} (the `DeleteNotification` operationId).

func (*ClientWithResponses) DeleteNotificationsWithResponse

func (c *ClientWithResponses) DeleteNotificationsWithResponse(ctx context.Context, params *DeleteNotificationsParams, reqEditors ...RequestEditorFn) (*DeleteNotificationsResponse, error)

DeleteNotificationsWithResponse Elimina in blocco le notifiche

Elimina le notifiche dell'utente corrente nello stato indicato (`read` o `archived`; le non lette non si eliminano in blocco), con gli stessi filtri `reason` e `repo` dell'elenco (C9). Risponde 200 con il numero di notifiche eliminate.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /notifications (the `DeleteNotifications` operationId).

func (*ClientWithResponses) DeleteOrgWebhookWithResponse

func (c *ClientWithResponses) DeleteOrgWebhookWithResponse(ctx context.Context, org OrgParam, hookId WebhookIdParam, reqEditors ...RequestEditorFn) (*DeleteOrgWebhookResponse, error)

DeleteOrgWebhookWithResponse Elimina un webhook di un'organizzazione

Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Elimina anche il log delle consegne e le notifiche di disattivazione collegate.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /orgs/{org}/hooks/{hookId} (the `DeleteOrgWebhook` operationId).

func (*ClientWithResponses) DeleteOrganizationWithResponse

func (c *ClientWithResponses) DeleteOrganizationWithResponse(ctx context.Context, org OrgParam, reqEditors ...RequestEditorFn) (*DeleteOrganizationResponse, error)

DeleteOrganizationWithResponse Elimina un'organizzazione

Scope `admin:org`, ruolo `owner`. Elimina a cascata team e membership.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /orgs/{org} (the `DeleteOrganization` operationId).

func (*ClientWithResponses) DeleteRepoMirrorWithResponse

func (c *ClientWithResponses) DeleteRepoMirrorWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam, reqEditors ...RequestEditorFn) (*DeleteRepoMirrorResponse, error)

DeleteRepoMirrorWithResponse Elimina un mirror in push

Serve `admin` sul repo (V8). Elimina anche il log delle esecuzioni. Non tocca la destinazione. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /repos/{owner}/{repo}/mirrors/{mirrorId} (the `DeleteRepoMirror` operationId).

func (*ClientWithResponses) DeleteRepoWebhookWithResponse

func (c *ClientWithResponses) DeleteRepoWebhookWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, reqEditors ...RequestEditorFn) (*DeleteRepoWebhookResponse, error)

DeleteRepoWebhookWithResponse Elimina un webhook di un repo

Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Elimina anche il log delle consegne e le notifiche di disattivazione collegate.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /repos/{owner}/{repo}/hooks/{hookId} (the `DeleteRepoWebhook` operationId).

func (*ClientWithResponses) DeleteRepositoryWithResponse

func (c *ClientWithResponses) DeleteRepositoryWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*DeleteRepositoryResponse, error)

DeleteRepositoryWithResponse Elimina un repo (recuperabile per 7 giorni)

Serve il ruolo `admin` (R12). Il repo sparisce subito per tutti e resta ripristinabile per 7 giorni (R2); il nome resta occupato.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /repos/{owner}/{repo} (the `DeleteRepository` operationId).

func (*ClientWithResponses) DeleteResourceGrantWithResponse

func (c *ClientWithResponses) DeleteResourceGrantWithResponse(ctx context.Context, resourceId ResourceIdParam, grantId GrantIdParam, reqEditors ...RequestEditorFn) (*DeleteResourceGrantResponse, error)

DeleteResourceGrantWithResponse Revoca un grant

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /resources/{resourceId}/grants/{grantId} (the `DeleteResourceGrant` operationId).

func (*ClientWithResponses) DeleteResourceWithResponse

func (c *ClientWithResponses) DeleteResourceWithResponse(ctx context.Context, resourceId ResourceIdParam, reqEditors ...RequestEditorFn) (*DeleteResourceResponse, error)

DeleteResourceWithResponse Elimina una risorsa

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /resources/{resourceId} (the `DeleteResource` operationId).

func (*ClientWithResponses) DeleteSshKeyWithResponse

func (c *ClientWithResponses) DeleteSshKeyWithResponse(ctx context.Context, keyId SshKeyIdParam, reqEditors ...RequestEditorFn) (*DeleteSshKeyResponse, error)

DeleteSshKeyWithResponse Elimina una chiave SSH

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /user/ssh-keys/{keyId} (the `DeleteSshKey` operationId).

func (*ClientWithResponses) DeleteTeamWithResponse

func (c *ClientWithResponses) DeleteTeamWithResponse(ctx context.Context, org OrgParam, team TeamParam, reqEditors ...RequestEditorFn) (*DeleteTeamResponse, error)

DeleteTeamWithResponse Elimina un team

Elimina anche i grant assegnati al team.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /orgs/{org}/teams/{team} (the `DeleteTeam` operationId).

func (*ClientWithResponses) DeleteUserWithResponse

func (c *ClientWithResponses) DeleteUserWithResponse(ctx context.Context, username UsernameParam, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error)

DeleteUserWithResponse Elimina un utente

Solo amministratori, scope `write:user`. Elimina a cascata sessioni, token, chiavi SSH e membership. Non si puo' eliminare l'ultimo amministratore (409 `last_admin`).

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /users/{username} (the `DeleteUser` operationId).

func (*ClientWithResponses) FinishOidcLoginWithResponse

func (c *ClientWithResponses) FinishOidcLoginWithResponse(ctx context.Context, provider OidcProviderParam, params *FinishOidcLoginParams, reqEditors ...RequestEditorFn) (*FinishOidcLoginResponse, error)

FinishOidcLoginWithResponse Completa il login OIDC

Callback del provider. Se l'identita' (provider, subject) e' gia' collegata a un utente crea la sessione (cookie `gst_session`) e fa redirect (302) a `redirectTo`. Altrimenti decide la configurazione del provider: con `linkByVerifiedEmail` (default false) e un'email che il provider dichiara verificata (`email_verified`) collega l'identita' all'utente locale con quella email; con `autoCreateUsers` (default false) crea un nuovo utente (senza password) e lo collega; un'email non verificata non si collega mai a un utente esistente. In tutti gli altri casi (compreso il default, con entrambe le opzioni a false) risponde 409 `oidc_identity_unlinked`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /auth/oidc/{provider}/callback (the `FinishOidcLogin` operationId).

func (*ClientWithResponses) GetCurrentSessionWithResponse

func (c *ClientWithResponses) GetCurrentSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentSessionResponse, error)

GetCurrentSessionWithResponse Sessione corrente

Chi e' il chiamante e con quale credenziale (sessione o token personale, con i suoi scope). Non richiede scope: basta essere autenticati.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /auth/session (the `GetCurrentSession` operationId).

func (*ClientWithResponses) GetHealthWithResponse

func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)

GetHealthWithResponse Stato del servizio

Controllo di salute, senza autenticazione: usato da orchestratore (k3s) e dai probe di deploy.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /health (the `GetHealth` operationId).

func (*ClientWithResponses) GetIssueAttachmentWithResponse

func (c *ClientWithResponses) GetIssueAttachmentWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, attachmentId IssueAttachmentIdParam, reqEditors ...RequestEditorFn) (*GetIssueAttachmentResponse, error)

GetIssueAttachmentWithResponse Scarica un allegato

Solo chi vede il repo (I9): nessun URL pubblico, la richiesta e' sempre autenticata. Sempre `Content-Disposition: attachment`, `X-Content-Type-Options: nosniff` e `Content-Security-Policy: sandbox` (come B3). Un allegato di una issue nascosta e' 404 per chi non ha `admin`. Un repo che l'utente non puo' leggere, eliminato o inesistente risponde 404 (non 403), per non rivelarne l'esistenza.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/issue-attachments/{attachmentId} (the `GetIssueAttachment` operationId).

func (*ClientWithResponses) GetIssueSubscriptionWithResponse

func (c *ClientWithResponses) GetIssueSubscriptionWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*GetIssueSubscriptionResponse, error)

GetIssueSubscriptionWithResponse Iscrizione alla issue

Se l'utente corrente segue la issue (C3) e perche'. Autore, assegnatari, commentatori e menzionati seguono in automatico. Serve poter leggere la issue; una nascosta risponde 404 a chi non e' `admin`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/issues/{number}/subscription (the `GetIssueSubscription` operationId).

func (*ClientWithResponses) GetIssueWithResponse

func (c *ClientWithResponses) GetIssueWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*GetIssueResponse, error)

GetIssueWithResponse Legge una issue per numero

Una issue che non esiste nel repo risponde 404. Se e' nascosta (I4) chi non ha `admin` riceve 404, come se non esistesse, per non rivelare ne' il contenuto ne' l'esistenza di cio' che e' stato nascosto. Un repo che l'utente non puo' leggere, eliminato o inesistente risponde 404 (non 403), per non rivelarne l'esistenza.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/issues/{number} (the `GetIssue` operationId).

func (*ClientWithResponses) GetLabelWithResponse

func (c *ClientWithResponses) GetLabelWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, name LabelNameParam, reqEditors ...RequestEditorFn) (*GetLabelResponse, error)

GetLabelWithResponse Legge un'etichetta

Per nome, senza distinguere maiuscole/minuscole.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/labels/{name} (the `GetLabel` operationId).

func (*ClientWithResponses) GetMetaWithResponse

func (c *ClientWithResponses) GetMetaWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMetaResponse, error)

GetMetaWithResponse Versione del server

Versione dell'installazione e del contratto API, senza autenticazione. Usato da gs per il controllo di compatibilita (G6).

Returns a wrapper object for the known response body format(s).

Corresponds with GET /meta (the `GetMeta` operationId).

func (*ClientWithResponses) GetMilestoneWithResponse

func (c *ClientWithResponses) GetMilestoneWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, milestoneNumber MilestoneNumberParam, reqEditors ...RequestEditorFn) (*GetMilestoneResponse, error)

GetMilestoneWithResponse Legge una milestone

Per numero della milestone nel repo.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/milestones/{milestoneNumber} (the `GetMilestone` operationId).

func (*ClientWithResponses) GetMyResourcePermissionWithResponse

func (c *ClientWithResponses) GetMyResourcePermissionWithResponse(ctx context.Context, resourceId ResourceIdParam, reqEditors ...RequestEditorFn) (*GetMyResourcePermissionResponse, error)

GetMyResourcePermissionWithResponse Permesso effettivo del chiamante su una risorsa

Ruolo effettivo (grant diretto, via team, amministratore) tenendo conto degli scope del token. Scope `read:resource`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /resources/{resourceId}/permissions (the `GetMyResourcePermission` operationId).

func (*ClientWithResponses) GetNotificationPreferencesWithResponse

func (c *ClientWithResponses) GetNotificationPreferencesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetNotificationPreferencesResponse, error)

GetNotificationPreferencesWithResponse Preferenze email delle notifiche

Per ogni tipo (= motivo della notifica) se arriva anche una email (C5). Default: email per `mentioned` e `assigned`, non per gli altri. `emailAvailable` e' `false` quando l'installazione non ha SMTP o l'utente e' un agente (C4, C5): le preferenze si leggono e si salvano lo stesso, ma non partono email.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /user/notification-preferences (the `GetNotificationPreferences` operationId).

func (*ClientWithResponses) GetNotificationWithResponse

func (c *ClientWithResponses) GetNotificationWithResponse(ctx context.Context, notificationId NotificationIdParam, reqEditors ...RequestEditorFn) (*GetNotificationResponse, error)

GetNotificationWithResponse Legge una notifica

Una notifica di un'altra persona risponde 404, come una inesistente.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /notifications/{notificationId} (the `GetNotification` operationId).

func (*ClientWithResponses) GetOrgWebhookDeliveryWithResponse

func (c *ClientWithResponses) GetOrgWebhookDeliveryWithResponse(ctx context.Context, org OrgParam, hookId WebhookIdParam, deliveryId WebhookDeliveryIdParam, reqEditors ...RequestEditorFn) (*GetOrgWebhookDeliveryResponse, error)

GetOrgWebhookDeliveryWithResponse Dettaglio di una consegna di un'organizzazione

Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Con la richiesta inviata (intestazioni e payload) e la risposta ricevuta, troncata a 4 KB (C8).

Returns a wrapper object for the known response body format(s).

Corresponds with GET /orgs/{org}/hooks/{hookId}/deliveries/{deliveryId} (the `GetOrgWebhookDelivery` operationId).

func (*ClientWithResponses) GetOrgWebhookWithResponse

func (c *ClientWithResponses) GetOrgWebhookWithResponse(ctx context.Context, org OrgParam, hookId WebhookIdParam, reqEditors ...RequestEditorFn) (*GetOrgWebhookResponse, error)

GetOrgWebhookWithResponse Legge un webhook di un'organizzazione

Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Un webhook di un altro repo o organizzazione risponde 404.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /orgs/{org}/hooks/{hookId} (the `GetOrgWebhook` operationId).

func (*ClientWithResponses) GetOrganizationWithResponse

func (c *ClientWithResponses) GetOrganizationWithResponse(ctx context.Context, org OrgParam, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error)

GetOrganizationWithResponse Legge un'organizzazione

Returns a wrapper object for the known response body format(s).

Corresponds with GET /orgs/{org} (the `GetOrganization` operationId).

func (*ClientWithResponses) GetRepoMirrorWithResponse

func (c *ClientWithResponses) GetRepoMirrorWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam, reqEditors ...RequestEditorFn) (*GetRepoMirrorResponse, error)

GetRepoMirrorWithResponse Legge un mirror in push (con il suo stato)

Serve `admin` sul repo (V8). E' l'operazione di stato: `state`, `lastAttemptAt`, `lastSuccessAt`, `lastError` e `lastPushed` (ref → SHA spinti con l'ultimo push riuscito). Un mirror di un altro repo risponde 404.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/mirrors/{mirrorId} (the `GetRepoMirror` operationId).

func (*ClientWithResponses) GetRepoWatchWithResponse

func (c *ClientWithResponses) GetRepoWatchWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*GetRepoWatchResponse, error)

GetRepoWatchWithResponse Watch del repo

Come l'utente corrente segue il repo (C3): `participating` (default), `all` o `ignore`. Serve `read` sul repo; un repo che non si legge risponde 404.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/watch (the `GetRepoWatch` operationId).

func (*ClientWithResponses) GetRepoWebhookDeliveryWithResponse

func (c *ClientWithResponses) GetRepoWebhookDeliveryWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, deliveryId WebhookDeliveryIdParam, reqEditors ...RequestEditorFn) (*GetRepoWebhookDeliveryResponse, error)

GetRepoWebhookDeliveryWithResponse Dettaglio di una consegna di un repo

Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Con la richiesta inviata (intestazioni e payload) e la risposta ricevuta, troncata a 4 KB (C8).

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/hooks/{hookId}/deliveries/{deliveryId} (the `GetRepoWebhookDelivery` operationId).

func (*ClientWithResponses) GetRepoWebhookWithResponse

func (c *ClientWithResponses) GetRepoWebhookWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, reqEditors ...RequestEditorFn) (*GetRepoWebhookResponse, error)

GetRepoWebhookWithResponse Legge un webhook di un repo

Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Un webhook di un altro repo o organizzazione risponde 404.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/hooks/{hookId} (the `GetRepoWebhook` operationId).

func (*ClientWithResponses) GetRepositoryArchiveWithResponse

func (c *ClientWithResponses) GetRepositoryArchiveWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryArchiveParams, reqEditors ...RequestEditorFn) (*GetRepositoryArchiveResponse, error)

GetRepositoryArchiveWithResponse Archivio ZIP o tar.gz di un ref (streaming)

Archivio dell'albero a `ref` (branch, tag o commit, regola B3), in ZIP (default) o tar.gz secondo `format`, prodotto e inviato in streaming (nessun buffer in memoria). `Content-Disposition: attachment` con nome `<repo>-<ref>.zip` o `<repo>-<ref>.tar.gz` (un `/` nel ref diventa `-`); stesse intestazioni di sicurezza di `getRepositoryRaw`. Sono questi gli indirizzi di scaricamento dei tag (`Tag.zipUrl`, `Tag.tarGzUrl`, regola B7). Servono sessione o token con `read`. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/archive (the `GetRepositoryArchive` operationId).

func (*ClientWithResponses) GetRepositoryBlameWithResponse

func (c *ClientWithResponses) GetRepositoryBlameWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryBlameParams, reqEditors ...RequestEditorFn) (*GetRepositoryBlameResponse, error)

GetRepositoryBlameWithResponse Blame di un file

Per ogni intervallo di righe di `path` a `ref`, il commit che l'ha scritto per ultimo (mockup 08, scheda Blame). Un file binario o oltre 1 MB risponde 400 `blame_unavailable`. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/blame (the `GetRepositoryBlame` operationId).

func (*ClientWithResponses) GetRepositoryBranchesWithResponse

func (c *ClientWithResponses) GetRepositoryBranchesWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*GetRepositoryBranchesResponse, error)

GetRepositoryBranchesWithResponse Branch del repo, con conteggi

Tutti i branch, con il branch principale (R4) per primo; `total` e' il conteggio (mockup 07: "4 branches"). Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. Non ha `ref`: elenca tutti i branch.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/branches (the `GetRepositoryBranches` operationId).

func (*ClientWithResponses) GetRepositoryCommitPatchWithResponse

func (c *ClientWithResponses) GetRepositoryCommitPatchWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, sha CommitShaParam, params *GetRepositoryCommitPatchParams, reqEditors ...RequestEditorFn) (*GetRepositoryCommitPatchResponse, error)

GetRepositoryCommitPatchWithResponse Diff completo di un commit, scaricabile come .diff o .patch (streaming)

Regola B6: il diff intero del commit, senza i limiti di `getRepositoryCommit` (nessun file chiuso, nessun troncamento), in streaming. `Content-Disposition: attachment` con nome `<sha12>.diff` o `.patch` (lo imposta il servizio git) secondo `format`: `diff` e' `gitGetCommitDiff`, `patch` e' `gitGetCommitPatch`, passati in streaming da core (le interne le definisce GIT-82). Stesse intestazioni di sicurezza di `getRepositoryRaw`. Un commit senza genitori e' confrontato con l'albero vuoto. Un merge e' confrontato con il primo genitore. 400 se `sha` non e' esadecimale, 404 se non esiste. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/commits/{sha}/patch (the `GetRepositoryCommitPatch` operationId).

func (*ClientWithResponses) GetRepositoryCommitWithResponse

func (c *ClientWithResponses) GetRepositoryCommitWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, sha CommitShaParam, params *GetRepositoryCommitParams, reqEditors ...RequestEditorFn) (*GetRepositoryCommitResponse, error)

GetRepositoryCommitWithResponse Dettaglio di un commit con diff per file

Messaggio, autore e diff per file (mockup 10), con i limiti progressivi della regola B6 (costanti in `x-code-read-limits`; le righe sono quelle cambiate, aggiunte piu' tolte). Un file e' `collapsed` (chiuso di default) con `collapseReason` `large` se ha oltre 500 righe cambiate, `lock` o `generated` per un file di lock o generato (elenco in docs/repos.md); il patch c'e' comunque, se non e' stato omesso per i limiti. Oltre 300 file o 20 000 righe cambiate in totale `listOnly` e' true: solo l'elenco dei file con righe aggiunte e tolte, senza patch (il diff intero si scarica con `getRepositoryCommitPatch`). Resta il limite di 1 MB di patch per file (`truncated`). `ignoreWhitespace` calcola il diff con `git diff -w` (`ignoreWhitespace` e' riportato nella risposta). `path` restringe `files` a quel file. `sha` e' lo sha completo o un prefisso univoco di almeno 7 caratteri; 400 se non e' esadecimale, 404 se non esiste. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/commits/{sha} (the `GetRepositoryCommit` operationId).

func (*ClientWithResponses) GetRepositoryCommitsWithResponse

func (c *ClientWithResponses) GetRepositoryCommitsWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryCommitsParams, reqEditors ...RequestEditorFn) (*GetRepositoryCommitsResponse, error)

GetRepositoryCommitsWithResponse Storico dei commit, paginato

Commit raggiungibili da `ref`, dal piu' recente (mockup 09). Filtri `author` (nome o email, senza distinguere maiuscole) e `path` (solo i commit che toccano quel percorso). Pagina di default 30, massimo 100. Ogni autore porta `user` se la sua email corrisponde a un utente GitStack, altrimenti null. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/commits (the `GetRepositoryCommits` operationId).

func (*ClientWithResponses) GetRepositoryFileWithResponse

func (c *ClientWithResponses) GetRepositoryFileWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryFileParams, reqEditors ...RequestEditorFn) (*GetRepositoryFileResponse, error)

GetRepositoryFileWithResponse Contenuto di un file

Contenuto di `path` a `ref` con dimensione, tipo e ultimo commit (mockup 08). Regola B1: la risposta dice sempre in `display` come mostrarlo. Testo fino a 1 MB (1 048 576 byte): `highlight`, `content` intero. Testo da 1 MB a 5 MB (5 242 880 byte): `plain`, `content` intero da mostrare senza evidenziazione. Testo oltre 5 MB: `download`, nessun `content` e `truncated` true (solo scaricamento con `raw`). Immagini comuni (PNG, JPEG, GIF, WebP, SVG; `kind` `image`) fino a 1 MB: `display` `image`, `content` in base64 (`encoding` `base64`) e `mimeType`, cosi' la UI le mostra come immagine anche se `raw` le serve come allegato; oltre 1 MB `download`. Altri binari: `kind` `binary`, `download`, nessun `content`. `size` e' sempre la dimensione reale. 404 se `path` non esiste o non e' un file. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/contents (the `GetRepositoryFile` operationId).

func (*ClientWithResponses) GetRepositoryLanguagesWithResponse

func (c *ClientWithResponses) GetRepositoryLanguagesWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryLanguagesParams, reqEditors ...RequestEditorFn) (*GetRepositoryLanguagesResponse, error)

GetRepositoryLanguagesWithResponse Lingue del repo

Byte per linguaggio al branch principale o a `ref`, con la percentuale sul totale, in ordine decrescente (pannello About, mockup 07). Un repo vuoto risponde lista vuota. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/languages (the `GetRepositoryLanguages` operationId).

func (*ClientWithResponses) GetRepositoryRawByPathWithResponse

func (c *ClientWithResponses) GetRepositoryRawByPathWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, refAndPath RefAndPathParam, reqEditors ...RequestEditorFn) (*GetRepositoryRawByPathResponse, error)

GetRepositoryRawByPathWithResponse Contenuto grezzo di un file, per indirizzo (streaming)

Forma a indirizzo di `getRepositoryRaw` (regola B3): il browser la raggiunge come `/<owner>/<repo>/raw/<ref>/<percorso>` (la riscrive il container web, vedi docs/repos.md), l'API come `/v1/repos/<owner>/<repo>/raw/<ref>/<percorso>`. Stesse regole di sicurezza, stessi byte e stesse intestazioni di `getRepositoryRaw` (`text/plain` o allegato, `nosniff`, `Content-Security-Policy: sandbox`). `refAndPath` occupa piu' segmenti: il router di core e la tabella del gateway lo trattano come coda (`x-path-tail`), non come un segmento solo. Servono sessione o token con `read`. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. Un ref che non corrisponde a nessun branch, tag o sha risponde 404 `ref_not_found`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/raw/{refAndPath} (the `GetRepositoryRawByPath` operationId).

func (*ClientWithResponses) GetRepositoryRawWithResponse

func (c *ClientWithResponses) GetRepositoryRawWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryRawParams, reqEditors ...RequestEditorFn) (*GetRepositoryRawResponse, error)

GetRepositoryRawWithResponse Contenuto grezzo di un file (streaming)

Byte del file `path` a `ref`, senza limite di dimensione, in streaming (nessun buffer in memoria), `Content-Length` quando noto. Regola B3, mai servito come pagina eseguibile: un file di testo (non SVG, non binario) esce come `text/plain; charset=utf-8` in linea; qualunque altro (binari, immagini, SVG compreso) come `application/octet-stream` con `Content-Disposition: attachment`. In ogni caso `X-Content-Type-Options: nosniff` e `Content-Security-Policy: sandbox`. Servono sessione o token con `read` (nessun link anonimo). Forma con query, per la SPA e i client; l'indirizzo pubblico per i link e' `getRepositoryRawByPath`. 404 se `path` non esiste o non e' un file. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/raw (the `GetRepositoryRaw` operationId).

func (*ClientWithResponses) GetRepositoryReadmeWithResponse

func (c *ClientWithResponses) GetRepositoryReadmeWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryReadmeParams, reqEditors ...RequestEditorFn) (*GetRepositoryReadmeResponse, error)

GetRepositoryReadmeWithResponse README di una cartella

Il README della cartella `path` (radice se assente), cercato come `README.md`, `README`, `README.txt` (senza distinguere maiuscole), con le stesse regole B1 di `contents` (`kind`, `display`, limiti 1 MB e 5 MB). 404 se non c'e'. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/readme (the `GetRepositoryReadme` operationId).

func (*ClientWithResponses) GetRepositoryTagsWithResponse

func (c *ClientWithResponses) GetRepositoryTagsWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*GetRepositoryTagsResponse, error)

GetRepositoryTagsWithResponse Tag del repo, con conteggi

Tutti i tag, dal piu' recente; `total` e' il conteggio (mockup 07: "7 tags"). Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. Non ha `ref`: elenca tutti i tag.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/tags (the `GetRepositoryTags` operationId).

func (*ClientWithResponses) GetRepositoryTreeWithResponse

func (c *ClientWithResponses) GetRepositoryTreeWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryTreeParams, reqEditors ...RequestEditorFn) (*GetRepositoryTreeResponse, error)

GetRepositoryTreeWithResponse Albero di una cartella con l'ultimo commit per voce

Voci della cartella `path` (radice se assente) a `ref`, con l'ultimo commit che ha toccato ciascuna (mockup 07). Al massimo 1 000 voci: oltre, `truncated` e' true. Ordine: cartelle, poi file, per nome. 404 se `path` non esiste o non e' una cartella. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/tree (the `GetRepositoryTree` operationId).

func (*ClientWithResponses) GetRepositoryWithResponse

func (c *ClientWithResponses) GetRepositoryWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*GetRepositoryResponse, error)

GetRepositoryWithResponse Legge un repo per owner/nome

Un repo che l'utente non puo' leggere risponde 404, non 403, per non rivelarne l'esistenza.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo} (the `GetRepository` operationId).

func (*ClientWithResponses) GetResourceWithResponse

func (c *ClientWithResponses) GetResourceWithResponse(ctx context.Context, resourceId ResourceIdParam, reqEditors ...RequestEditorFn) (*GetResourceResponse, error)

GetResourceWithResponse Legge una risorsa

Returns a wrapper object for the known response body format(s).

Corresponds with GET /resources/{resourceId} (the `GetResource` operationId).

func (*ClientWithResponses) GetSshKeyWithResponse

func (c *ClientWithResponses) GetSshKeyWithResponse(ctx context.Context, keyId SshKeyIdParam, reqEditors ...RequestEditorFn) (*GetSshKeyResponse, error)

GetSshKeyWithResponse Legge una chiave SSH

Returns a wrapper object for the known response body format(s).

Corresponds with GET /user/ssh-keys/{keyId} (the `GetSshKey` operationId).

func (*ClientWithResponses) GetTeamWithResponse

func (c *ClientWithResponses) GetTeamWithResponse(ctx context.Context, org OrgParam, team TeamParam, reqEditors ...RequestEditorFn) (*GetTeamResponse, error)

GetTeamWithResponse Legge un team

Returns a wrapper object for the known response body format(s).

Corresponds with GET /orgs/{org}/teams/{team} (the `GetTeam` operationId).

func (*ClientWithResponses) GetUserAccessSourcesWithBodyWithResponse

func (c *ClientWithResponses) GetUserAccessSourcesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserAccessSourcesResponse, error)

GetUserAccessSourcesWithBodyWithResponse Risorse raggiungibili da un utente, con ruolo e fonti

Per core (`getUserAccess`): per ogni risorsa con un grant o un attributo che riguarda l'utente, il ruolo effettivo e le fonti (stesse regole di `checkPermission`). Per l'amministratore di sistema `admin` e' vero e `items` e' vuoto (core elenca tutti i repo). Utente disattivato: nessun elemento. Utente inesistente: 404.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /internal/permissions/user-access (the `GetUserAccessSources` operationId).

func (*ClientWithResponses) GetUserAccessSourcesWithResponse

func (c *ClientWithResponses) GetUserAccessSourcesWithResponse(ctx context.Context, body GetUserAccessSourcesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserAccessSourcesResponse, error)

GetUserAccessSourcesWithResponse Risorse raggiungibili da un utente, con ruolo e fonti

Per core (`getUserAccess`): per ogni risorsa con un grant o un attributo che riguarda l'utente, il ruolo effettivo e le fonti (stesse regole di `checkPermission`). Per l'amministratore di sistema `admin` e' vero e `items` e' vuoto (core elenca tutti i repo). Utente disattivato: nessun elemento. Utente inesistente: 404.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /internal/permissions/user-access (the `GetUserAccessSources` operationId).

func (*ClientWithResponses) GetUserAccessWithResponse

func (c *ClientWithResponses) GetUserAccessWithResponse(ctx context.Context, username UsernameParam, params *GetUserAccessParams, reqEditors ...RequestEditorFn) (*GetUserAccessResponse, error)

GetUserAccessWithResponse Accesso effettivo di un utente ai repository

Solo l'amministratore dell'installazione (403 agli altri, anche per se stessi), scope `read:user`. Per ogni repository non eliminato che l'utente `username` (persona o agent) puo' raggiungere: il ruolo effettivo, il piu' alto fra le fonti (P1-P6), e l'elenco delle fonti (`sources`): grant diretto, grant di un team di cui e' membro (o di un'organizzazione di cui e' owner), owner del repo (organizzazione o repo personale), visibilita' interna, oppure amministratore dell'installazione. Un utente disattivato non ha accesso. 404 se l'utente non esiste. Paginazione come `GET /repos`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /users/{username}/access (the `GetUserAccess` operationId).

func (*ClientWithResponses) GetUserWithResponse

func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, username UsernameParam, reqEditors ...RequestEditorFn) (*GetUserResponse, error)

GetUserWithResponse Legge il profilo di un utente

Scope `read:user`. L'email e i campi amministrativi compaiono solo per l'utente stesso e per gli amministratori.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /users/{username} (the `GetUser` operationId).

func (*ClientWithResponses) GitCreateRepoWithBodyWithResponse

func (c *ClientWithResponses) GitCreateRepoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GitCreateRepoResponse, error)

GitCreateRepoWithBodyWithResponse Crea il repo su disco (per core)

Implementata a mano dal servizio git (non generata). Crea il bare repo e, se richiesto (R5), il primo commit su `defaultBranch`.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /internal/git/repos (the `GitCreateRepo` operationId).

func (*ClientWithResponses) GitCreateRepoWithResponse

func (c *ClientWithResponses) GitCreateRepoWithResponse(ctx context.Context, body GitCreateRepoJSONRequestBody, reqEditors ...RequestEditorFn) (*GitCreateRepoResponse, error)

GitCreateRepoWithResponse Crea il repo su disco (per core)

Implementata a mano dal servizio git (non generata). Crea il bare repo e, se richiesto (R5), il primo commit su `defaultBranch`.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /internal/git/repos (the `GitCreateRepo` operationId).

func (*ClientWithResponses) GitDeleteRepoWithResponse

func (c *ClientWithResponses) GitDeleteRepoWithResponse(ctx context.Context, repoId GitRepoIdParam, reqEditors ...RequestEditorFn) (*GitDeleteRepoResponse, error)

GitDeleteRepoWithResponse Cancella definitivamente un repo (solo dal cestino)

Risponde 409 se il repo non e' nel cestino.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /internal/git/repos/{repoId} (the `GitDeleteRepo` operationId).

func (*ClientWithResponses) GitGetArchiveWithResponse

func (c *ClientWithResponses) GitGetArchiveWithResponse(ctx context.Context, repoId GitRepoIdParam, params *GitGetArchiveParams, reqEditors ...RequestEditorFn) (*GitGetArchiveResponse, error)

GitGetArchiveWithResponse Archivio ZIP o tar.gz di un ref (streaming) (per core)

Corrispondente interno di `getRepositoryArchive`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Archivio dell'albero a `ref`, in ZIP (default) o tar.gz secondo `format`, in streaming (nessun buffer in memoria). Il nome del file (`Content-Disposition`) lo mette il servizio con il nome del repo che gli passa core in `name`; stesse intestazioni di sicurezza di `getRepositoryRaw`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /internal/git/repos/{repoId}/archive (the `GitGetArchive` operationId).

func (*ClientWithResponses) GitGetBlameWithResponse

func (c *ClientWithResponses) GitGetBlameWithResponse(ctx context.Context, repoId GitRepoIdParam, params *GitGetBlameParams, reqEditors ...RequestEditorFn) (*GitGetBlameResponse, error)

GitGetBlameWithResponse Blame di un file (per core)

Corrispondente interno di `getRepositoryBlame`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Per ogni intervallo di righe di `path` a `ref`, il commit che l'ha scritto per ultimo (mockup 08, scheda Blame). Un file binario o oltre 1 MB risponde 400 `blame_unavailable`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /internal/git/repos/{repoId}/blame (the `GitGetBlame` operationId).

func (*ClientWithResponses) GitGetBranchesWithResponse

func (c *ClientWithResponses) GitGetBranchesWithResponse(ctx context.Context, repoId GitRepoIdParam, reqEditors ...RequestEditorFn) (*GitGetBranchesResponse, error)

GitGetBranchesWithResponse Branch del repo, con conteggi (per core)

Corrispondente interno di `getRepositoryBranches`: parla solo per repoId e non conosce utenti ne' permessi. Gli autori non portano `user`: lo aggiunge core. Tutti i branch, con il branch principale (R4) per primo; `total` e' il conteggio (mockup 07: "4 branches").

Returns a wrapper object for the known response body format(s).

Corresponds with GET /internal/git/repos/{repoId}/branches (the `GitGetBranches` operationId).

func (*ClientWithResponses) GitGetCommitDiffWithResponse

func (c *ClientWithResponses) GitGetCommitDiffWithResponse(ctx context.Context, repoId GitRepoIdParam, sha CommitShaParam, params *GitGetCommitDiffParams, reqEditors ...RequestEditorFn) (*GitGetCommitDiffResponse, error)

GitGetCommitDiffWithResponse Diff completo di un commit come .diff, in streaming (per core)

B6: `git diff --binary` del commit contro il primo genitore (contro l'albero vuoto per il commit iniziale), accettato da `git apply`. Content-Type `text/plain`, Content-Disposition `attachment` con nome `<sha12>.diff`, `X-Content-Type-Options: nosniff`. Nessun limite di righe e nessun buffer in memoria. Gli errori (400, 404) escono come JSON prima del primo byte; un errore a meta' interrompe la risposta.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /internal/git/repos/{repoId}/commits/{sha}/diff (the `GitGetCommitDiff` operationId).

func (*ClientWithResponses) GitGetCommitPatchWithResponse

func (c *ClientWithResponses) GitGetCommitPatchWithResponse(ctx context.Context, repoId GitRepoIdParam, sha CommitShaParam, params *GitGetCommitPatchParams, reqEditors ...RequestEditorFn) (*GitGetCommitPatchResponse, error)

GitGetCommitPatchWithResponse Patch di un commit in formato git format-patch, in streaming (per core)

B6: come `gitGetCommitDiff`, ma con messaggio e autore in forma di email (`git format-patch --stdout`; per un commit di merge, contro il primo genitore). Nome `<sha12>.patch`. Accettato da `git apply` e `git am`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /internal/git/repos/{repoId}/commits/{sha}/patch (the `GitGetCommitPatch` operationId).

func (*ClientWithResponses) GitGetCommitWithResponse

func (c *ClientWithResponses) GitGetCommitWithResponse(ctx context.Context, repoId GitRepoIdParam, sha CommitShaParam, params *GitGetCommitParams, reqEditors ...RequestEditorFn) (*GitGetCommitResponse, error)

GitGetCommitWithResponse Dettaglio di un commit con diff per file (per core)

Corrispondente interno di `getRepositoryCommit`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Messaggio, autore e diff per file (mockup 10). Limiti: al massimo 300 file e 20 000 righe di diff in totale, e 1 MB per file; oltre, il file o la risposta sono marcati `truncated` e il patch e' omesso o parziale. `sha` e' lo sha completo o un prefisso univoco di almeno 7 caratteri; 400 se non e' esadecimale, 404 se non esiste.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /internal/git/repos/{repoId}/commits/{sha} (the `GitGetCommit` operationId).

func (*ClientWithResponses) GitGetCommitsWithResponse

func (c *ClientWithResponses) GitGetCommitsWithResponse(ctx context.Context, repoId GitRepoIdParam, params *GitGetCommitsParams, reqEditors ...RequestEditorFn) (*GitGetCommitsResponse, error)

GitGetCommitsWithResponse Storico dei commit, paginato (per core)

Corrispondente interno di `getRepositoryCommits`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Commit raggiungibili da `ref`, dal piu' recente (mockup 09). Filtri `author` (nome o email, senza distinguere maiuscole) e `path` (solo i commit che toccano quel percorso). Pagina di default 30, massimo 100. Ogni autore porta `user` se la sua email corrisponde a un utente GitStack, altrimenti null.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /internal/git/repos/{repoId}/commits (the `GitGetCommits` operationId).

func (*ClientWithResponses) GitGetFileWithResponse

func (c *ClientWithResponses) GitGetFileWithResponse(ctx context.Context, repoId GitRepoIdParam, params *GitGetFileParams, reqEditors ...RequestEditorFn) (*GitGetFileResponse, error)

GitGetFileWithResponse Contenuto di un file (per core)

Corrispondente interno di `getRepositoryFile`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Stesse regole B1 di `getRepositoryFile` per `kind`, `display`, `content`, `encoding`, `mimeType` e `truncated` (1 MB evidenziato, 5 MB testo semplice, immagini inline fino a 1 MB). 404 se `path` non esiste o non e' un file.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /internal/git/repos/{repoId}/contents (the `GitGetFile` operationId).

func (*ClientWithResponses) GitGetLanguagesWithResponse

func (c *ClientWithResponses) GitGetLanguagesWithResponse(ctx context.Context, repoId GitRepoIdParam, params *GitGetLanguagesParams, reqEditors ...RequestEditorFn) (*GitGetLanguagesResponse, error)

GitGetLanguagesWithResponse Lingue del repo (per core)

Corrispondente interno di `getRepositoryLanguages`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Byte per linguaggio al branch principale o a `ref`, con la percentuale sul totale, in ordine decrescente (pannello About, mockup 07). Un repo vuoto risponde lista vuota.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /internal/git/repos/{repoId}/languages (the `GitGetLanguages` operationId).

func (*ClientWithResponses) GitGetRawWithResponse

func (c *ClientWithResponses) GitGetRawWithResponse(ctx context.Context, repoId GitRepoIdParam, params *GitGetRawParams, reqEditors ...RequestEditorFn) (*GitGetRawResponse, error)

GitGetRawWithResponse Contenuto grezzo di un file (streaming) (per core)

Corrispondente interno di `getRepositoryRaw`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Byte del file `path` a `ref`, senza limite di dimensione, in streaming (nessun buffer in memoria), `Content-Length` quando noto. Le intestazioni di sicurezza della regola B3 le scrive questo servizio (non nginx, ne' core le riscrive): vedi `getRepositoryRaw`. 404 se `path` non esiste o non e' un file.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /internal/git/repos/{repoId}/raw (the `GitGetRaw` operationId).

func (*ClientWithResponses) GitGetReadmeWithResponse

func (c *ClientWithResponses) GitGetReadmeWithResponse(ctx context.Context, repoId GitRepoIdParam, params *GitGetReadmeParams, reqEditors ...RequestEditorFn) (*GitGetReadmeResponse, error)

GitGetReadmeWithResponse README di una cartella (per core)

Corrispondente interno di `getRepositoryReadme`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Il README della cartella `path` (radice se assente), cercato come `README.md`, `README`, `README.txt` (senza distinguere maiuscole), con le stesse regole B1 di `contents`. 404 se non c'e'.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /internal/git/repos/{repoId}/readme (the `GitGetReadme` operationId).

func (*ClientWithResponses) GitGetRepoWithResponse

func (c *ClientWithResponses) GitGetRepoWithResponse(ctx context.Context, repoId GitRepoIdParam, reqEditors ...RequestEditorFn) (*GitGetRepoResponse, error)

GitGetRepoWithResponse Stato di un repo su disco

Returns a wrapper object for the known response body format(s).

Corresponds with GET /internal/git/repos/{repoId} (the `GitGetRepo` operationId).

func (*ClientWithResponses) GitGetTagsWithResponse

func (c *ClientWithResponses) GitGetTagsWithResponse(ctx context.Context, repoId GitRepoIdParam, reqEditors ...RequestEditorFn) (*GitGetTagsResponse, error)

GitGetTagsWithResponse Tag del repo, con conteggi (per core)

Corrispondente interno di `getRepositoryTags`: parla solo per repoId e non conosce utenti ne' permessi. Gli autori non portano `user`: lo aggiunge core. Tutti i tag, dal piu' recente; `total` e' il conteggio (mockup 07: "7 tags").

Returns a wrapper object for the known response body format(s).

Corresponds with GET /internal/git/repos/{repoId}/tags (the `GitGetTags` operationId).

func (*ClientWithResponses) GitGetTreeWithResponse

func (c *ClientWithResponses) GitGetTreeWithResponse(ctx context.Context, repoId GitRepoIdParam, params *GitGetTreeParams, reqEditors ...RequestEditorFn) (*GitGetTreeResponse, error)

GitGetTreeWithResponse Albero di una cartella con l'ultimo commit per voce (per core)

Corrispondente interno di `getRepositoryTree`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Voci della cartella `path` (radice se assente) a `ref`, con l'ultimo commit che ha toccato ciascuna (mockup 07). Al massimo 1 000 voci: oltre, `truncated` e' true. Ordine: cartelle, poi file, per nome. 404 se `path` non esiste o non e' una cartella.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /internal/git/repos/{repoId}/tree (the `GitGetTree` operationId).

func (*ClientWithResponses) GitListFilesWithResponse

func (c *ClientWithResponses) GitListFilesWithResponse(ctx context.Context, repoId GitRepoIdParam, params *GitListFilesParams, reqEditors ...RequestEditorFn) (*GitListFilesResponse, error)

GitListFilesWithResponse Percorsi di tutti i file di un ref (per core)

Corrispondente interno di `listRepositoryFiles`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Stesse regole B5 (al massimo 50 000 percorsi, `truncated`).

Returns a wrapper object for the known response body format(s).

Corresponds with GET /internal/git/repos/{repoId}/files (the `GitListFiles` operationId).

func (*ClientWithResponses) GitRestoreRepoWithResponse

func (c *ClientWithResponses) GitRestoreRepoWithResponse(ctx context.Context, repoId GitRepoIdParam, reqEditors ...RequestEditorFn) (*GitRestoreRepoResponse, error)

GitRestoreRepoWithResponse Ripristina un repo dal cestino (R2)

Returns a wrapper object for the known response body format(s).

Corresponds with POST /internal/git/repos/{repoId}/restore (the `GitRestoreRepo` operationId).

func (*ClientWithResponses) GitSearchCodeWithResponse

func (c *ClientWithResponses) GitSearchCodeWithResponse(ctx context.Context, repoId GitRepoIdParam, params *GitSearchCodeParams, reqEditors ...RequestEditorFn) (*GitSearchCodeResponse, error)

GitSearchCodeWithResponse Cerca un testo nel codice di un ref (per core)

Corrispondente interno di `searchRepositoryCode`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Stesse regole B5 (100 risultati, 10 secondi, senza indice).

Returns a wrapper object for the known response body format(s).

Corresponds with GET /internal/git/repos/{repoId}/search (the `GitSearchCode` operationId).

func (*ClientWithResponses) GitTrashRepoWithResponse

func (c *ClientWithResponses) GitTrashRepoWithResponse(ctx context.Context, repoId GitRepoIdParam, reqEditors ...RequestEditorFn) (*GitTrashRepoResponse, error)

GitTrashRepoWithResponse Sposta un repo nel cestino (R2)

Returns a wrapper object for the known response body format(s).

Corresponds with POST /internal/git/repos/{repoId}/trash (the `GitTrashRepo` operationId).

func (*ClientWithResponses) GrantResourceCreatorWithBodyWithResponse

func (c *ClientWithResponses) GrantResourceCreatorWithBodyWithResponse(ctx context.Context, resourceId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GrantResourceCreatorResponse, error)

GrantResourceCreatorWithBodyWithResponse Assegna il ruolo admin al creatore di una risorsa

Usata da core dopo la creazione di una risorsa: l'utente indicato riceve il grant admin (granted_by = lo stesso utente). Idempotente: se l'utente ha gia' un grant sulla risorsa lo porta ad admin e risponde 200.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /internal/resources/{resourceId}/grants/creator (the `GrantResourceCreator` operationId).

func (*ClientWithResponses) GrantResourceCreatorWithResponse

func (c *ClientWithResponses) GrantResourceCreatorWithResponse(ctx context.Context, resourceId openapi_types.UUID, body GrantResourceCreatorJSONRequestBody, reqEditors ...RequestEditorFn) (*GrantResourceCreatorResponse, error)

GrantResourceCreatorWithResponse Assegna il ruolo admin al creatore di una risorsa

Usata da core dopo la creazione di una risorsa: l'utente indicato riceve il grant admin (granted_by = lo stesso utente). Idempotente: se l'utente ha gia' un grant sulla risorsa lo porta ad admin e risponde 200.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /internal/resources/{resourceId}/grants/creator (the `GrantResourceCreator` operationId).

func (*ClientWithResponses) ListDeletedRepositoriesWithResponse

func (c *ClientWithResponses) ListDeletedRepositoriesWithResponse(ctx context.Context, params *ListDeletedRepositoriesParams, reqEditors ...RequestEditorFn) (*ListDeletedRepositoriesResponse, error)

ListDeletedRepositoriesWithResponse Elenca i repo eliminati e ancora ripristinabili

Repo eliminati da meno di 7 giorni (R2) su cui l'utente ha il ruolo `admin` (R12). Con `owner` solo quelli di quell'owner.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/deleted (the `ListDeletedRepositories` operationId).

func (*ClientWithResponses) ListIssueCommentVersionsWithResponse

func (c *ClientWithResponses) ListIssueCommentVersionsWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, commentId IssueCommentIdParam, reqEditors ...RequestEditorFn) (*ListIssueCommentVersionsResponse, error)

ListIssueCommentVersionsWithResponse Versioni precedenti del testo di un commento

Solo con `admin` (I4), come `listIssueVersions`. Anche per i commenti eliminati.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/issues/{number}/comments/{commentId}/versions (the `ListIssueCommentVersions` operationId).

func (*ClientWithResponses) ListIssueCommentsWithResponse

func (c *ClientWithResponses) ListIssueCommentsWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, params *ListIssueCommentsParams, reqEditors ...RequestEditorFn) (*ListIssueCommentsResponse, error)

ListIssueCommentsWithResponse Commenti della issue

Dal piu' vecchio al piu' recente. Un commento eliminato resta con `deleted: true` e testo vuoto (traccia "comment deleted", I4). Paginazione come `GET /repos`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/issues/{number}/comments (the `ListIssueComments` operationId).

func (*ClientWithResponses) ListIssueEventsWithResponse

func (c *ClientWithResponses) ListIssueEventsWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, params *ListIssueEventsParams, reqEditors ...RequestEditorFn) (*ListIssueEventsResponse, error)

ListIssueEventsWithResponse Cronologia degli eventi

Eventi in ordine cronologico crescente: apertura, chiusura (con motivo), riapertura, etichette, assegnatari, milestone, modifica del titolo, blocco, `comment_deleted` ("comment deleted", I4) e, da M-06, `referenced_from`, `commit_linked` e `closed_by_commit` (C1, C2). Le issues nascoste: 404 a chi non e' `admin`. Paginazione come `GET /repos`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/issues/{number}/events (the `ListIssueEvents` operationId).

func (*ClientWithResponses) ListIssueTemplatesWithResponse

func (c *ClientWithResponses) ListIssueTemplatesWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*ListIssueTemplatesResponse, error)

ListIssueTemplatesWithResponse Modelli di issue del repo

Modelli Markdown in `.gitstack/ISSUE_TEMPLATE/` sul branch principale (I11), letti da core tramite il servizio git. Vuoto se la cartella non c'e' o il repo e' vuoto. Il nome e' il file senza estensione. Un modello propone titolo, etichette e testo iniziale: la UI, l'API e `gs` li usano per precompilare `createIssue`, che non li impone.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/issue-templates (the `ListIssueTemplates` operationId).

func (*ClientWithResponses) ListIssueVersionsWithResponse

func (c *ClientWithResponses) ListIssueVersionsWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*ListIssueVersionsResponse, error)

ListIssueVersionsWithResponse Versioni precedenti del testo della issue

Solo con `admin` (I4): 403 per chi legge soltanto. Dalla piu' recente alla piu' vecchia; la versione corrente non e' nell'elenco, e' il testo della issue. Vuoto se non e' mai stata modificata.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/issues/{number}/versions (the `ListIssueVersions` operationId).

func (*ClientWithResponses) ListIssuesWithResponse

func (c *ClientWithResponses) ListIssuesWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *ListIssuesParams, reqEditors ...RequestEditorFn) (*ListIssuesResponse, error)

ListIssuesWithResponse Elenca e cerca le issues del repo

Issues del repo con filtri (stato, etichette, assegnatario, autore, milestone) e ricerca nel testo. `q` usa la sintassi di I10 e i filtri espliciti si sommano a quelli di `q`. Le issues nascoste (I4) compaiono solo a chi ha `admin`. Paginazione come `GET /repos`. Un repo che l'utente non puo' leggere, eliminato o inesistente risponde 404 (non 403), per non rivelarne l'esistenza.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/issues (the `ListIssues` operationId).

func (*ClientWithResponses) ListLabelsWithResponse

func (c *ClientWithResponses) ListLabelsWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *ListLabelsParams, reqEditors ...RequestEditorFn) (*ListLabelsResponse, error)

ListLabelsWithResponse Etichette del repo

Con il numero di issues aperte che le usano. Ordinate per nome. Paginazione come `GET /repos`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/labels (the `ListLabels` operationId).

func (*ClientWithResponses) ListMilestonesWithResponse

func (c *ClientWithResponses) ListMilestonesWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *ListMilestonesParams, reqEditors ...RequestEditorFn) (*ListMilestonesResponse, error)

ListMilestonesWithResponse Milestone del repo

Con l'avanzamento: `closedIssues` conta solo le chiuse come `completed`; le `not_planned` e `duplicate` non contano ne' fra le chiuse ne' fra le aperte (I2). Per scadenza crescente, poi per numero.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/milestones (the `ListMilestones` operationId).

func (*ClientWithResponses) ListNotificationsWithResponse

func (c *ClientWithResponses) ListNotificationsWithResponse(ctx context.Context, params *ListNotificationsParams, reqEditors ...RequestEditorFn) (*ListNotificationsResponse, error)

ListNotificationsWithResponse Casella delle notifiche

Notifiche dell'utente corrente, dalla piu' recente (`createdAt` decrescente, poi `id`). Filtri: `reason` (uno o piu' motivi separati da virgola), `state` (`unread` default, `read`, `archived`, `all`; le archiviate compaiono solo con `archived` o `all`) e `repo` (`owner/repo`). Stessa casella e stesse regole per persone e agenti (C4); `gs notification list --json` usa questa operazione. Le notifiche di un repo che l'utente non legge piu' non compaiono e vengono eliminate (C9). `unreadCount` conta le non lette non archiviate dell'utente, con i soli filtri `reason` e `repo`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /notifications (the `ListNotifications` operationId).

func (*ClientWithResponses) ListOidcProvidersWithResponse

func (c *ClientWithResponses) ListOidcProvidersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListOidcProvidersResponse, error)

ListOidcProvidersWithResponse Provider OIDC abilitati

Elenco pubblico per la pagina di login. Nessun segreto.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /auth/oidc/providers (the `ListOidcProviders` operationId).

func (*ClientWithResponses) ListOrgMembersWithResponse

func (c *ClientWithResponses) ListOrgMembersWithResponse(ctx context.Context, org OrgParam, params *ListOrgMembersParams, reqEditors ...RequestEditorFn) (*ListOrgMembersResponse, error)

ListOrgMembersWithResponse Elenca i membri di un'organizzazione

Returns a wrapper object for the known response body format(s).

Corresponds with GET /orgs/{org}/members (the `ListOrgMembers` operationId).

func (*ClientWithResponses) ListOrgOwnersWithResponse

func (c *ClientWithResponses) ListOrgOwnersWithResponse(ctx context.Context, orgId openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListOrgOwnersResponse, error)

ListOrgOwnersWithResponse Elenca gli owner di un'organizzazione

Per core (M-06/G, webhook di organizzazione, C6): chi puo' gestire un webhook di organizzazione sono gli owner, e a loro va la notifica di disattivazione (C7). Restituisce gli id utente degli owner; 404 se l'organizzazione non esiste.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /internal/orgs/{orgId}/owners (the `ListOrgOwners` operationId).

func (*ClientWithResponses) ListOrgWebhookDeliveriesWithResponse

func (c *ClientWithResponses) ListOrgWebhookDeliveriesWithResponse(ctx context.Context, org OrgParam, hookId WebhookIdParam, params *ListOrgWebhookDeliveriesParams, reqEditors ...RequestEditorFn) (*ListOrgWebhookDeliveriesResponse, error)

ListOrgWebhookDeliveriesWithResponse Log delle consegne di un webhook di un'organizzazione

Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Dalla piu' recente. Le consegne si conservano 30 giorni (C7). Filtro per `status`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /orgs/{org}/hooks/{hookId}/deliveries (the `ListOrgWebhookDeliveries` operationId).

func (*ClientWithResponses) ListOrgWebhooksWithResponse

func (c *ClientWithResponses) ListOrgWebhooksWithResponse(ctx context.Context, org OrgParam, params *ListOrgWebhooksParams, reqEditors ...RequestEditorFn) (*ListOrgWebhooksResponse, error)

ListOrgWebhooksWithResponse Elenca i webhook di un'organizzazione

Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Il segreto non torna mai: `hasSecret` dice se c'e'. Paginazione come `GET /repos`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /orgs/{org}/hooks (the `ListOrgWebhooks` operationId).

func (*ClientWithResponses) ListOrganizationsWithResponse

func (c *ClientWithResponses) ListOrganizationsWithResponse(ctx context.Context, params *ListOrganizationsParams, reqEditors ...RequestEditorFn) (*ListOrganizationsResponse, error)

ListOrganizationsWithResponse Elenca le organizzazioni

Le organizzazioni di cui il chiamante e' membro (tutte, per un amministratore). Scope `read:org`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /orgs (the `ListOrganizations` operationId).

func (*ClientWithResponses) ListReadableResourcesWithBodyWithResponse

func (c *ClientWithResponses) ListReadableResourcesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListReadableResourcesResponse, error)

ListReadableResourcesWithBodyWithResponse Risorse leggibili da un utente

Usata da core per filtrare l'elenco delle risorse: `resourceIds` sono le risorse su cui l'utente ha almeno read (grant diretto, via team o via owner dell'organizzazione, owner della risorsa o visibilita' interna: stesse regole di `checkPermission`). `all` e' vero solo per l'amministratore di sistema, e in quel caso `resourceIds` e' vuoto. Un utente inesistente o disattivato riceve `all` falso e nessuna risorsa.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /internal/permissions/readable-resources (the `ListReadableResources` operationId).

func (*ClientWithResponses) ListReadableResourcesWithResponse

func (c *ClientWithResponses) ListReadableResourcesWithResponse(ctx context.Context, body ListReadableResourcesJSONRequestBody, reqEditors ...RequestEditorFn) (*ListReadableResourcesResponse, error)

ListReadableResourcesWithResponse Risorse leggibili da un utente

Usata da core per filtrare l'elenco delle risorse: `resourceIds` sono le risorse su cui l'utente ha almeno read (grant diretto, via team o via owner dell'organizzazione, owner della risorsa o visibilita' interna: stesse regole di `checkPermission`). `all` e' vero solo per l'amministratore di sistema, e in quel caso `resourceIds` e' vuoto. Un utente inesistente o disattivato riceve `all` falso e nessuna risorsa.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /internal/permissions/readable-resources (the `ListReadableResources` operationId).

func (*ClientWithResponses) ListRepoMirrorRunsWithResponse

func (c *ClientWithResponses) ListRepoMirrorRunsWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam, params *ListRepoMirrorRunsParams, reqEditors ...RequestEditorFn) (*ListRepoMirrorRunsResponse, error)

ListRepoMirrorRunsWithResponse Log delle ultime esecuzioni di un mirror in push

Serve `admin` sul repo (V8). Le ultime esecuzioni (al massimo 50 per mirror, 30 giorni), dalla piu' recente. Ogni esecuzione dice l'esito, l'errore ripulito da credenziali e lo SHA di ogni ref. Paginazione come `GET /repos`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/mirrors/{mirrorId}/runs (the `ListRepoMirrorRuns` operationId).

func (*ClientWithResponses) ListRepoMirrorsWithResponse

func (c *ClientWithResponses) ListRepoMirrorsWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *ListRepoMirrorsParams, reqEditors ...RequestEditorFn) (*ListRepoMirrorsResponse, error)

ListRepoMirrorsWithResponse Elenca i mirror in push di un repo

Serve `admin` sul repo (V8); un repo che non si legge risponde 404, uno senza `admin` 403. Il token non torna mai: `hasToken` dice solo che c'e'. Ogni mirror porta lo stato dell'ultimo tentativo (`state`, `lastAttemptAt`, `lastError`, `lastPushed`). Paginazione come `GET /repos`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/mirrors (the `ListRepoMirrors` operationId).

func (*ClientWithResponses) ListRepoWebhookDeliveriesWithResponse

func (c *ClientWithResponses) ListRepoWebhookDeliveriesWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, params *ListRepoWebhookDeliveriesParams, reqEditors ...RequestEditorFn) (*ListRepoWebhookDeliveriesResponse, error)

ListRepoWebhookDeliveriesWithResponse Log delle consegne di un webhook di un repo

Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Dalla piu' recente. Le consegne si conservano 30 giorni (C7). Filtro per `status`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/hooks/{hookId}/deliveries (the `ListRepoWebhookDeliveries` operationId).

func (*ClientWithResponses) ListRepoWebhooksWithResponse

func (c *ClientWithResponses) ListRepoWebhooksWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *ListRepoWebhooksParams, reqEditors ...RequestEditorFn) (*ListRepoWebhooksResponse, error)

ListRepoWebhooksWithResponse Elenca i webhook di un repo

Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Il segreto non torna mai: `hasSecret` dice se c'e'. Paginazione come `GET /repos`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/hooks (the `ListRepoWebhooks` operationId).

func (*ClientWithResponses) ListRepositoriesWithResponse

func (c *ClientWithResponses) ListRepositoriesWithResponse(ctx context.Context, params *ListRepositoriesParams, reqEditors ...RequestEditorFn) (*ListRepositoriesResponse, error)

ListRepositoriesWithResponse Elenca i repo leggibili dall'utente

Repo che l'utente corrente puo' leggere (P1, P3, P6), esclusi quelli eliminati; con `owner` solo quelli di quell'utente o organizzazione. Paginazione come `GET /resources`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos (the `ListRepositories` operationId).

func (*ClientWithResponses) ListRepositoryFilesWithResponse

func (c *ClientWithResponses) ListRepositoryFilesWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *ListRepositoryFilesParams, reqEditors ...RequestEditorFn) (*ListRepositoryFilesResponse, error)

ListRepositoryFilesWithResponse Percorsi di tutti i file di un ref ("Go to file")

Regola B5: i percorsi di tutti i file (non le cartelle) di `ref`, per il "Go to file"; la corrispondenza approssimata la fa il client. Al massimo 50 000 percorsi: oltre, `truncated` e' true. Un repo vuoto risponde lista vuota. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/files (the `ListRepositoryFiles` operationId).

func (*ClientWithResponses) ListResourceGrantsWithResponse

func (c *ClientWithResponses) ListResourceGrantsWithResponse(ctx context.Context, resourceId ResourceIdParam, params *ListResourceGrantsParams, reqEditors ...RequestEditorFn) (*ListResourceGrantsResponse, error)

ListResourceGrantsWithResponse Elenca i grant di una risorsa

Scope `read:resource`; serve almeno il ruolo `admin` sulla risorsa.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /resources/{resourceId}/grants (the `ListResourceGrants` operationId).

func (*ClientWithResponses) ListResourcesWithResponse

func (c *ClientWithResponses) ListResourcesWithResponse(ctx context.Context, params *ListResourcesParams, reqEditors ...RequestEditorFn) (*ListResourcesResponse, error)

ListResourcesWithResponse Elenca le risorse

Elenco paginato delle risorse, con filtro opzionale per tipo (es. `repo`). Il tipo non è vincolato a un insieme fisso: nuove milestone aggiungono nuovi tipi senza cambiare l'endpoint (D15).

Returns a wrapper object for the known response body format(s).

Corresponds with GET /resources (the `ListResources` operationId).

func (*ClientWithResponses) ListSshKeysWithResponse

func (c *ClientWithResponses) ListSshKeysWithResponse(ctx context.Context, params *ListSshKeysParams, reqEditors ...RequestEditorFn) (*ListSshKeysResponse, error)

ListSshKeysWithResponse Elenca le chiavi SSH dell'utente corrente

Returns a wrapper object for the known response body format(s).

Corresponds with GET /user/ssh-keys (the `ListSshKeys` operationId).

func (*ClientWithResponses) ListTeamMembersWithResponse

func (c *ClientWithResponses) ListTeamMembersWithResponse(ctx context.Context, org OrgParam, team TeamParam, params *ListTeamMembersParams, reqEditors ...RequestEditorFn) (*ListTeamMembersResponse, error)

ListTeamMembersWithResponse Elenca i membri di un team

Returns a wrapper object for the known response body format(s).

Corresponds with GET /orgs/{org}/teams/{team}/members (the `ListTeamMembers` operationId).

func (*ClientWithResponses) ListTeamsWithResponse

func (c *ClientWithResponses) ListTeamsWithResponse(ctx context.Context, org OrgParam, params *ListTeamsParams, reqEditors ...RequestEditorFn) (*ListTeamsResponse, error)

ListTeamsWithResponse Elenca i team di un'organizzazione

Returns a wrapper object for the known response body format(s).

Corresponds with GET /orgs/{org}/teams (the `ListTeams` operationId).

func (*ClientWithResponses) ListTokensWithResponse

func (c *ClientWithResponses) ListTokensWithResponse(ctx context.Context, params *ListTokensParams, reqEditors ...RequestEditorFn) (*ListTokensResponse, error)

ListTokensWithResponse Elenca i token personali dell'utente corrente

Scope `read:user`. Mai il valore del token, solo `hint`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /user/tokens (the `ListTokens` operationId).

func (*ClientWithResponses) ListUserTokensWithResponse

func (c *ClientWithResponses) ListUserTokensWithResponse(ctx context.Context, username UsernameParam, params *ListUserTokensParams, reqEditors ...RequestEditorFn) (*ListUserTokensResponse, error)

ListUserTokensWithResponse Elenca i token di un utente agent

Solo amministratori, scope `write:user` (regola P5). Solo per utenti di tipo `agent`: sui token di una persona decide solo lei (409 `not_an_agent`). Mai il valore del token, solo `hint`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /users/{username}/tokens (the `ListUserTokens` operationId).

func (*ClientWithResponses) ListUsersWithResponse

func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)

ListUsersWithResponse Elenca gli utenti

Richiede lo scope `read:user`. Il profilo pubblico non include l'email.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /users (the `ListUsers` operationId).

func (*ClientWithResponses) LockIssueWithBodyWithResponse

func (c *ClientWithResponses) LockIssueWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LockIssueResponse, error)

LockIssueWithBodyWithResponse Blocca la discussione

Serve `admin` (I11). Con la discussione bloccata commenta solo chi ha `write` (gli altri 403 `locked`). Bloccare una issue gia' bloccata e' idempotente. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10). Una issue nascosta (I4) risponde 404 a chi non ha `admin`, tranne dove indicato.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/lock (the `LockIssue` operationId).

func (*ClientWithResponses) LockIssueWithResponse

func (c *ClientWithResponses) LockIssueWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body LockIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*LockIssueResponse, error)

LockIssueWithResponse Blocca la discussione

Serve `admin` (I11). Con la discussione bloccata commenta solo chi ha `write` (gli altri 403 `locked`). Bloccare una issue gia' bloccata e' idempotente. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10). Una issue nascosta (I4) risponde 404 a chi non ha `admin`, tranne dove indicato.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/lock (the `LockIssue` operationId).

func (*ClientWithResponses) LoginWithBodyWithResponse

func (c *ClientWithResponses) LoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginResponse, error)

LoginWithBodyWithResponse Accede con username e password

Crea una sessione. La risposta imposta il cookie `gst_session` (HttpOnly, Secure, SameSite=Lax); il valore non e' nel corpo. Le credenziali sbagliate e l'utente disattivato rispondono entrambi 401 con `invalid_credentials`, senza distinguere i casi. Dopo troppi tentativi falliti (per utente o per indirizzo IP) risponde 429 `too_many_attempts` con l'header `Retry-After` in secondi.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /auth/login (the `Login` operationId).

func (*ClientWithResponses) LoginWithResponse

func (c *ClientWithResponses) LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResponse, error)

LoginWithResponse Accede con username e password

Crea una sessione. La risposta imposta il cookie `gst_session` (HttpOnly, Secure, SameSite=Lax); il valore non e' nel corpo. Le credenziali sbagliate e l'utente disattivato rispondono entrambi 401 con `invalid_credentials`, senza distinguere i casi. Dopo troppi tentativi falliti (per utente o per indirizzo IP) risponde 429 `too_many_attempts` con l'header `Retry-After` in secondi.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /auth/login (the `Login` operationId).

func (*ClientWithResponses) LogoutWithResponse

func (c *ClientWithResponses) LogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutResponse, error)

LogoutWithResponse Termina la sessione corrente

Revoca la sessione del cookie `gst_session` e lo cancella.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /auth/logout (the `Logout` operationId).

func (*ClientWithResponses) LookupSshKeyWithResponse

func (c *ClientWithResponses) LookupSshKeyWithResponse(ctx context.Context, fingerprint string, reqEditors ...RequestEditorFn) (*LookupSshKeyResponse, error)

LookupSshKeyWithResponse Risolve un utente dal fingerprint di una chiave SSH

Usata dal servizio git all'accesso SSH. Aggiorna `lastUsedAt`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /internal/ssh-keys/{fingerprint} (the `LookupSshKey` operationId).

func (*ClientWithResponses) LookupUsersByEmailWithBodyWithResponse

func (c *ClientWithResponses) LookupUsersByEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LookupUsersByEmailResponse, error)

LookupUsersByEmailWithBodyWithResponse Trova gli utenti GitStack dalle email dei commit

Per core (M-04): confronta le email, senza distinguere maiuscole, con `users.email` (unica su lower(email)). Massimo 100 email per chiamata; core la chiama una volta per pagina di storico, dettaglio o blame. Le email senza utente non compaiono nella risposta.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /internal/users/lookup-emails (the `LookupUsersByEmail` operationId).

func (*ClientWithResponses) LookupUsersByEmailWithResponse

func (c *ClientWithResponses) LookupUsersByEmailWithResponse(ctx context.Context, body LookupUsersByEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*LookupUsersByEmailResponse, error)

LookupUsersByEmailWithResponse Trova gli utenti GitStack dalle email dei commit

Per core (M-04): confronta le email, senza distinguere maiuscole, con `users.email` (unica su lower(email)). Massimo 100 email per chiamata; core la chiama una volta per pagina di storico, dettaglio o blame. Le email senza utente non compaiono nella risposta.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /internal/users/lookup-emails (the `LookupUsersByEmail` operationId).

func (*ClientWithResponses) LookupUsersByIdsWithBodyWithResponse

func (c *ClientWithResponses) LookupUsersByIdsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LookupUsersByIdsResponse, error)

LookupUsersByIdsWithBodyWithResponse Risolve gli id utente in nome e tipo

Per core (M-05): le issues conservano solo gli id degli utenti e la risposta li mostra con nome utente e tipo (persona o agente). Massimo 100 id per chiamata; gli id senza utente non compaiono nella risposta. Gli utenti disattivati restano.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /internal/users/lookup-ids (the `LookupUsersByIds` operationId).

func (*ClientWithResponses) LookupUsersByIdsWithResponse

func (c *ClientWithResponses) LookupUsersByIdsWithResponse(ctx context.Context, body LookupUsersByIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*LookupUsersByIdsResponse, error)

LookupUsersByIdsWithResponse Risolve gli id utente in nome e tipo

Per core (M-05): le issues conservano solo gli id degli utenti e la risposta li mostra con nome utente e tipo (persona o agente). Massimo 100 id per chiamata; gli id senza utente non compaiono nella risposta. Gli utenti disattivati restano.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /internal/users/lookup-ids (the `LookupUsersByIds` operationId).

func (*ClientWithResponses) MarkAllNotificationsReadWithResponse

func (c *ClientWithResponses) MarkAllNotificationsReadWithResponse(ctx context.Context, params *MarkAllNotificationsReadParams, reqEditors ...RequestEditorFn) (*MarkAllNotificationsReadResponse, error)

MarkAllNotificationsReadWithResponse Segna come lette tutte le notifiche

Segna come lette le notifiche non lette dell'utente corrente, con gli stessi filtri facoltativi (`reason`, `repo`) dell'elenco. Idempotente. Le archiviate non cambiano.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /notifications/read-all (the `MarkAllNotificationsRead` operationId).

func (*ClientWithResponses) PurgeResourceAccessWithResponse

func (c *ClientWithResponses) PurgeResourceAccessWithResponse(ctx context.Context, resourceId openapi_types.UUID, reqEditors ...RequestEditorFn) (*PurgeResourceAccessResponse, error)

PurgeResourceAccessWithResponse Toglie grant e attributi di una risorsa cancellata (per core)

Per core (M-03/F): dopo la cancellazione definitiva di un repo (R2) toglie tutti i grant (`resource_grants`) e gli attributi di owner e visibilita' della risorsa. Idempotente: 204 anche se non c'era niente da togliere.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /internal/resources/{resourceId} (the `PurgeResourceAccess` operationId).

func (*ClientWithResponses) ReactivateOrgWebhookWithResponse

func (c *ClientWithResponses) ReactivateOrgWebhookWithResponse(ctx context.Context, org OrgParam, hookId WebhookIdParam, reqEditors ...RequestEditorFn) (*ReactivateOrgWebhookResponse, error)

ReactivateOrgWebhookWithResponse Riattiva un webhook di un'organizzazione

Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Riattiva un webhook (disattivato a mano o dopo 3 giorni di fallimenti consecutivi, C7): `active` torna `true` e i fallimenti consecutivi si azzerano. Idempotente su un webhook gia' attivo.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /orgs/{org}/hooks/{hookId}/reactivate (the `ReactivateOrgWebhook` operationId).

func (*ClientWithResponses) ReactivateRepoWebhookWithResponse

func (c *ClientWithResponses) ReactivateRepoWebhookWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, reqEditors ...RequestEditorFn) (*ReactivateRepoWebhookResponse, error)

ReactivateRepoWebhookWithResponse Riattiva un webhook di un repo

Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Riattiva un webhook (disattivato a mano o dopo 3 giorni di fallimenti consecutivi, C7): `active` torna `true` e i fallimenti consecutivi si azzerano. Idempotente su un webhook gia' attivo.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /repos/{owner}/{repo}/hooks/{hookId}/reactivate (the `ReactivateRepoWebhook` operationId).

func (*ClientWithResponses) RedeliverOrgWebhookDeliveryWithResponse

func (c *ClientWithResponses) RedeliverOrgWebhookDeliveryWithResponse(ctx context.Context, org OrgParam, hookId WebhookIdParam, deliveryId WebhookDeliveryIdParam, reqEditors ...RequestEditorFn) (*RedeliverOrgWebhookDeliveryResponse, error)

RedeliverOrgWebhookDeliveryWithResponse Rinvia una consegna (Redeliver) di un'organizzazione

Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Crea una consegna nuova con lo stesso payload e un nuovo `X-GitStack-Delivery` (`redeliveryOf` punta all'originale), firmata di nuovo col segreto corrente. Risponde 202: la consegna e' in coda e il risultato si legge dal log. Funziona anche su un webhook non attivo e dopo un `410 Gone`; una consegna piu' vecchia di 30 giorni non esiste piu' (404).

Returns a wrapper object for the known response body format(s).

Corresponds with POST /orgs/{org}/hooks/{hookId}/deliveries/{deliveryId}/redeliver (the `RedeliverOrgWebhookDelivery` operationId).

func (*ClientWithResponses) RedeliverRepoWebhookDeliveryWithResponse

func (c *ClientWithResponses) RedeliverRepoWebhookDeliveryWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, deliveryId WebhookDeliveryIdParam, reqEditors ...RequestEditorFn) (*RedeliverRepoWebhookDeliveryResponse, error)

RedeliverRepoWebhookDeliveryWithResponse Rinvia una consegna (Redeliver) di un repo

Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Crea una consegna nuova con lo stesso payload e un nuovo `X-GitStack-Delivery` (`redeliveryOf` punta all'originale), firmata di nuovo col segreto corrente. Risponde 202: la consegna e' in coda e il risultato si legge dal log. Funziona anche su un webhook non attivo e dopo un `410 Gone`; una consegna piu' vecchia di 30 giorni non esiste piu' (404).

Returns a wrapper object for the known response body format(s).

Corresponds with POST /repos/{owner}/{repo}/hooks/{hookId}/deliveries/{deliveryId}/redeliver (the `RedeliverRepoWebhookDelivery` operationId).

func (*ClientWithResponses) RemoveOrgMemberWithResponse

func (c *ClientWithResponses) RemoveOrgMemberWithResponse(ctx context.Context, org OrgParam, username UsernameParam, reqEditors ...RequestEditorFn) (*RemoveOrgMemberResponse, error)

RemoveOrgMemberWithResponse Rimuove un membro

Scope `write:org`, ruolo `owner` (o l'utente stesso). Lo toglie anche da tutti i team. Non si rimuove l'ultimo `owner` (409 `last_owner`).

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /orgs/{org}/members/{username} (the `RemoveOrgMember` operationId).

func (*ClientWithResponses) RemoveTeamMemberWithResponse

func (c *ClientWithResponses) RemoveTeamMemberWithResponse(ctx context.Context, org OrgParam, team TeamParam, username UsernameParam, reqEditors ...RequestEditorFn) (*RemoveTeamMemberResponse, error)

RemoveTeamMemberWithResponse Rimuove un membro dal team

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /orgs/{org}/teams/{team}/members/{username} (the `RemoveTeamMember` operationId).

func (*ClientWithResponses) ReopenIssueWithResponse

func (c *ClientWithResponses) ReopenIssueWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*ReopenIssueResponse, error)

ReopenIssueWithResponse Riapre una issue

Come `closeIssue`: chi ha `write` o l'autore (I3). Riaprire azzera motivo e duplicato (I2). Una issue gia' aperta risponde 409 `already_open`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Returns a wrapper object for the known response body format(s).

Corresponds with POST /repos/{owner}/{repo}/issues/{number}/reopen (the `ReopenIssue` operationId).

func (*ClientWithResponses) ResetRepoWatchWithResponse

func (c *ClientWithResponses) ResetRepoWatchWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*ResetRepoWatchResponse, error)

ResetRepoWatchWithResponse Riporta il Watch al default

Torna a `participating`. Idempotente.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /repos/{owner}/{repo}/watch (the `ResetRepoWatch` operationId).

func (*ClientWithResponses) ResolveMentionsWithBodyWithResponse

func (c *ClientWithResponses) ResolveMentionsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResolveMentionsResponse, error)

ResolveMentionsWithBodyWithResponse Risolve le menzioni `@utente`, `@agente` e `@org/team`

Per core (M-06, I8): il motore delle notifiche trasforma i nomi citati nel testo di una issue o di un commento in utenti. Ogni nome e' `utente` (persona o agente) oppure `org/team`; il confronto non distingue maiuscole. Un nome che non e' un utente attivo o un team esistente non compare nella risposta (resta testo). Un team si espande in tutti i suoi membri attivi: chi vede il repo lo decide core. Massimo 100 nomi per chiamata.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /internal/mentions/resolve (the `ResolveMentions` operationId).

func (*ClientWithResponses) ResolveMentionsWithResponse

func (c *ClientWithResponses) ResolveMentionsWithResponse(ctx context.Context, body ResolveMentionsJSONRequestBody, reqEditors ...RequestEditorFn) (*ResolveMentionsResponse, error)

ResolveMentionsWithResponse Risolve le menzioni `@utente`, `@agente` e `@org/team`

Per core (M-06, I8): il motore delle notifiche trasforma i nomi citati nel testo di una issue o di un commento in utenti. Ogni nome e' `utente` (persona o agente) oppure `org/team`; il confronto non distingue maiuscole. Un nome che non e' un utente attivo o un team esistente non compare nella risposta (resta testo). Un team si espande in tutti i suoi membri attivi: chi vede il repo lo decide core. Massimo 100 nomi per chiamata.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /internal/mentions/resolve (the `ResolveMentions` operationId).

func (*ClientWithResponses) ResolveOwnerWithResponse

func (c *ClientWithResponses) ResolveOwnerWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*ResolveOwnerResponse, error)

ResolveOwnerWithResponse Risolve il nome di un utente o di un'organizzazione

Spazio di nomi unico (R1): restituisce tipo e id di chi si chiama cosi', 404 se il nome non esiste.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /internal/owners/{name} (the `ResolveOwner` operationId).

func (*ClientWithResponses) RestoreRepositoryWithResponse

func (c *ClientWithResponses) RestoreRepositoryWithResponse(ctx context.Context, repoId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RestoreRepositoryResponse, error)

RestoreRepositoryWithResponse Ripristina un repo eliminato

Serve il ruolo `admin` sul repo (R12). Risponde 404 se il repo non esiste, non e' eliminato o il periodo di 7 giorni e' scaduto.

Returns a wrapper object for the known response body format(s).

Corresponds with POST /repos/deleted/{repoId}/restore (the `RestoreRepository` operationId).

func (*ClientWithResponses) RevokeTokenWithResponse

func (c *ClientWithResponses) RevokeTokenWithResponse(ctx context.Context, tokenId TokenIdParam, reqEditors ...RequestEditorFn) (*RevokeTokenResponse, error)

RevokeTokenWithResponse Revoca un token personale

Scope `write:user`. La revoca e' immediata per identity; il gateway la vede entro il TTL della cache di verifica.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /user/tokens/{tokenId} (the `RevokeToken` operationId).

func (*ClientWithResponses) RevokeUserTokenWithResponse

func (c *ClientWithResponses) RevokeUserTokenWithResponse(ctx context.Context, username UsernameParam, tokenId TokenIdParam, reqEditors ...RequestEditorFn) (*RevokeUserTokenResponse, error)

RevokeUserTokenWithResponse Revoca un token di un utente agent

Solo amministratori, scope `write:user` (regola P5). Un token che non appartiene a quell'agent e' 404. Utente umano: 409 `not_an_agent`.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /users/{username}/tokens/{tokenId} (the `RevokeUserToken` operationId).

func (*ClientWithResponses) SearchIssuesWithResponse

func (c *ClientWithResponses) SearchIssuesWithResponse(ctx context.Context, params *SearchIssuesParams, reqEditors ...RequestEditorFn) (*SearchIssuesResponse, error)

SearchIssuesWithResponse Cerca issues su tutta l'installazione

Ricerca con la sintassi di I10 (`is:`, `reason:`, `label:`, `assignee:` con `@me` e `@agents`, `author:`, `milestone:`, `no:`, `repo:`, `org:` e testo libero con ricerca testuale PostgreSQL) sui soli repo che l'utente puo' leggere. Stessa sintassi di `listIssues`, che e' la ricerca nel singolo repo. Le issues nascoste compaiono solo a chi ha `admin` sul loro repo. Un `q` che non si puo' interpretare risponde 422.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /search/issues (the `SearchIssues` operationId).

func (*ClientWithResponses) SearchRepositoryCodeWithResponse

func (c *ClientWithResponses) SearchRepositoryCodeWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *SearchRepositoryCodeParams, reqEditors ...RequestEditorFn) (*SearchRepositoryCodeResponse, error)

SearchRepositoryCodeWithResponse Cerca un testo nel codice di un ref ("Search code")

Regola B5: cerca `q` (sottostringa letterale, senza distinguere maiuscole) nei file di testo di `ref`, senza indice. Al massimo 100 risultati con percorso, riga e frammento (`limitReached` se ce ne sono altri), tempo massimo 10 secondi (`timedOut` se interrotta). Un `q` piu' corto di 2 caratteri risponde 400. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /repos/{owner}/{repo}/search (the `SearchRepositoryCode` operationId).

func (*ClientWithResponses) SetIssueAssigneesWithBodyWithResponse

func (c *ClientWithResponses) SetIssueAssigneesWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetIssueAssigneesResponse, error)

SetIssueAssigneesWithBodyWithResponse Imposta gli assegnatari

Sostituisce l'elenco con quello indicato (vuoto = nessuno). Serve `write` (I3); chi ha `write` puo' anche autoassegnarsi (I6). Al massimo 10, persone o agenti, tutti con `write` sul repo: altrimenti 422 (`details.fields.assignees`). Ogni aggiunta o rimozione e' un evento della cronologia. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/assignees (the `SetIssueAssignees` operationId).

func (*ClientWithResponses) SetIssueAssigneesWithResponse

func (c *ClientWithResponses) SetIssueAssigneesWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body SetIssueAssigneesJSONRequestBody, reqEditors ...RequestEditorFn) (*SetIssueAssigneesResponse, error)

SetIssueAssigneesWithResponse Imposta gli assegnatari

Sostituisce l'elenco con quello indicato (vuoto = nessuno). Serve `write` (I3); chi ha `write` puo' anche autoassegnarsi (I6). Al massimo 10, persone o agenti, tutti con `write` sul repo: altrimenti 422 (`details.fields.assignees`). Ogni aggiunta o rimozione e' un evento della cronologia. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/assignees (the `SetIssueAssignees` operationId).

func (*ClientWithResponses) SetIssueHiddenWithBodyWithResponse

func (c *ClientWithResponses) SetIssueHiddenWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetIssueHiddenResponse, error)

SetIssueHiddenWithBodyWithResponse Nasconde o mostra una issue

Serve `admin` (I4). Una issue nascosta conserva il numero ma il suo contenuto e' visibile solo a `admin`; le altre persone la ricevono come inesistente (404). Le issues non si eliminano. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/hidden (the `SetIssueHidden` operationId).

func (*ClientWithResponses) SetIssueHiddenWithResponse

func (c *ClientWithResponses) SetIssueHiddenWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body SetIssueHiddenJSONRequestBody, reqEditors ...RequestEditorFn) (*SetIssueHiddenResponse, error)

SetIssueHiddenWithResponse Nasconde o mostra una issue

Serve `admin` (I4). Una issue nascosta conserva il numero ma il suo contenuto e' visibile solo a `admin`; le altre persone la ricevono come inesistente (404). Le issues non si eliminano. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/hidden (the `SetIssueHidden` operationId).

func (*ClientWithResponses) SetIssueLabelsWithBodyWithResponse

func (c *ClientWithResponses) SetIssueLabelsWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetIssueLabelsResponse, error)

SetIssueLabelsWithBodyWithResponse Imposta le etichette

Sostituisce l'elenco con quello indicato (I5), per nome. Serve `write`. Una etichetta che non esiste nel repo e' 422 (`details.fields.labels`): non si crea al volo. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/labels (the `SetIssueLabels` operationId).

func (*ClientWithResponses) SetIssueLabelsWithResponse

func (c *ClientWithResponses) SetIssueLabelsWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body SetIssueLabelsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetIssueLabelsResponse, error)

SetIssueLabelsWithResponse Imposta le etichette

Sostituisce l'elenco con quello indicato (I5), per nome. Serve `write`. Una etichetta che non esiste nel repo e' 422 (`details.fields.labels`): non si crea al volo. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/labels (the `SetIssueLabels` operationId).

func (*ClientWithResponses) SetIssueMilestoneWithBodyWithResponse

func (c *ClientWithResponses) SetIssueMilestoneWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetIssueMilestoneResponse, error)

SetIssueMilestoneWithBodyWithResponse Imposta o toglie la milestone

Al massimo una milestone per issue (I7); `milestone: null` la toglie. Serve `write`. Una milestone che non esiste nel repo e' 422. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/milestone (the `SetIssueMilestone` operationId).

func (*ClientWithResponses) SetIssueMilestoneWithResponse

func (c *ClientWithResponses) SetIssueMilestoneWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body SetIssueMilestoneJSONRequestBody, reqEditors ...RequestEditorFn) (*SetIssueMilestoneResponse, error)

SetIssueMilestoneWithResponse Imposta o toglie la milestone

Al massimo una milestone per issue (I7); `milestone: null` la toglie. Serve `write`. Una milestone che non esiste nel repo e' 422. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/milestone (the `SetIssueMilestone` operationId).

func (*ClientWithResponses) SetOrgMemberWithBodyWithResponse

func (c *ClientWithResponses) SetOrgMemberWithBodyWithResponse(ctx context.Context, org OrgParam, username UsernameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetOrgMemberResponse, error)

SetOrgMemberWithBodyWithResponse Aggiunge un membro o ne cambia il ruolo

Scope `write:org`, ruolo `owner`. Idempotente.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /orgs/{org}/members/{username} (the `SetOrgMember` operationId).

func (*ClientWithResponses) SetOrgMemberWithResponse

func (c *ClientWithResponses) SetOrgMemberWithResponse(ctx context.Context, org OrgParam, username UsernameParam, body SetOrgMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*SetOrgMemberResponse, error)

SetOrgMemberWithResponse Aggiunge un membro o ne cambia il ruolo

Scope `write:org`, ruolo `owner`. Idempotente.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /orgs/{org}/members/{username} (the `SetOrgMember` operationId).

func (*ClientWithResponses) SetRepoWatchWithBodyWithResponse

func (c *ClientWithResponses) SetRepoWatchWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetRepoWatchResponse, error)

SetRepoWatchWithBodyWithResponse Imposta il Watch del repo

`participating`: notifiche solo per le issues che si seguono (autore, assegnatario, commentatore, menzionato, iscritto); `all`: anche ogni nuova issue e commento del repo; `ignore`: nessuna notifica dal repo, nemmeno le menzioni dirette e le assegnazioni. Serve `read` sul repo.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /repos/{owner}/{repo}/watch (the `SetRepoWatch` operationId).

func (*ClientWithResponses) SetRepoWatchWithResponse

func (c *ClientWithResponses) SetRepoWatchWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body SetRepoWatchJSONRequestBody, reqEditors ...RequestEditorFn) (*SetRepoWatchResponse, error)

SetRepoWatchWithResponse Imposta il Watch del repo

`participating`: notifiche solo per le issues che si seguono (autore, assegnatario, commentatore, menzionato, iscritto); `all`: anche ogni nuova issue e commento del repo; `ignore`: nessuna notifica dal repo, nemmeno le menzioni dirette e le assegnazioni. Serve `read` sul repo.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /repos/{owner}/{repo}/watch (the `SetRepoWatch` operationId).

func (*ClientWithResponses) SetResourceAttributesWithBodyWithResponse

func (c *ClientWithResponses) SetResourceAttributesWithBodyWithResponse(ctx context.Context, resourceId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetResourceAttributesResponse, error)

SetResourceAttributesWithBodyWithResponse Imposta owner e visibilita' di una risorsa (per core)

Servita da identity (D-C, M-03). Core la chiama alla creazione di un repo, prima di `grantResourceCreator`, e a ogni cambio di visibilita'. L'owner non cambia mai (R3). Idempotente. Una risorsa senza attributi si comporta come prima di M-03. Con attributi valgono P1 (owner dell'organizzazione: admin), P6 (proprietario del repo personale: admin) e P3 (interno: read a ogni utente attivo), sia in `checkPermission` sia in `listReadableResources`. 404 se l'owner non esiste, 409 se la risorsa ha gia' un altro owner.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /internal/resources/{resourceId}/attributes (the `SetResourceAttributes` operationId).

func (*ClientWithResponses) SetResourceAttributesWithResponse

func (c *ClientWithResponses) SetResourceAttributesWithResponse(ctx context.Context, resourceId openapi_types.UUID, body SetResourceAttributesJSONRequestBody, reqEditors ...RequestEditorFn) (*SetResourceAttributesResponse, error)

SetResourceAttributesWithResponse Imposta owner e visibilita' di una risorsa (per core)

Servita da identity (D-C, M-03). Core la chiama alla creazione di un repo, prima di `grantResourceCreator`, e a ogni cambio di visibilita'. L'owner non cambia mai (R3). Idempotente. Una risorsa senza attributi si comporta come prima di M-03. Con attributi valgono P1 (owner dell'organizzazione: admin), P6 (proprietario del repo personale: admin) e P3 (interno: read a ogni utente attivo), sia in `checkPermission` sia in `listReadableResources`. 404 se l'owner non esiste, 409 se la risorsa ha gia' un altro owner.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /internal/resources/{resourceId}/attributes (the `SetResourceAttributes` operationId).

func (*ClientWithResponses) SetTeamMemberWithBodyWithResponse

func (c *ClientWithResponses) SetTeamMemberWithBodyWithResponse(ctx context.Context, org OrgParam, team TeamParam, username UsernameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetTeamMemberResponse, error)

SetTeamMemberWithBodyWithResponse Aggiunge un membro al team o ne cambia il ruolo

Scope `write:org`. L'utente deve essere gia' membro dell'organizzazione (altrimenti 422 `not_org_member`). Idempotente.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /orgs/{org}/teams/{team}/members/{username} (the `SetTeamMember` operationId).

func (*ClientWithResponses) SetTeamMemberWithResponse

func (c *ClientWithResponses) SetTeamMemberWithResponse(ctx context.Context, org OrgParam, team TeamParam, username UsernameParam, body SetTeamMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*SetTeamMemberResponse, error)

SetTeamMemberWithResponse Aggiunge un membro al team o ne cambia il ruolo

Scope `write:org`. L'utente deve essere gia' membro dell'organizzazione (altrimenti 422 `not_org_member`). Idempotente.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /orgs/{org}/teams/{team}/members/{username} (the `SetTeamMember` operationId).

func (*ClientWithResponses) StartOidcLoginWithResponse

func (c *ClientWithResponses) StartOidcLoginWithResponse(ctx context.Context, provider OidcProviderParam, params *StartOidcLoginParams, reqEditors ...RequestEditorFn) (*StartOidcLoginResponse, error)

StartOidcLoginWithResponse Avvia il login OIDC

Redirect (302) all'authorization endpoint del provider (authorization code + PKCE). `redirectTo` e' un percorso relativo dove tornare dopo il login.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /auth/oidc/{provider}/start (the `StartOidcLogin` operationId).

func (*ClientWithResponses) SubscribeIssueWithResponse

func (c *ClientWithResponses) SubscribeIssueWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*SubscribeIssueResponse, error)

SubscribeIssueWithResponse Segue la issue (Subscribe)

Iscrive l'utente corrente (`reason` `manual`), anche se si era disiscritto. Idempotente. Serve poter leggere la issue.

Returns a wrapper object for the known response body format(s).

Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/subscription (the `SubscribeIssue` operationId).

func (*ClientWithResponses) SyncRepoMirrorWithResponse

func (c *ClientWithResponses) SyncRepoMirrorWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam, reqEditors ...RequestEditorFn) (*SyncRepoMirrorResponse, error)

SyncRepoMirrorWithResponse Sincronizza ora un mirror in push

Serve `admin` sul repo (V8). Mette il mirror in coda subito («Sincronizza ora»): risponde 202 e il push lo esegue il worker, entro pochi secondi; si segue con `getRepoMirror` e `listRepoMirrorRuns`. Su un mirror `diverged` o in `error` azzera i tentativi e riprova: il push resta non forzato, quindi se la destinazione ha ancora una storia diversa il mirror torna `diverged`. Un mirror in pausa (`enabled: false`) risponde 409 `mirror_disabled`. Idempotente se il mirror e' gia' in coda. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).

Returns a wrapper object for the known response body format(s).

Corresponds with POST /repos/{owner}/{repo}/mirrors/{mirrorId}/sync (the `SyncRepoMirror` operationId).

func (*ClientWithResponses) UnlockIssueWithResponse

func (c *ClientWithResponses) UnlockIssueWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*UnlockIssueResponse, error)

UnlockIssueWithResponse Sblocca la discussione

Serve `admin` (I11). Sbloccare una issue non bloccata e' idempotente. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /repos/{owner}/{repo}/issues/{number}/lock (the `UnlockIssue` operationId).

func (*ClientWithResponses) UnsubscribeIssueWithResponse

func (c *ClientWithResponses) UnsubscribeIssueWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*UnsubscribeIssueResponse, error)

UnsubscribeIssueWithResponse Smette di seguire la issue (Unsubscribe)

Disiscrive l'utente corrente: da qui l'iscrizione automatica non lo riguarda piu' per questa issue, finche' non fa Subscribe. Le menzioni dirette (`@utente`) e le assegnazioni notificano comunque. Idempotente.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /repos/{owner}/{repo}/issues/{number}/subscription (the `UnsubscribeIssue` operationId).

func (*ClientWithResponses) UpdateIssueCommentWithBodyWithResponse

func (c *ClientWithResponses) UpdateIssueCommentWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, commentId IssueCommentIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateIssueCommentResponse, error)

UpdateIssueCommentWithBodyWithResponse Modifica un commento

Solo l'autore (I4). Salva la versione precedente e imposta `edited`. Un commento eliminato risponde 404. Con la discussione bloccata solo chi ha `write`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /repos/{owner}/{repo}/issues/{number}/comments/{commentId} (the `UpdateIssueComment` operationId).

func (*ClientWithResponses) UpdateIssueCommentWithResponse

UpdateIssueCommentWithResponse Modifica un commento

Solo l'autore (I4). Salva la versione precedente e imposta `edited`. Un commento eliminato risponde 404. Con la discussione bloccata solo chi ha `write`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /repos/{owner}/{repo}/issues/{number}/comments/{commentId} (the `UpdateIssueComment` operationId).

func (*ClientWithResponses) UpdateIssueWithBodyWithResponse

func (c *ClientWithResponses) UpdateIssueWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateIssueResponse, error)

UpdateIssueWithBodyWithResponse Modifica titolo e testo

Solo l'autore modifica il proprio testo (I4); chiunque altro riceve 403. Ogni modifica del testo salva la versione precedente (visibile con `admin`, `listIssueVersions`) e fa comparire `edited`. Stato, etichette, assegnatari e milestone hanno le loro operazioni. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10). Su una discussione bloccata (I11) l'autore con soli permessi `read` riceve 403 `locked`. Una issue nascosta (I4) risponde 404 a chi non ha `admin`, tranne dove indicato.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /repos/{owner}/{repo}/issues/{number} (the `UpdateIssue` operationId).

func (*ClientWithResponses) UpdateIssueWithResponse

func (c *ClientWithResponses) UpdateIssueWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body UpdateIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateIssueResponse, error)

UpdateIssueWithResponse Modifica titolo e testo

Solo l'autore modifica il proprio testo (I4); chiunque altro riceve 403. Ogni modifica del testo salva la versione precedente (visibile con `admin`, `listIssueVersions`) e fa comparire `edited`. Stato, etichette, assegnatari e milestone hanno le loro operazioni. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10). Su una discussione bloccata (I11) l'autore con soli permessi `read` riceve 403 `locked`. Una issue nascosta (I4) risponde 404 a chi non ha `admin`, tranne dove indicato.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /repos/{owner}/{repo}/issues/{number} (the `UpdateIssue` operationId).

func (*ClientWithResponses) UpdateLabelWithBodyWithResponse

func (c *ClientWithResponses) UpdateLabelWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, name LabelNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLabelResponse, error)

UpdateLabelWithBodyWithResponse Modifica un'etichetta

Serve `write`. Rinominare (o cambiare colore) aggiorna tutte le issues che la usano (il legame e' per id). 409 `already_exists` se il nuovo nome e' occupato. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /repos/{owner}/{repo}/labels/{name} (the `UpdateLabel` operationId).

func (*ClientWithResponses) UpdateLabelWithResponse

func (c *ClientWithResponses) UpdateLabelWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, name LabelNameParam, body UpdateLabelJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLabelResponse, error)

UpdateLabelWithResponse Modifica un'etichetta

Serve `write`. Rinominare (o cambiare colore) aggiorna tutte le issues che la usano (il legame e' per id). 409 `already_exists` se il nuovo nome e' occupato. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /repos/{owner}/{repo}/labels/{name} (the `UpdateLabel` operationId).

func (*ClientWithResponses) UpdateMilestoneWithBodyWithResponse

func (c *ClientWithResponses) UpdateMilestoneWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, milestoneNumber MilestoneNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMilestoneResponse, error)

UpdateMilestoneWithBodyWithResponse Modifica o chiude una milestone

Serve `write`. `state` la chiude o la riapre. `dueOn: null` toglie la data. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /repos/{owner}/{repo}/milestones/{milestoneNumber} (the `UpdateMilestone` operationId).

func (*ClientWithResponses) UpdateMilestoneWithResponse

func (c *ClientWithResponses) UpdateMilestoneWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, milestoneNumber MilestoneNumberParam, body UpdateMilestoneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMilestoneResponse, error)

UpdateMilestoneWithResponse Modifica o chiude una milestone

Serve `write`. `state` la chiude o la riapre. `dueOn: null` toglie la data. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /repos/{owner}/{repo}/milestones/{milestoneNumber} (the `UpdateMilestone` operationId).

func (*ClientWithResponses) UpdateNotificationPreferencesWithBodyWithResponse

func (c *ClientWithResponses) UpdateNotificationPreferencesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNotificationPreferencesResponse, error)

UpdateNotificationPreferencesWithBodyWithResponse Imposta le preferenze email

Imposta i tipi indicati in `email`; quelli omessi restano come sono. Un tipo sconosciuto: 422 (`details.fields.email`).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /user/notification-preferences (the `UpdateNotificationPreferences` operationId).

func (*ClientWithResponses) UpdateNotificationPreferencesWithResponse

func (c *ClientWithResponses) UpdateNotificationPreferencesWithResponse(ctx context.Context, body UpdateNotificationPreferencesJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNotificationPreferencesResponse, error)

UpdateNotificationPreferencesWithResponse Imposta le preferenze email

Imposta i tipi indicati in `email`; quelli omessi restano come sono. Un tipo sconosciuto: 422 (`details.fields.email`).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /user/notification-preferences (the `UpdateNotificationPreferences` operationId).

func (*ClientWithResponses) UpdateNotificationWithBodyWithResponse

func (c *ClientWithResponses) UpdateNotificationWithBodyWithResponse(ctx context.Context, notificationId NotificationIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNotificationResponse, error)

UpdateNotificationWithBodyWithResponse Segna come letta/non letta o archivia

Imposta `read` (segna come letta o di nuovo non letta) e/o `archived` (archivia o ripristina). Almeno un campo, altrimenti 400. Idempotente.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /notifications/{notificationId} (the `UpdateNotification` operationId).

func (*ClientWithResponses) UpdateNotificationWithResponse

func (c *ClientWithResponses) UpdateNotificationWithResponse(ctx context.Context, notificationId NotificationIdParam, body UpdateNotificationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNotificationResponse, error)

UpdateNotificationWithResponse Segna come letta/non letta o archivia

Imposta `read` (segna come letta o di nuovo non letta) e/o `archived` (archivia o ripristina). Almeno un campo, altrimenti 400. Idempotente.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /notifications/{notificationId} (the `UpdateNotification` operationId).

func (*ClientWithResponses) UpdateOrgWebhookWithBodyWithResponse

func (c *ClientWithResponses) UpdateOrgWebhookWithBodyWithResponse(ctx context.Context, org OrgParam, hookId WebhookIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrgWebhookResponse, error)

UpdateOrgWebhookWithBodyWithResponse Modifica un webhook di un'organizzazione

Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Cambia solo i campi indicati. `secret`: una stringa sostituisce il segreto, la stringa vuota lo toglie. `active: false` mette in pausa il webhook senza eliminarlo. Un webhook disattivato dai fallimenti (C7) si riattiva con l'operazione `reactivate`, non con `active: true`: 409 `webhook_disabled`.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /orgs/{org}/hooks/{hookId} (the `UpdateOrgWebhook` operationId).

func (*ClientWithResponses) UpdateOrgWebhookWithResponse

func (c *ClientWithResponses) UpdateOrgWebhookWithResponse(ctx context.Context, org OrgParam, hookId WebhookIdParam, body UpdateOrgWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrgWebhookResponse, error)

UpdateOrgWebhookWithResponse Modifica un webhook di un'organizzazione

Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Cambia solo i campi indicati. `secret`: una stringa sostituisce il segreto, la stringa vuota lo toglie. `active: false` mette in pausa il webhook senza eliminarlo. Un webhook disattivato dai fallimenti (C7) si riattiva con l'operazione `reactivate`, non con `active: true`: 409 `webhook_disabled`.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /orgs/{org}/hooks/{hookId} (the `UpdateOrgWebhook` operationId).

func (*ClientWithResponses) UpdateOrganizationWithBodyWithResponse

func (c *ClientWithResponses) UpdateOrganizationWithBodyWithResponse(ctx context.Context, org OrgParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error)

UpdateOrganizationWithBodyWithResponse Aggiorna un'organizzazione

Scope `write:org`, ruolo `owner`.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /orgs/{org} (the `UpdateOrganization` operationId).

func (*ClientWithResponses) UpdateOrganizationWithResponse

func (c *ClientWithResponses) UpdateOrganizationWithResponse(ctx context.Context, org OrgParam, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error)

UpdateOrganizationWithResponse Aggiorna un'organizzazione

Scope `write:org`, ruolo `owner`.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /orgs/{org} (the `UpdateOrganization` operationId).

func (*ClientWithResponses) UpdateRepoMirrorWithBodyWithResponse

func (c *ClientWithResponses) UpdateRepoMirrorWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRepoMirrorResponse, error)

UpdateRepoMirrorWithBodyWithResponse Modifica un mirror in push

Serve `admin` sul repo (V8). Cambia solo i campi indicati. `token`: una stringa sostituisce il token (non si puo' togliere: il mirror non funzionerebbe). Cambiare `url` azzera lo stato e rimette in coda il mirror. `enabled: false` mette in pausa il mirror (nessun push, nemmeno su richiesta) senza eliminarlo. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /repos/{owner}/{repo}/mirrors/{mirrorId} (the `UpdateRepoMirror` operationId).

func (*ClientWithResponses) UpdateRepoMirrorWithResponse

func (c *ClientWithResponses) UpdateRepoMirrorWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam, body UpdateRepoMirrorJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRepoMirrorResponse, error)

UpdateRepoMirrorWithResponse Modifica un mirror in push

Serve `admin` sul repo (V8). Cambia solo i campi indicati. `token`: una stringa sostituisce il token (non si puo' togliere: il mirror non funzionerebbe). Cambiare `url` azzera lo stato e rimette in coda il mirror. `enabled: false` mette in pausa il mirror (nessun push, nemmeno su richiesta) senza eliminarlo. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /repos/{owner}/{repo}/mirrors/{mirrorId} (the `UpdateRepoMirror` operationId).

func (*ClientWithResponses) UpdateRepoWebhookWithBodyWithResponse

func (c *ClientWithResponses) UpdateRepoWebhookWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRepoWebhookResponse, error)

UpdateRepoWebhookWithBodyWithResponse Modifica un webhook di un repo

Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Cambia solo i campi indicati. `secret`: una stringa sostituisce il segreto, la stringa vuota lo toglie. `active: false` mette in pausa il webhook senza eliminarlo. Un webhook disattivato dai fallimenti (C7) si riattiva con l'operazione `reactivate`, non con `active: true`: 409 `webhook_disabled`. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /repos/{owner}/{repo}/hooks/{hookId} (the `UpdateRepoWebhook` operationId).

func (*ClientWithResponses) UpdateRepoWebhookWithResponse

func (c *ClientWithResponses) UpdateRepoWebhookWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, body UpdateRepoWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRepoWebhookResponse, error)

UpdateRepoWebhookWithResponse Modifica un webhook di un repo

Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Cambia solo i campi indicati. `secret`: una stringa sostituisce il segreto, la stringa vuota lo toglie. `active: false` mette in pausa il webhook senza eliminarlo. Un webhook disattivato dai fallimenti (C7) si riattiva con l'operazione `reactivate`, non con `active: true`: 409 `webhook_disabled`. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /repos/{owner}/{repo}/hooks/{hookId} (the `UpdateRepoWebhook` operationId).

func (*ClientWithResponses) UpdateRepositoryWithBodyWithResponse

func (c *ClientWithResponses) UpdateRepositoryWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRepositoryResponse, error)

UpdateRepositoryWithBodyWithResponse Modifica le impostazioni di un repo

Serve il ruolo `admin` (403 se l'utente legge ma non ha il ruolo). Il branch principale (R4) deve essere un branch esistente; `protectDefaultBranch` e' R9; `archived` archivia o riattiva (R10). Owner e nome non cambiano mai (R3). Un repo archiviato rifiuta ogni modifica con 409, tranne `archived: false` da solo.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /repos/{owner}/{repo} (the `UpdateRepository` operationId).

func (*ClientWithResponses) UpdateRepositoryWithResponse

func (c *ClientWithResponses) UpdateRepositoryWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body UpdateRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRepositoryResponse, error)

UpdateRepositoryWithResponse Modifica le impostazioni di un repo

Serve il ruolo `admin` (403 se l'utente legge ma non ha il ruolo). Il branch principale (R4) deve essere un branch esistente; `protectDefaultBranch` e' R9; `archived` archivia o riattiva (R10). Owner e nome non cambiano mai (R3). Un repo archiviato rifiuta ogni modifica con 409, tranne `archived: false` da solo.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /repos/{owner}/{repo} (the `UpdateRepository` operationId).

func (*ClientWithResponses) UpdateResourceGrantWithBodyWithResponse

func (c *ClientWithResponses) UpdateResourceGrantWithBodyWithResponse(ctx context.Context, resourceId ResourceIdParam, grantId GrantIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateResourceGrantResponse, error)

UpdateResourceGrantWithBodyWithResponse Cambia il ruolo di un grant

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /resources/{resourceId}/grants/{grantId} (the `UpdateResourceGrant` operationId).

func (*ClientWithResponses) UpdateResourceGrantWithResponse

func (c *ClientWithResponses) UpdateResourceGrantWithResponse(ctx context.Context, resourceId ResourceIdParam, grantId GrantIdParam, body UpdateResourceGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateResourceGrantResponse, error)

UpdateResourceGrantWithResponse Cambia il ruolo di un grant

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /resources/{resourceId}/grants/{grantId} (the `UpdateResourceGrant` operationId).

func (*ClientWithResponses) UpdateResourceWithBodyWithResponse

func (c *ClientWithResponses) UpdateResourceWithBodyWithResponse(ctx context.Context, resourceId ResourceIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateResourceResponse, error)

UpdateResourceWithBodyWithResponse Aggiorna una risorsa

Aggiornamento parziale: solo i campi presenti nel corpo cambiano.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /resources/{resourceId} (the `UpdateResource` operationId).

func (*ClientWithResponses) UpdateResourceWithResponse

func (c *ClientWithResponses) UpdateResourceWithResponse(ctx context.Context, resourceId ResourceIdParam, body UpdateResourceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateResourceResponse, error)

UpdateResourceWithResponse Aggiorna una risorsa

Aggiornamento parziale: solo i campi presenti nel corpo cambiano.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /resources/{resourceId} (the `UpdateResource` operationId).

func (*ClientWithResponses) UpdateTeamWithBodyWithResponse

func (c *ClientWithResponses) UpdateTeamWithBodyWithResponse(ctx context.Context, org OrgParam, team TeamParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTeamResponse, error)

UpdateTeamWithBodyWithResponse Aggiorna un team

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /orgs/{org}/teams/{team} (the `UpdateTeam` operationId).

func (*ClientWithResponses) UpdateTeamWithResponse

func (c *ClientWithResponses) UpdateTeamWithResponse(ctx context.Context, org OrgParam, team TeamParam, body UpdateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTeamResponse, error)

UpdateTeamWithResponse Aggiorna un team

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /orgs/{org}/teams/{team} (the `UpdateTeam` operationId).

func (*ClientWithResponses) UpdateUserWithBodyWithResponse

func (c *ClientWithResponses) UpdateUserWithBodyWithResponse(ctx context.Context, username UsernameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)

UpdateUserWithBodyWithResponse Aggiorna il profilo

Scope `write:user`. Solo l'utente stesso (profilo) o un amministratore (anche `isAdmin`, `isActive`).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /users/{username} (the `UpdateUser` operationId).

func (*ClientWithResponses) UpdateUserWithResponse

func (c *ClientWithResponses) UpdateUserWithResponse(ctx context.Context, username UsernameParam, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)

UpdateUserWithResponse Aggiorna il profilo

Scope `write:user`. Solo l'utente stesso (profilo) o un amministratore (anche `isAdmin`, `isActive`).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /users/{username} (the `UpdateUser` operationId).

func (*ClientWithResponses) UploadIssueAttachmentWithBodyWithResponse

func (c *ClientWithResponses) UploadIssueAttachmentWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadIssueAttachmentResponse, error)

UploadIssueAttachmentWithBodyWithResponse Carica un allegato

`multipart/form-data` con un solo campo `file`. Chi vede il repo (I3, I9). Tipi ammessi: immagini (PNG, JPEG, GIF, WebP), PDF, testo/log, ZIP; limite configurabile (default 10 MB): oltre, 413 `attachment_too_large`; tipo non ammesso (verificato sui byte, non sul nome): 422 `unsupported_media_type`. L'allegato nasce non collegato e va indicato in `attachmentIds` di una issue o di un commento; uno non collegato entro 24 ore e' eliminato. Si salvano solo i metadati in DB; il nome originale non entra mai nel percorso su disco. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /repos/{owner}/{repo}/issue-attachments (the `UploadIssueAttachment` operationId).

func (*ClientWithResponses) VerifyCredentialWithBodyWithResponse

func (c *ClientWithResponses) VerifyCredentialWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyCredentialResponse, error)

VerifyCredentialWithBodyWithResponse Verifica una credenziale (per il gateway)

Il gateway invia il valore grezzo della credenziale (cookie di sessione oppure token `gst_...`) e riceve il principal. Non c'e' distinzione fra "sconosciuta", "scaduta" e "revocata": `active` false. Aggiorna `last_used_at` (al piu' una volta al minuto per credenziale).

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /internal/verify (the `VerifyCredential` operationId).

func (*ClientWithResponses) VerifyCredentialWithResponse

func (c *ClientWithResponses) VerifyCredentialWithResponse(ctx context.Context, body VerifyCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyCredentialResponse, error)

VerifyCredentialWithResponse Verifica una credenziale (per il gateway)

Il gateway invia il valore grezzo della credenziale (cookie di sessione oppure token `gst_...`) e riceve il principal. Non c'e' distinzione fra "sconosciuta", "scaduta" e "revocata": `active` false. Aggiorna `last_used_at` (al piu' una volta al minuto per credenziale).

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /internal/verify (the `VerifyCredential` operationId).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// LoginWithBodyWithResponse Accede con username e password
	//
	// Crea una sessione. La risposta imposta il cookie `gst_session` (HttpOnly, Secure, SameSite=Lax); il valore non e' nel corpo. Le credenziali sbagliate e l'utente disattivato rispondono entrambi 401 con `invalid_credentials`, senza distinguere i casi. Dopo troppi tentativi falliti (per utente o per indirizzo IP) risponde 429 `too_many_attempts` con l'header `Retry-After` in secondi.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /auth/login (the `Login` operationId).
	LoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginResponse, error)

	// LoginWithResponse Accede con username e password
	//
	// Crea una sessione. La risposta imposta il cookie `gst_session` (HttpOnly, Secure, SameSite=Lax); il valore non e' nel corpo. Le credenziali sbagliate e l'utente disattivato rispondono entrambi 401 con `invalid_credentials`, senza distinguere i casi. Dopo troppi tentativi falliti (per utente o per indirizzo IP) risponde 429 `too_many_attempts` con l'header `Retry-After` in secondi.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /auth/login (the `Login` operationId).
	LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResponse, error)

	// LogoutWithResponse Termina la sessione corrente
	//
	// Revoca la sessione del cookie `gst_session` e lo cancella.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /auth/logout (the `Logout` operationId).
	LogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutResponse, error)

	// ListOidcProvidersWithResponse Provider OIDC abilitati
	//
	// Elenco pubblico per la pagina di login. Nessun segreto.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /auth/oidc/providers (the `ListOidcProviders` operationId).
	ListOidcProvidersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListOidcProvidersResponse, error)

	// FinishOidcLoginWithResponse Completa il login OIDC
	//
	// Callback del provider. Se l'identita' (provider, subject) e' gia' collegata a un utente crea la sessione (cookie `gst_session`) e fa redirect (302) a `redirectTo`. Altrimenti decide la configurazione del provider: con `linkByVerifiedEmail` (default false) e un'email che il provider dichiara verificata (`email_verified`) collega l'identita' all'utente locale con quella email; con `autoCreateUsers` (default false) crea un nuovo utente (senza password) e lo collega; un'email non verificata non si collega mai a un utente esistente. In tutti gli altri casi (compreso il default, con entrambe le opzioni a false) risponde 409 `oidc_identity_unlinked`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /auth/oidc/{provider}/callback (the `FinishOidcLogin` operationId).
	FinishOidcLoginWithResponse(ctx context.Context, provider OidcProviderParam, params *FinishOidcLoginParams, reqEditors ...RequestEditorFn) (*FinishOidcLoginResponse, error)

	// StartOidcLoginWithResponse Avvia il login OIDC
	//
	// Redirect (302) all'authorization endpoint del provider (authorization code + PKCE). `redirectTo` e' un percorso relativo dove tornare dopo il login.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /auth/oidc/{provider}/start (the `StartOidcLogin` operationId).
	StartOidcLoginWithResponse(ctx context.Context, provider OidcProviderParam, params *StartOidcLoginParams, reqEditors ...RequestEditorFn) (*StartOidcLoginResponse, error)

	// GetCurrentSessionWithResponse Sessione corrente
	//
	// Chi e' il chiamante e con quale credenziale (sessione o token personale, con i suoi scope). Non richiede scope: basta essere autenticati.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /auth/session (the `GetCurrentSession` operationId).
	GetCurrentSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentSessionResponse, error)

	// GetHealthWithResponse Stato del servizio
	//
	// Controllo di salute, senza autenticazione: usato da orchestratore (k3s) e dai probe di deploy.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /health (the `GetHealth` operationId).
	GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)

	// GitCreateRepoWithBodyWithResponse Crea il repo su disco (per core)
	//
	// Implementata a mano dal servizio git (non generata). Crea il bare repo e, se richiesto (R5), il primo commit su `defaultBranch`.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /internal/git/repos (the `GitCreateRepo` operationId).
	GitCreateRepoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GitCreateRepoResponse, error)

	// GitCreateRepoWithResponse Crea il repo su disco (per core)
	//
	// Implementata a mano dal servizio git (non generata). Crea il bare repo e, se richiesto (R5), il primo commit su `defaultBranch`.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /internal/git/repos (the `GitCreateRepo` operationId).
	GitCreateRepoWithResponse(ctx context.Context, body GitCreateRepoJSONRequestBody, reqEditors ...RequestEditorFn) (*GitCreateRepoResponse, error)

	// GitDeleteRepoWithResponse Cancella definitivamente un repo (solo dal cestino)
	//
	// Risponde 409 se il repo non e' nel cestino.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /internal/git/repos/{repoId} (the `GitDeleteRepo` operationId).
	GitDeleteRepoWithResponse(ctx context.Context, repoId GitRepoIdParam, reqEditors ...RequestEditorFn) (*GitDeleteRepoResponse, error)

	// GitGetRepoWithResponse Stato di un repo su disco
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /internal/git/repos/{repoId} (the `GitGetRepo` operationId).
	GitGetRepoWithResponse(ctx context.Context, repoId GitRepoIdParam, reqEditors ...RequestEditorFn) (*GitGetRepoResponse, error)

	// GitGetArchiveWithResponse Archivio ZIP o tar.gz di un ref (streaming) (per core)
	//
	// Corrispondente interno di `getRepositoryArchive`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Archivio dell'albero a `ref`, in ZIP (default) o tar.gz secondo `format`, in streaming (nessun buffer in memoria). Il nome del file (`Content-Disposition`) lo mette il servizio con il nome del repo che gli passa core in `name`; stesse intestazioni di sicurezza di `getRepositoryRaw`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /internal/git/repos/{repoId}/archive (the `GitGetArchive` operationId).
	GitGetArchiveWithResponse(ctx context.Context, repoId GitRepoIdParam, params *GitGetArchiveParams, reqEditors ...RequestEditorFn) (*GitGetArchiveResponse, error)

	// GitGetBlameWithResponse Blame di un file (per core)
	//
	// Corrispondente interno di `getRepositoryBlame`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Per ogni intervallo di righe di `path` a `ref`, il commit che l'ha scritto per ultimo (mockup 08, scheda Blame). Un file binario o oltre 1 MB risponde 400 `blame_unavailable`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /internal/git/repos/{repoId}/blame (the `GitGetBlame` operationId).
	GitGetBlameWithResponse(ctx context.Context, repoId GitRepoIdParam, params *GitGetBlameParams, reqEditors ...RequestEditorFn) (*GitGetBlameResponse, error)

	// GitGetBranchesWithResponse Branch del repo, con conteggi (per core)
	//
	// Corrispondente interno di `getRepositoryBranches`: parla solo per repoId e non conosce utenti ne' permessi. Gli autori non portano `user`: lo aggiunge core. Tutti i branch, con il branch principale (R4) per primo; `total` e' il conteggio (mockup 07: "4 branches").
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /internal/git/repos/{repoId}/branches (the `GitGetBranches` operationId).
	GitGetBranchesWithResponse(ctx context.Context, repoId GitRepoIdParam, reqEditors ...RequestEditorFn) (*GitGetBranchesResponse, error)

	// GitGetCommitsWithResponse Storico dei commit, paginato (per core)
	//
	// Corrispondente interno di `getRepositoryCommits`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Commit raggiungibili da `ref`, dal piu' recente (mockup 09). Filtri `author` (nome o email, senza distinguere maiuscole) e `path` (solo i commit che toccano quel percorso). Pagina di default 30, massimo 100. Ogni autore porta `user` se la sua email corrisponde a un utente GitStack, altrimenti null.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /internal/git/repos/{repoId}/commits (the `GitGetCommits` operationId).
	GitGetCommitsWithResponse(ctx context.Context, repoId GitRepoIdParam, params *GitGetCommitsParams, reqEditors ...RequestEditorFn) (*GitGetCommitsResponse, error)

	// GitGetCommitWithResponse Dettaglio di un commit con diff per file (per core)
	//
	// Corrispondente interno di `getRepositoryCommit`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Messaggio, autore e diff per file (mockup 10). Limiti: al massimo 300 file e 20 000 righe di diff in totale, e 1 MB per file; oltre, il file o la risposta sono marcati `truncated` e il patch e' omesso o parziale. `sha` e' lo sha completo o un prefisso univoco di almeno 7 caratteri; 400 se non e' esadecimale, 404 se non esiste.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /internal/git/repos/{repoId}/commits/{sha} (the `GitGetCommit` operationId).
	GitGetCommitWithResponse(ctx context.Context, repoId GitRepoIdParam, sha CommitShaParam, params *GitGetCommitParams, reqEditors ...RequestEditorFn) (*GitGetCommitResponse, error)

	// GitGetCommitDiffWithResponse Diff completo di un commit come .diff, in streaming (per core)
	//
	// B6: `git diff --binary` del commit contro il primo genitore (contro l'albero vuoto per il commit iniziale), accettato da `git apply`. Content-Type `text/plain`, Content-Disposition `attachment` con nome `<sha12>.diff`, `X-Content-Type-Options: nosniff`. Nessun limite di righe e nessun buffer in memoria. Gli errori (400, 404) escono come JSON prima del primo byte; un errore a meta' interrompe la risposta.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /internal/git/repos/{repoId}/commits/{sha}/diff (the `GitGetCommitDiff` operationId).
	GitGetCommitDiffWithResponse(ctx context.Context, repoId GitRepoIdParam, sha CommitShaParam, params *GitGetCommitDiffParams, reqEditors ...RequestEditorFn) (*GitGetCommitDiffResponse, error)

	// GitGetCommitPatchWithResponse Patch di un commit in formato git format-patch, in streaming (per core)
	//
	// B6: come `gitGetCommitDiff`, ma con messaggio e autore in forma di email (`git format-patch --stdout`; per un commit di merge, contro il primo genitore). Nome `<sha12>.patch`. Accettato da `git apply` e `git am`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /internal/git/repos/{repoId}/commits/{sha}/patch (the `GitGetCommitPatch` operationId).
	GitGetCommitPatchWithResponse(ctx context.Context, repoId GitRepoIdParam, sha CommitShaParam, params *GitGetCommitPatchParams, reqEditors ...RequestEditorFn) (*GitGetCommitPatchResponse, error)

	// GitGetFileWithResponse Contenuto di un file (per core)
	//
	// Corrispondente interno di `getRepositoryFile`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Stesse regole B1 di `getRepositoryFile` per `kind`, `display`, `content`, `encoding`, `mimeType` e `truncated` (1 MB evidenziato, 5 MB testo semplice, immagini inline fino a 1 MB). 404 se `path` non esiste o non e' un file.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /internal/git/repos/{repoId}/contents (the `GitGetFile` operationId).
	GitGetFileWithResponse(ctx context.Context, repoId GitRepoIdParam, params *GitGetFileParams, reqEditors ...RequestEditorFn) (*GitGetFileResponse, error)

	// GitListFilesWithResponse Percorsi di tutti i file di un ref (per core)
	//
	// Corrispondente interno di `listRepositoryFiles`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Stesse regole B5 (al massimo 50 000 percorsi, `truncated`).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /internal/git/repos/{repoId}/files (the `GitListFiles` operationId).
	GitListFilesWithResponse(ctx context.Context, repoId GitRepoIdParam, params *GitListFilesParams, reqEditors ...RequestEditorFn) (*GitListFilesResponse, error)

	// GitGetLanguagesWithResponse Lingue del repo (per core)
	//
	// Corrispondente interno di `getRepositoryLanguages`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Byte per linguaggio al branch principale o a `ref`, con la percentuale sul totale, in ordine decrescente (pannello About, mockup 07). Un repo vuoto risponde lista vuota.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /internal/git/repos/{repoId}/languages (the `GitGetLanguages` operationId).
	GitGetLanguagesWithResponse(ctx context.Context, repoId GitRepoIdParam, params *GitGetLanguagesParams, reqEditors ...RequestEditorFn) (*GitGetLanguagesResponse, error)

	// GitGetRawWithResponse Contenuto grezzo di un file (streaming) (per core)
	//
	// Corrispondente interno di `getRepositoryRaw`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Byte del file `path` a `ref`, senza limite di dimensione, in streaming (nessun buffer in memoria), `Content-Length` quando noto. Le intestazioni di sicurezza della regola B3 le scrive questo servizio (non nginx, ne' core le riscrive): vedi `getRepositoryRaw`. 404 se `path` non esiste o non e' un file.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /internal/git/repos/{repoId}/raw (the `GitGetRaw` operationId).
	GitGetRawWithResponse(ctx context.Context, repoId GitRepoIdParam, params *GitGetRawParams, reqEditors ...RequestEditorFn) (*GitGetRawResponse, error)

	// GitGetReadmeWithResponse README di una cartella (per core)
	//
	// Corrispondente interno di `getRepositoryReadme`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Il README della cartella `path` (radice se assente), cercato come `README.md`, `README`, `README.txt` (senza distinguere maiuscole), con le stesse regole B1 di `contents`. 404 se non c'e'.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /internal/git/repos/{repoId}/readme (the `GitGetReadme` operationId).
	GitGetReadmeWithResponse(ctx context.Context, repoId GitRepoIdParam, params *GitGetReadmeParams, reqEditors ...RequestEditorFn) (*GitGetReadmeResponse, error)

	// GitRestoreRepoWithResponse Ripristina un repo dal cestino (R2)
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /internal/git/repos/{repoId}/restore (the `GitRestoreRepo` operationId).
	GitRestoreRepoWithResponse(ctx context.Context, repoId GitRepoIdParam, reqEditors ...RequestEditorFn) (*GitRestoreRepoResponse, error)

	// GitSearchCodeWithResponse Cerca un testo nel codice di un ref (per core)
	//
	// Corrispondente interno di `searchRepositoryCode`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Stesse regole B5 (100 risultati, 10 secondi, senza indice).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /internal/git/repos/{repoId}/search (the `GitSearchCode` operationId).
	GitSearchCodeWithResponse(ctx context.Context, repoId GitRepoIdParam, params *GitSearchCodeParams, reqEditors ...RequestEditorFn) (*GitSearchCodeResponse, error)

	// GitGetTagsWithResponse Tag del repo, con conteggi (per core)
	//
	// Corrispondente interno di `getRepositoryTags`: parla solo per repoId e non conosce utenti ne' permessi. Gli autori non portano `user`: lo aggiunge core. Tutti i tag, dal piu' recente; `total` e' il conteggio (mockup 07: "7 tags").
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /internal/git/repos/{repoId}/tags (the `GitGetTags` operationId).
	GitGetTagsWithResponse(ctx context.Context, repoId GitRepoIdParam, reqEditors ...RequestEditorFn) (*GitGetTagsResponse, error)

	// GitTrashRepoWithResponse Sposta un repo nel cestino (R2)
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /internal/git/repos/{repoId}/trash (the `GitTrashRepo` operationId).
	GitTrashRepoWithResponse(ctx context.Context, repoId GitRepoIdParam, reqEditors ...RequestEditorFn) (*GitTrashRepoResponse, error)

	// GitGetTreeWithResponse Albero di una cartella con l'ultimo commit per voce (per core)
	//
	// Corrispondente interno di `getRepositoryTree`: parla solo per repoId e non conosce utenti ne' permessi. `ref` e' sempre esplicito (lo risolve core). Gli autori non portano `user`: lo aggiunge core. Voci della cartella `path` (radice se assente) a `ref`, con l'ultimo commit che ha toccato ciascuna (mockup 07). Al massimo 1 000 voci: oltre, `truncated` e' true. Ordine: cartelle, poi file, per nome. 404 se `path` non esiste o non e' una cartella.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /internal/git/repos/{repoId}/tree (the `GitGetTree` operationId).
	GitGetTreeWithResponse(ctx context.Context, repoId GitRepoIdParam, params *GitGetTreeParams, reqEditors ...RequestEditorFn) (*GitGetTreeResponse, error)

	// ResolveMentionsWithBodyWithResponse Risolve le menzioni `@utente`, `@agente` e `@org/team`
	//
	// Per core (M-06, I8): il motore delle notifiche trasforma i nomi citati nel testo di una issue o di un commento in utenti. Ogni nome e' `utente` (persona o agente) oppure `org/team`; il confronto non distingue maiuscole. Un nome che non e' un utente attivo o un team esistente non compare nella risposta (resta testo). Un team si espande in tutti i suoi membri attivi: chi vede il repo lo decide core. Massimo 100 nomi per chiamata.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /internal/mentions/resolve (the `ResolveMentions` operationId).
	ResolveMentionsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResolveMentionsResponse, error)

	// ResolveMentionsWithResponse Risolve le menzioni `@utente`, `@agente` e `@org/team`
	//
	// Per core (M-06, I8): il motore delle notifiche trasforma i nomi citati nel testo di una issue o di un commento in utenti. Ogni nome e' `utente` (persona o agente) oppure `org/team`; il confronto non distingue maiuscole. Un nome che non e' un utente attivo o un team esistente non compare nella risposta (resta testo). Un team si espande in tutti i suoi membri attivi: chi vede il repo lo decide core. Massimo 100 nomi per chiamata.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /internal/mentions/resolve (the `ResolveMentions` operationId).
	ResolveMentionsWithResponse(ctx context.Context, body ResolveMentionsJSONRequestBody, reqEditors ...RequestEditorFn) (*ResolveMentionsResponse, error)

	// ListOrgOwnersWithResponse Elenca gli owner di un'organizzazione
	//
	// Per core (M-06/G, webhook di organizzazione, C6): chi puo' gestire un webhook di organizzazione sono gli owner, e a loro va la notifica di disattivazione (C7). Restituisce gli id utente degli owner; 404 se l'organizzazione non esiste.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /internal/orgs/{orgId}/owners (the `ListOrgOwners` operationId).
	ListOrgOwnersWithResponse(ctx context.Context, orgId openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListOrgOwnersResponse, error)

	// ResolveOwnerWithResponse Risolve il nome di un utente o di un'organizzazione
	//
	// Spazio di nomi unico (R1): restituisce tipo e id di chi si chiama cosi', 404 se il nome non esiste.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /internal/owners/{name} (the `ResolveOwner` operationId).
	ResolveOwnerWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*ResolveOwnerResponse, error)

	// CheckPermissionWithBodyWithResponse Verifica un permesso su una risorsa
	//
	// Usata da core e git per applicare i permessi: `allowed` e' vero se l'utente ha almeno il ruolo richiesto sulla risorsa (grant diretto, via team, amministratore; owner dell'organizzazione e proprietario del repo personale sono admin, una risorsa interna e' leggibile da ogni utente attivo: P1, P6, P3).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /internal/permissions/check (the `CheckPermission` operationId).
	CheckPermissionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CheckPermissionResponse, error)

	// CheckPermissionWithResponse Verifica un permesso su una risorsa
	//
	// Usata da core e git per applicare i permessi: `allowed` e' vero se l'utente ha almeno il ruolo richiesto sulla risorsa (grant diretto, via team, amministratore; owner dell'organizzazione e proprietario del repo personale sono admin, una risorsa interna e' leggibile da ogni utente attivo: P1, P6, P3).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /internal/permissions/check (the `CheckPermission` operationId).
	CheckPermissionWithResponse(ctx context.Context, body CheckPermissionJSONRequestBody, reqEditors ...RequestEditorFn) (*CheckPermissionResponse, error)

	// ListReadableResourcesWithBodyWithResponse Risorse leggibili da un utente
	//
	// Usata da core per filtrare l'elenco delle risorse: `resourceIds` sono le risorse su cui l'utente ha almeno read (grant diretto, via team o via owner dell'organizzazione, owner della risorsa o visibilita' interna: stesse regole di `checkPermission`). `all` e' vero solo per l'amministratore di sistema, e in quel caso `resourceIds` e' vuoto. Un utente inesistente o disattivato riceve `all` falso e nessuna risorsa.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /internal/permissions/readable-resources (the `ListReadableResources` operationId).
	ListReadableResourcesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListReadableResourcesResponse, error)

	// ListReadableResourcesWithResponse Risorse leggibili da un utente
	//
	// Usata da core per filtrare l'elenco delle risorse: `resourceIds` sono le risorse su cui l'utente ha almeno read (grant diretto, via team o via owner dell'organizzazione, owner della risorsa o visibilita' interna: stesse regole di `checkPermission`). `all` e' vero solo per l'amministratore di sistema, e in quel caso `resourceIds` e' vuoto. Un utente inesistente o disattivato riceve `all` falso e nessuna risorsa.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /internal/permissions/readable-resources (the `ListReadableResources` operationId).
	ListReadableResourcesWithResponse(ctx context.Context, body ListReadableResourcesJSONRequestBody, reqEditors ...RequestEditorFn) (*ListReadableResourcesResponse, error)

	// GetUserAccessSourcesWithBodyWithResponse Risorse raggiungibili da un utente, con ruolo e fonti
	//
	// Per core (`getUserAccess`): per ogni risorsa con un grant o un attributo che riguarda l'utente, il ruolo effettivo e le fonti (stesse regole di `checkPermission`). Per l'amministratore di sistema `admin` e' vero e `items` e' vuoto (core elenca tutti i repo). Utente disattivato: nessun elemento. Utente inesistente: 404.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /internal/permissions/user-access (the `GetUserAccessSources` operationId).
	GetUserAccessSourcesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserAccessSourcesResponse, error)

	// GetUserAccessSourcesWithResponse Risorse raggiungibili da un utente, con ruolo e fonti
	//
	// Per core (`getUserAccess`): per ogni risorsa con un grant o un attributo che riguarda l'utente, il ruolo effettivo e le fonti (stesse regole di `checkPermission`). Per l'amministratore di sistema `admin` e' vero e `items` e' vuoto (core elenca tutti i repo). Utente disattivato: nessun elemento. Utente inesistente: 404.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /internal/permissions/user-access (the `GetUserAccessSources` operationId).
	GetUserAccessSourcesWithResponse(ctx context.Context, body GetUserAccessSourcesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserAccessSourcesResponse, error)

	// PurgeResourceAccessWithResponse Toglie grant e attributi di una risorsa cancellata (per core)
	//
	// Per core (M-03/F): dopo la cancellazione definitiva di un repo (R2) toglie tutti i grant (`resource_grants`) e gli attributi di owner e visibilita' della risorsa. Idempotente: 204 anche se non c'era niente da togliere.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /internal/resources/{resourceId} (the `PurgeResourceAccess` operationId).
	PurgeResourceAccessWithResponse(ctx context.Context, resourceId openapi_types.UUID, reqEditors ...RequestEditorFn) (*PurgeResourceAccessResponse, error)

	// SetResourceAttributesWithBodyWithResponse Imposta owner e visibilita' di una risorsa (per core)
	//
	// Servita da identity (D-C, M-03). Core la chiama alla creazione di un repo, prima di `grantResourceCreator`, e a ogni cambio di visibilita'. L'owner non cambia mai (R3). Idempotente. Una risorsa senza attributi si comporta come prima di M-03. Con attributi valgono P1 (owner dell'organizzazione: admin), P6 (proprietario del repo personale: admin) e P3 (interno: read a ogni utente attivo), sia in `checkPermission` sia in `listReadableResources`. 404 se l'owner non esiste, 409 se la risorsa ha gia' un altro owner.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /internal/resources/{resourceId}/attributes (the `SetResourceAttributes` operationId).
	SetResourceAttributesWithBodyWithResponse(ctx context.Context, resourceId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetResourceAttributesResponse, error)

	// SetResourceAttributesWithResponse Imposta owner e visibilita' di una risorsa (per core)
	//
	// Servita da identity (D-C, M-03). Core la chiama alla creazione di un repo, prima di `grantResourceCreator`, e a ogni cambio di visibilita'. L'owner non cambia mai (R3). Idempotente. Una risorsa senza attributi si comporta come prima di M-03. Con attributi valgono P1 (owner dell'organizzazione: admin), P6 (proprietario del repo personale: admin) e P3 (interno: read a ogni utente attivo), sia in `checkPermission` sia in `listReadableResources`. 404 se l'owner non esiste, 409 se la risorsa ha gia' un altro owner.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /internal/resources/{resourceId}/attributes (the `SetResourceAttributes` operationId).
	SetResourceAttributesWithResponse(ctx context.Context, resourceId openapi_types.UUID, body SetResourceAttributesJSONRequestBody, reqEditors ...RequestEditorFn) (*SetResourceAttributesResponse, error)

	// GrantResourceCreatorWithBodyWithResponse Assegna il ruolo admin al creatore di una risorsa
	//
	// Usata da core dopo la creazione di una risorsa: l'utente indicato riceve il grant admin (granted_by = lo stesso utente). Idempotente: se l'utente ha gia' un grant sulla risorsa lo porta ad admin e risponde 200.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /internal/resources/{resourceId}/grants/creator (the `GrantResourceCreator` operationId).
	GrantResourceCreatorWithBodyWithResponse(ctx context.Context, resourceId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GrantResourceCreatorResponse, error)

	// GrantResourceCreatorWithResponse Assegna il ruolo admin al creatore di una risorsa
	//
	// Usata da core dopo la creazione di una risorsa: l'utente indicato riceve il grant admin (granted_by = lo stesso utente). Idempotente: se l'utente ha gia' un grant sulla risorsa lo porta ad admin e risponde 200.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /internal/resources/{resourceId}/grants/creator (the `GrantResourceCreator` operationId).
	GrantResourceCreatorWithResponse(ctx context.Context, resourceId openapi_types.UUID, body GrantResourceCreatorJSONRequestBody, reqEditors ...RequestEditorFn) (*GrantResourceCreatorResponse, error)

	// LookupSshKeyWithResponse Risolve un utente dal fingerprint di una chiave SSH
	//
	// Usata dal servizio git all'accesso SSH. Aggiorna `lastUsedAt`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /internal/ssh-keys/{fingerprint} (the `LookupSshKey` operationId).
	LookupSshKeyWithResponse(ctx context.Context, fingerprint string, reqEditors ...RequestEditorFn) (*LookupSshKeyResponse, error)

	// LookupUsersByEmailWithBodyWithResponse Trova gli utenti GitStack dalle email dei commit
	//
	// Per core (M-04): confronta le email, senza distinguere maiuscole, con `users.email` (unica su lower(email)). Massimo 100 email per chiamata; core la chiama una volta per pagina di storico, dettaglio o blame. Le email senza utente non compaiono nella risposta.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /internal/users/lookup-emails (the `LookupUsersByEmail` operationId).
	LookupUsersByEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LookupUsersByEmailResponse, error)

	// LookupUsersByEmailWithResponse Trova gli utenti GitStack dalle email dei commit
	//
	// Per core (M-04): confronta le email, senza distinguere maiuscole, con `users.email` (unica su lower(email)). Massimo 100 email per chiamata; core la chiama una volta per pagina di storico, dettaglio o blame. Le email senza utente non compaiono nella risposta.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /internal/users/lookup-emails (the `LookupUsersByEmail` operationId).
	LookupUsersByEmailWithResponse(ctx context.Context, body LookupUsersByEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*LookupUsersByEmailResponse, error)

	// LookupUsersByIdsWithBodyWithResponse Risolve gli id utente in nome e tipo
	//
	// Per core (M-05): le issues conservano solo gli id degli utenti e la risposta li mostra con nome utente e tipo (persona o agente). Massimo 100 id per chiamata; gli id senza utente non compaiono nella risposta. Gli utenti disattivati restano.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /internal/users/lookup-ids (the `LookupUsersByIds` operationId).
	LookupUsersByIdsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LookupUsersByIdsResponse, error)

	// LookupUsersByIdsWithResponse Risolve gli id utente in nome e tipo
	//
	// Per core (M-05): le issues conservano solo gli id degli utenti e la risposta li mostra con nome utente e tipo (persona o agente). Massimo 100 id per chiamata; gli id senza utente non compaiono nella risposta. Gli utenti disattivati restano.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /internal/users/lookup-ids (the `LookupUsersByIds` operationId).
	LookupUsersByIdsWithResponse(ctx context.Context, body LookupUsersByIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*LookupUsersByIdsResponse, error)

	// VerifyCredentialWithBodyWithResponse Verifica una credenziale (per il gateway)
	//
	// Il gateway invia il valore grezzo della credenziale (cookie di sessione oppure token `gst_...`) e riceve il principal. Non c'e' distinzione fra "sconosciuta", "scaduta" e "revocata": `active` false. Aggiorna `last_used_at` (al piu' una volta al minuto per credenziale).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /internal/verify (the `VerifyCredential` operationId).
	VerifyCredentialWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyCredentialResponse, error)

	// VerifyCredentialWithResponse Verifica una credenziale (per il gateway)
	//
	// Il gateway invia il valore grezzo della credenziale (cookie di sessione oppure token `gst_...`) e riceve il principal. Non c'e' distinzione fra "sconosciuta", "scaduta" e "revocata": `active` false. Aggiorna `last_used_at` (al piu' una volta al minuto per credenziale).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /internal/verify (the `VerifyCredential` operationId).
	VerifyCredentialWithResponse(ctx context.Context, body VerifyCredentialJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyCredentialResponse, error)

	// GetMetaWithResponse Versione del server
	//
	// Versione dell'installazione e del contratto API, senza autenticazione. Usato da gs per il controllo di compatibilita (G6).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /meta (the `GetMeta` operationId).
	GetMetaWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMetaResponse, error)

	// DeleteNotificationsWithResponse Elimina in blocco le notifiche
	//
	// Elimina le notifiche dell'utente corrente nello stato indicato (`read` o `archived`; le non lette non si eliminano in blocco), con gli stessi filtri `reason` e `repo` dell'elenco (C9). Risponde 200 con il numero di notifiche eliminate.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /notifications (the `DeleteNotifications` operationId).
	DeleteNotificationsWithResponse(ctx context.Context, params *DeleteNotificationsParams, reqEditors ...RequestEditorFn) (*DeleteNotificationsResponse, error)

	// ListNotificationsWithResponse Casella delle notifiche
	//
	// Notifiche dell'utente corrente, dalla piu' recente (`createdAt` decrescente, poi `id`). Filtri: `reason` (uno o piu' motivi separati da virgola), `state` (`unread` default, `read`, `archived`, `all`; le archiviate compaiono solo con `archived` o `all`) e `repo` (`owner/repo`). Stessa casella e stesse regole per persone e agenti (C4); `gs notification list --json` usa questa operazione. Le notifiche di un repo che l'utente non legge piu' non compaiono e vengono eliminate (C9). `unreadCount` conta le non lette non archiviate dell'utente, con i soli filtri `reason` e `repo`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /notifications (the `ListNotifications` operationId).
	ListNotificationsWithResponse(ctx context.Context, params *ListNotificationsParams, reqEditors ...RequestEditorFn) (*ListNotificationsResponse, error)

	// MarkAllNotificationsReadWithResponse Segna come lette tutte le notifiche
	//
	// Segna come lette le notifiche non lette dell'utente corrente, con gli stessi filtri facoltativi (`reason`, `repo`) dell'elenco. Idempotente. Le archiviate non cambiano.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /notifications/read-all (the `MarkAllNotificationsRead` operationId).
	MarkAllNotificationsReadWithResponse(ctx context.Context, params *MarkAllNotificationsReadParams, reqEditors ...RequestEditorFn) (*MarkAllNotificationsReadResponse, error)

	// DeleteNotificationWithResponse Elimina una notifica
	//
	// Eliminazione manuale (C9), anche di una non letta.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /notifications/{notificationId} (the `DeleteNotification` operationId).
	DeleteNotificationWithResponse(ctx context.Context, notificationId NotificationIdParam, reqEditors ...RequestEditorFn) (*DeleteNotificationResponse, error)

	// GetNotificationWithResponse Legge una notifica
	//
	// Una notifica di un'altra persona risponde 404, come una inesistente.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /notifications/{notificationId} (the `GetNotification` operationId).
	GetNotificationWithResponse(ctx context.Context, notificationId NotificationIdParam, reqEditors ...RequestEditorFn) (*GetNotificationResponse, error)

	// UpdateNotificationWithBodyWithResponse Segna come letta/non letta o archivia
	//
	// Imposta `read` (segna come letta o di nuovo non letta) e/o `archived` (archivia o ripristina). Almeno un campo, altrimenti 400. Idempotente.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /notifications/{notificationId} (the `UpdateNotification` operationId).
	UpdateNotificationWithBodyWithResponse(ctx context.Context, notificationId NotificationIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNotificationResponse, error)

	// UpdateNotificationWithResponse Segna come letta/non letta o archivia
	//
	// Imposta `read` (segna come letta o di nuovo non letta) e/o `archived` (archivia o ripristina). Almeno un campo, altrimenti 400. Idempotente.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /notifications/{notificationId} (the `UpdateNotification` operationId).
	UpdateNotificationWithResponse(ctx context.Context, notificationId NotificationIdParam, body UpdateNotificationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNotificationResponse, error)

	// ListOrganizationsWithResponse Elenca le organizzazioni
	//
	// Le organizzazioni di cui il chiamante e' membro (tutte, per un amministratore). Scope `read:org`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /orgs (the `ListOrganizations` operationId).
	ListOrganizationsWithResponse(ctx context.Context, params *ListOrganizationsParams, reqEditors ...RequestEditorFn) (*ListOrganizationsResponse, error)

	// CreateOrganizationWithBodyWithResponse Crea un'organizzazione
	//
	// Scope `write:org`. Il creatore ne diventa `owner`.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /orgs (the `CreateOrganization` operationId).
	CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)

	// CreateOrganizationWithResponse Crea un'organizzazione
	//
	// Scope `write:org`. Il creatore ne diventa `owner`.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /orgs (the `CreateOrganization` operationId).
	CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)

	// DeleteOrganizationWithResponse Elimina un'organizzazione
	//
	// Scope `admin:org`, ruolo `owner`. Elimina a cascata team e membership.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /orgs/{org} (the `DeleteOrganization` operationId).
	DeleteOrganizationWithResponse(ctx context.Context, org OrgParam, reqEditors ...RequestEditorFn) (*DeleteOrganizationResponse, error)

	// GetOrganizationWithResponse Legge un'organizzazione
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /orgs/{org} (the `GetOrganization` operationId).
	GetOrganizationWithResponse(ctx context.Context, org OrgParam, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error)

	// UpdateOrganizationWithBodyWithResponse Aggiorna un'organizzazione
	//
	// Scope `write:org`, ruolo `owner`.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /orgs/{org} (the `UpdateOrganization` operationId).
	UpdateOrganizationWithBodyWithResponse(ctx context.Context, org OrgParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error)

	// UpdateOrganizationWithResponse Aggiorna un'organizzazione
	//
	// Scope `write:org`, ruolo `owner`.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /orgs/{org} (the `UpdateOrganization` operationId).
	UpdateOrganizationWithResponse(ctx context.Context, org OrgParam, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error)

	// ListOrgWebhooksWithResponse Elenca i webhook di un'organizzazione
	//
	// Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Il segreto non torna mai: `hasSecret` dice se c'e'. Paginazione come `GET /repos`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /orgs/{org}/hooks (the `ListOrgWebhooks` operationId).
	ListOrgWebhooksWithResponse(ctx context.Context, org OrgParam, params *ListOrgWebhooksParams, reqEditors ...RequestEditorFn) (*ListOrgWebhooksResponse, error)

	// CreateOrgWebhookWithBodyWithResponse Crea un webhook di un'organizzazione
	//
	// Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. `url` http o https; sempre bloccati loopback, indirizzi interni del cluster e link-local, anche dopo redirect e risoluzione DNS, e le destinazioni vietate dall'amministratore (C8): 422 (`details.fields.url`, codice `url_not_allowed`). `events` almeno uno fra `push`, `issues`, `issue_comment`, `repository`. Il `secret` e' facoltativo (senza, la consegna non e' firmata): non torna mai nelle risposte. Il formato dei payload e le intestazioni sono in docs/webhooks.md.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /orgs/{org}/hooks (the `CreateOrgWebhook` operationId).
	CreateOrgWebhookWithBodyWithResponse(ctx context.Context, org OrgParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrgWebhookResponse, error)

	// CreateOrgWebhookWithResponse Crea un webhook di un'organizzazione
	//
	// Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. `url` http o https; sempre bloccati loopback, indirizzi interni del cluster e link-local, anche dopo redirect e risoluzione DNS, e le destinazioni vietate dall'amministratore (C8): 422 (`details.fields.url`, codice `url_not_allowed`). `events` almeno uno fra `push`, `issues`, `issue_comment`, `repository`. Il `secret` e' facoltativo (senza, la consegna non e' firmata): non torna mai nelle risposte. Il formato dei payload e le intestazioni sono in docs/webhooks.md.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /orgs/{org}/hooks (the `CreateOrgWebhook` operationId).
	CreateOrgWebhookWithResponse(ctx context.Context, org OrgParam, body CreateOrgWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrgWebhookResponse, error)

	// DeleteOrgWebhookWithResponse Elimina un webhook di un'organizzazione
	//
	// Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Elimina anche il log delle consegne e le notifiche di disattivazione collegate.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /orgs/{org}/hooks/{hookId} (the `DeleteOrgWebhook` operationId).
	DeleteOrgWebhookWithResponse(ctx context.Context, org OrgParam, hookId WebhookIdParam, reqEditors ...RequestEditorFn) (*DeleteOrgWebhookResponse, error)

	// GetOrgWebhookWithResponse Legge un webhook di un'organizzazione
	//
	// Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Un webhook di un altro repo o organizzazione risponde 404.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /orgs/{org}/hooks/{hookId} (the `GetOrgWebhook` operationId).
	GetOrgWebhookWithResponse(ctx context.Context, org OrgParam, hookId WebhookIdParam, reqEditors ...RequestEditorFn) (*GetOrgWebhookResponse, error)

	// UpdateOrgWebhookWithBodyWithResponse Modifica un webhook di un'organizzazione
	//
	// Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Cambia solo i campi indicati. `secret`: una stringa sostituisce il segreto, la stringa vuota lo toglie. `active: false` mette in pausa il webhook senza eliminarlo. Un webhook disattivato dai fallimenti (C7) si riattiva con l'operazione `reactivate`, non con `active: true`: 409 `webhook_disabled`.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /orgs/{org}/hooks/{hookId} (the `UpdateOrgWebhook` operationId).
	UpdateOrgWebhookWithBodyWithResponse(ctx context.Context, org OrgParam, hookId WebhookIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrgWebhookResponse, error)

	// UpdateOrgWebhookWithResponse Modifica un webhook di un'organizzazione
	//
	// Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Cambia solo i campi indicati. `secret`: una stringa sostituisce il segreto, la stringa vuota lo toglie. `active: false` mette in pausa il webhook senza eliminarlo. Un webhook disattivato dai fallimenti (C7) si riattiva con l'operazione `reactivate`, non con `active: true`: 409 `webhook_disabled`.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /orgs/{org}/hooks/{hookId} (the `UpdateOrgWebhook` operationId).
	UpdateOrgWebhookWithResponse(ctx context.Context, org OrgParam, hookId WebhookIdParam, body UpdateOrgWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrgWebhookResponse, error)

	// ListOrgWebhookDeliveriesWithResponse Log delle consegne di un webhook di un'organizzazione
	//
	// Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Dalla piu' recente. Le consegne si conservano 30 giorni (C7). Filtro per `status`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /orgs/{org}/hooks/{hookId}/deliveries (the `ListOrgWebhookDeliveries` operationId).
	ListOrgWebhookDeliveriesWithResponse(ctx context.Context, org OrgParam, hookId WebhookIdParam, params *ListOrgWebhookDeliveriesParams, reqEditors ...RequestEditorFn) (*ListOrgWebhookDeliveriesResponse, error)

	// GetOrgWebhookDeliveryWithResponse Dettaglio di una consegna di un'organizzazione
	//
	// Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Con la richiesta inviata (intestazioni e payload) e la risposta ricevuta, troncata a 4 KB (C8).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /orgs/{org}/hooks/{hookId}/deliveries/{deliveryId} (the `GetOrgWebhookDelivery` operationId).
	GetOrgWebhookDeliveryWithResponse(ctx context.Context, org OrgParam, hookId WebhookIdParam, deliveryId WebhookDeliveryIdParam, reqEditors ...RequestEditorFn) (*GetOrgWebhookDeliveryResponse, error)

	// RedeliverOrgWebhookDeliveryWithResponse Rinvia una consegna (Redeliver) di un'organizzazione
	//
	// Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Crea una consegna nuova con lo stesso payload e un nuovo `X-GitStack-Delivery` (`redeliveryOf` punta all'originale), firmata di nuovo col segreto corrente. Risponde 202: la consegna e' in coda e il risultato si legge dal log. Funziona anche su un webhook non attivo e dopo un `410 Gone`; una consegna piu' vecchia di 30 giorni non esiste piu' (404).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /orgs/{org}/hooks/{hookId}/deliveries/{deliveryId}/redeliver (the `RedeliverOrgWebhookDelivery` operationId).
	RedeliverOrgWebhookDeliveryWithResponse(ctx context.Context, org OrgParam, hookId WebhookIdParam, deliveryId WebhookDeliveryIdParam, reqEditors ...RequestEditorFn) (*RedeliverOrgWebhookDeliveryResponse, error)

	// ReactivateOrgWebhookWithResponse Riattiva un webhook di un'organizzazione
	//
	// Serve il ruolo `owner` dell'organizzazione (C6); chi non la vede ha 404, un membro non owner 403. Il webhook riceve gli eventi di tutti i repo dell'organizzazione. Riattiva un webhook (disattivato a mano o dopo 3 giorni di fallimenti consecutivi, C7): `active` torna `true` e i fallimenti consecutivi si azzerano. Idempotente su un webhook gia' attivo.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /orgs/{org}/hooks/{hookId}/reactivate (the `ReactivateOrgWebhook` operationId).
	ReactivateOrgWebhookWithResponse(ctx context.Context, org OrgParam, hookId WebhookIdParam, reqEditors ...RequestEditorFn) (*ReactivateOrgWebhookResponse, error)

	// ListOrgMembersWithResponse Elenca i membri di un'organizzazione
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /orgs/{org}/members (the `ListOrgMembers` operationId).
	ListOrgMembersWithResponse(ctx context.Context, org OrgParam, params *ListOrgMembersParams, reqEditors ...RequestEditorFn) (*ListOrgMembersResponse, error)

	// RemoveOrgMemberWithResponse Rimuove un membro
	//
	// Scope `write:org`, ruolo `owner` (o l'utente stesso). Lo toglie anche da tutti i team. Non si rimuove l'ultimo `owner` (409 `last_owner`).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /orgs/{org}/members/{username} (the `RemoveOrgMember` operationId).
	RemoveOrgMemberWithResponse(ctx context.Context, org OrgParam, username UsernameParam, reqEditors ...RequestEditorFn) (*RemoveOrgMemberResponse, error)

	// SetOrgMemberWithBodyWithResponse Aggiunge un membro o ne cambia il ruolo
	//
	// Scope `write:org`, ruolo `owner`. Idempotente.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /orgs/{org}/members/{username} (the `SetOrgMember` operationId).
	SetOrgMemberWithBodyWithResponse(ctx context.Context, org OrgParam, username UsernameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetOrgMemberResponse, error)

	// SetOrgMemberWithResponse Aggiunge un membro o ne cambia il ruolo
	//
	// Scope `write:org`, ruolo `owner`. Idempotente.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /orgs/{org}/members/{username} (the `SetOrgMember` operationId).
	SetOrgMemberWithResponse(ctx context.Context, org OrgParam, username UsernameParam, body SetOrgMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*SetOrgMemberResponse, error)

	// ListTeamsWithResponse Elenca i team di un'organizzazione
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /orgs/{org}/teams (the `ListTeams` operationId).
	ListTeamsWithResponse(ctx context.Context, org OrgParam, params *ListTeamsParams, reqEditors ...RequestEditorFn) (*ListTeamsResponse, error)

	// CreateTeamWithBodyWithResponse Crea un team
	//
	// Scope `write:org`, ruolo `owner`.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /orgs/{org}/teams (the `CreateTeam` operationId).
	CreateTeamWithBodyWithResponse(ctx context.Context, org OrgParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error)

	// CreateTeamWithResponse Crea un team
	//
	// Scope `write:org`, ruolo `owner`.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /orgs/{org}/teams (the `CreateTeam` operationId).
	CreateTeamWithResponse(ctx context.Context, org OrgParam, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error)

	// DeleteTeamWithResponse Elimina un team
	//
	// Elimina anche i grant assegnati al team.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /orgs/{org}/teams/{team} (the `DeleteTeam` operationId).
	DeleteTeamWithResponse(ctx context.Context, org OrgParam, team TeamParam, reqEditors ...RequestEditorFn) (*DeleteTeamResponse, error)

	// GetTeamWithResponse Legge un team
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /orgs/{org}/teams/{team} (the `GetTeam` operationId).
	GetTeamWithResponse(ctx context.Context, org OrgParam, team TeamParam, reqEditors ...RequestEditorFn) (*GetTeamResponse, error)

	// UpdateTeamWithBodyWithResponse Aggiorna un team
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /orgs/{org}/teams/{team} (the `UpdateTeam` operationId).
	UpdateTeamWithBodyWithResponse(ctx context.Context, org OrgParam, team TeamParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTeamResponse, error)

	// UpdateTeamWithResponse Aggiorna un team
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /orgs/{org}/teams/{team} (the `UpdateTeam` operationId).
	UpdateTeamWithResponse(ctx context.Context, org OrgParam, team TeamParam, body UpdateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTeamResponse, error)

	// ListTeamMembersWithResponse Elenca i membri di un team
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /orgs/{org}/teams/{team}/members (the `ListTeamMembers` operationId).
	ListTeamMembersWithResponse(ctx context.Context, org OrgParam, team TeamParam, params *ListTeamMembersParams, reqEditors ...RequestEditorFn) (*ListTeamMembersResponse, error)

	// RemoveTeamMemberWithResponse Rimuove un membro dal team
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /orgs/{org}/teams/{team}/members/{username} (the `RemoveTeamMember` operationId).
	RemoveTeamMemberWithResponse(ctx context.Context, org OrgParam, team TeamParam, username UsernameParam, reqEditors ...RequestEditorFn) (*RemoveTeamMemberResponse, error)

	// SetTeamMemberWithBodyWithResponse Aggiunge un membro al team o ne cambia il ruolo
	//
	// Scope `write:org`. L'utente deve essere gia' membro dell'organizzazione (altrimenti 422 `not_org_member`). Idempotente.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /orgs/{org}/teams/{team}/members/{username} (the `SetTeamMember` operationId).
	SetTeamMemberWithBodyWithResponse(ctx context.Context, org OrgParam, team TeamParam, username UsernameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetTeamMemberResponse, error)

	// SetTeamMemberWithResponse Aggiunge un membro al team o ne cambia il ruolo
	//
	// Scope `write:org`. L'utente deve essere gia' membro dell'organizzazione (altrimenti 422 `not_org_member`). Idempotente.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /orgs/{org}/teams/{team}/members/{username} (the `SetTeamMember` operationId).
	SetTeamMemberWithResponse(ctx context.Context, org OrgParam, team TeamParam, username UsernameParam, body SetTeamMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*SetTeamMemberResponse, error)

	// ListRepositoriesWithResponse Elenca i repo leggibili dall'utente
	//
	// Repo che l'utente corrente puo' leggere (P1, P3, P6), esclusi quelli eliminati; con `owner` solo quelli di quell'utente o organizzazione. Paginazione come `GET /resources`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos (the `ListRepositories` operationId).
	ListRepositoriesWithResponse(ctx context.Context, params *ListRepositoriesParams, reqEditors ...RequestEditorFn) (*ListRepositoriesResponse, error)

	// CreateRepositoryWithBodyWithResponse Crea un repo
	//
	// `owner` e' il nome dell'utente o dell'organizzazione (spazio di nomi unico, R1). Serve poter creare repo per quell'owner: se stesso, o un owner dell'organizzazione. Il creatore riceve il ruolo `admin`. Senza opzioni di contenuto iniziale (R5) il repo nasce vuoto. Risponde 409 se il nome e' occupato, anche da un repo eliminato (R2); 404 se `owner` non esiste.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /repos (the `CreateRepository` operationId).
	CreateRepositoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRepositoryResponse, error)

	// CreateRepositoryWithResponse Crea un repo
	//
	// `owner` e' il nome dell'utente o dell'organizzazione (spazio di nomi unico, R1). Serve poter creare repo per quell'owner: se stesso, o un owner dell'organizzazione. Il creatore riceve il ruolo `admin`. Senza opzioni di contenuto iniziale (R5) il repo nasce vuoto. Risponde 409 se il nome e' occupato, anche da un repo eliminato (R2); 404 se `owner` non esiste.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /repos (the `CreateRepository` operationId).
	CreateRepositoryWithResponse(ctx context.Context, body CreateRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRepositoryResponse, error)

	// ListDeletedRepositoriesWithResponse Elenca i repo eliminati e ancora ripristinabili
	//
	// Repo eliminati da meno di 7 giorni (R2) su cui l'utente ha il ruolo `admin` (R12). Con `owner` solo quelli di quell'owner.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/deleted (the `ListDeletedRepositories` operationId).
	ListDeletedRepositoriesWithResponse(ctx context.Context, params *ListDeletedRepositoriesParams, reqEditors ...RequestEditorFn) (*ListDeletedRepositoriesResponse, error)

	// RestoreRepositoryWithResponse Ripristina un repo eliminato
	//
	// Serve il ruolo `admin` sul repo (R12). Risponde 404 se il repo non esiste, non e' eliminato o il periodo di 7 giorni e' scaduto.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /repos/deleted/{repoId}/restore (the `RestoreRepository` operationId).
	RestoreRepositoryWithResponse(ctx context.Context, repoId openapi_types.UUID, reqEditors ...RequestEditorFn) (*RestoreRepositoryResponse, error)

	// DeleteRepositoryWithResponse Elimina un repo (recuperabile per 7 giorni)
	//
	// Serve il ruolo `admin` (R12). Il repo sparisce subito per tutti e resta ripristinabile per 7 giorni (R2); il nome resta occupato.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /repos/{owner}/{repo} (the `DeleteRepository` operationId).
	DeleteRepositoryWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*DeleteRepositoryResponse, error)

	// GetRepositoryWithResponse Legge un repo per owner/nome
	//
	// Un repo che l'utente non puo' leggere risponde 404, non 403, per non rivelarne l'esistenza.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo} (the `GetRepository` operationId).
	GetRepositoryWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*GetRepositoryResponse, error)

	// UpdateRepositoryWithBodyWithResponse Modifica le impostazioni di un repo
	//
	// Serve il ruolo `admin` (403 se l'utente legge ma non ha il ruolo). Il branch principale (R4) deve essere un branch esistente; `protectDefaultBranch` e' R9; `archived` archivia o riattiva (R10). Owner e nome non cambiano mai (R3). Un repo archiviato rifiuta ogni modifica con 409, tranne `archived: false` da solo.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /repos/{owner}/{repo} (the `UpdateRepository` operationId).
	UpdateRepositoryWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRepositoryResponse, error)

	// UpdateRepositoryWithResponse Modifica le impostazioni di un repo
	//
	// Serve il ruolo `admin` (403 se l'utente legge ma non ha il ruolo). Il branch principale (R4) deve essere un branch esistente; `protectDefaultBranch` e' R9; `archived` archivia o riattiva (R10). Owner e nome non cambiano mai (R3). Un repo archiviato rifiuta ogni modifica con 409, tranne `archived: false` da solo.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /repos/{owner}/{repo} (the `UpdateRepository` operationId).
	UpdateRepositoryWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body UpdateRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRepositoryResponse, error)

	// GetRepositoryArchiveWithResponse Archivio ZIP o tar.gz di un ref (streaming)
	//
	// Archivio dell'albero a `ref` (branch, tag o commit, regola B3), in ZIP (default) o tar.gz secondo `format`, prodotto e inviato in streaming (nessun buffer in memoria). `Content-Disposition: attachment` con nome `<repo>-<ref>.zip` o `<repo>-<ref>.tar.gz` (un `/` nel ref diventa `-`); stesse intestazioni di sicurezza di `getRepositoryRaw`. Sono questi gli indirizzi di scaricamento dei tag (`Tag.zipUrl`, `Tag.tarGzUrl`, regola B7). Servono sessione o token con `read`. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/archive (the `GetRepositoryArchive` operationId).
	GetRepositoryArchiveWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryArchiveParams, reqEditors ...RequestEditorFn) (*GetRepositoryArchiveResponse, error)

	// GetRepositoryBlameWithResponse Blame di un file
	//
	// Per ogni intervallo di righe di `path` a `ref`, il commit che l'ha scritto per ultimo (mockup 08, scheda Blame). Un file binario o oltre 1 MB risponde 400 `blame_unavailable`. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/blame (the `GetRepositoryBlame` operationId).
	GetRepositoryBlameWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryBlameParams, reqEditors ...RequestEditorFn) (*GetRepositoryBlameResponse, error)

	// GetRepositoryBranchesWithResponse Branch del repo, con conteggi
	//
	// Tutti i branch, con il branch principale (R4) per primo; `total` e' il conteggio (mockup 07: "4 branches"). Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. Non ha `ref`: elenca tutti i branch.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/branches (the `GetRepositoryBranches` operationId).
	GetRepositoryBranchesWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*GetRepositoryBranchesResponse, error)

	// GetRepositoryCommitsWithResponse Storico dei commit, paginato
	//
	// Commit raggiungibili da `ref`, dal piu' recente (mockup 09). Filtri `author` (nome o email, senza distinguere maiuscole) e `path` (solo i commit che toccano quel percorso). Pagina di default 30, massimo 100. Ogni autore porta `user` se la sua email corrisponde a un utente GitStack, altrimenti null. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/commits (the `GetRepositoryCommits` operationId).
	GetRepositoryCommitsWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryCommitsParams, reqEditors ...RequestEditorFn) (*GetRepositoryCommitsResponse, error)

	// GetRepositoryCommitWithResponse Dettaglio di un commit con diff per file
	//
	// Messaggio, autore e diff per file (mockup 10), con i limiti progressivi della regola B6 (costanti in `x-code-read-limits`; le righe sono quelle cambiate, aggiunte piu' tolte). Un file e' `collapsed` (chiuso di default) con `collapseReason` `large` se ha oltre 500 righe cambiate, `lock` o `generated` per un file di lock o generato (elenco in docs/repos.md); il patch c'e' comunque, se non e' stato omesso per i limiti. Oltre 300 file o 20 000 righe cambiate in totale `listOnly` e' true: solo l'elenco dei file con righe aggiunte e tolte, senza patch (il diff intero si scarica con `getRepositoryCommitPatch`). Resta il limite di 1 MB di patch per file (`truncated`). `ignoreWhitespace` calcola il diff con `git diff -w` (`ignoreWhitespace` e' riportato nella risposta). `path` restringe `files` a quel file. `sha` e' lo sha completo o un prefisso univoco di almeno 7 caratteri; 400 se non e' esadecimale, 404 se non esiste. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/commits/{sha} (the `GetRepositoryCommit` operationId).
	GetRepositoryCommitWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, sha CommitShaParam, params *GetRepositoryCommitParams, reqEditors ...RequestEditorFn) (*GetRepositoryCommitResponse, error)

	// GetRepositoryCommitPatchWithResponse Diff completo di un commit, scaricabile come .diff o .patch (streaming)
	//
	// Regola B6: il diff intero del commit, senza i limiti di `getRepositoryCommit` (nessun file chiuso, nessun troncamento), in streaming. `Content-Disposition: attachment` con nome `<sha12>.diff` o `.patch` (lo imposta il servizio git) secondo `format`: `diff` e' `gitGetCommitDiff`, `patch` e' `gitGetCommitPatch`, passati in streaming da core (le interne le definisce GIT-82). Stesse intestazioni di sicurezza di `getRepositoryRaw`. Un commit senza genitori e' confrontato con l'albero vuoto. Un merge e' confrontato con il primo genitore. 400 se `sha` non e' esadecimale, 404 se non esiste. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/commits/{sha}/patch (the `GetRepositoryCommitPatch` operationId).
	GetRepositoryCommitPatchWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, sha CommitShaParam, params *GetRepositoryCommitPatchParams, reqEditors ...RequestEditorFn) (*GetRepositoryCommitPatchResponse, error)

	// GetRepositoryFileWithResponse Contenuto di un file
	//
	// Contenuto di `path` a `ref` con dimensione, tipo e ultimo commit (mockup 08). Regola B1: la risposta dice sempre in `display` come mostrarlo. Testo fino a 1 MB (1 048 576 byte): `highlight`, `content` intero. Testo da 1 MB a 5 MB (5 242 880 byte): `plain`, `content` intero da mostrare senza evidenziazione. Testo oltre 5 MB: `download`, nessun `content` e `truncated` true (solo scaricamento con `raw`). Immagini comuni (PNG, JPEG, GIF, WebP, SVG; `kind` `image`) fino a 1 MB: `display` `image`, `content` in base64 (`encoding` `base64`) e `mimeType`, cosi' la UI le mostra come immagine anche se `raw` le serve come allegato; oltre 1 MB `download`. Altri binari: `kind` `binary`, `download`, nessun `content`. `size` e' sempre la dimensione reale. 404 se `path` non esiste o non e' un file. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/contents (the `GetRepositoryFile` operationId).
	GetRepositoryFileWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryFileParams, reqEditors ...RequestEditorFn) (*GetRepositoryFileResponse, error)

	// ListRepositoryFilesWithResponse Percorsi di tutti i file di un ref ("Go to file")
	//
	// Regola B5: i percorsi di tutti i file (non le cartelle) di `ref`, per il "Go to file"; la corrispondenza approssimata la fa il client. Al massimo 50 000 percorsi: oltre, `truncated` e' true. Un repo vuoto risponde lista vuota. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/files (the `ListRepositoryFiles` operationId).
	ListRepositoryFilesWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *ListRepositoryFilesParams, reqEditors ...RequestEditorFn) (*ListRepositoryFilesResponse, error)

	// ListRepoWebhooksWithResponse Elenca i webhook di un repo
	//
	// Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Il segreto non torna mai: `hasSecret` dice se c'e'. Paginazione come `GET /repos`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/hooks (the `ListRepoWebhooks` operationId).
	ListRepoWebhooksWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *ListRepoWebhooksParams, reqEditors ...RequestEditorFn) (*ListRepoWebhooksResponse, error)

	// CreateRepoWebhookWithBodyWithResponse Crea un webhook di un repo
	//
	// Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. `url` http o https; sempre bloccati loopback, indirizzi interni del cluster e link-local, anche dopo redirect e risoluzione DNS, e le destinazioni vietate dall'amministratore (C8): 422 (`details.fields.url`, codice `url_not_allowed`). `events` almeno uno fra `push`, `issues`, `issue_comment`, `repository`. Il `secret` e' facoltativo (senza, la consegna non e' firmata): non torna mai nelle risposte. Il formato dei payload e le intestazioni sono in docs/webhooks.md. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /repos/{owner}/{repo}/hooks (the `CreateRepoWebhook` operationId).
	CreateRepoWebhookWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRepoWebhookResponse, error)

	// CreateRepoWebhookWithResponse Crea un webhook di un repo
	//
	// Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. `url` http o https; sempre bloccati loopback, indirizzi interni del cluster e link-local, anche dopo redirect e risoluzione DNS, e le destinazioni vietate dall'amministratore (C8): 422 (`details.fields.url`, codice `url_not_allowed`). `events` almeno uno fra `push`, `issues`, `issue_comment`, `repository`. Il `secret` e' facoltativo (senza, la consegna non e' firmata): non torna mai nelle risposte. Il formato dei payload e le intestazioni sono in docs/webhooks.md. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /repos/{owner}/{repo}/hooks (the `CreateRepoWebhook` operationId).
	CreateRepoWebhookWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body CreateRepoWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRepoWebhookResponse, error)

	// DeleteRepoWebhookWithResponse Elimina un webhook di un repo
	//
	// Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Elimina anche il log delle consegne e le notifiche di disattivazione collegate.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /repos/{owner}/{repo}/hooks/{hookId} (the `DeleteRepoWebhook` operationId).
	DeleteRepoWebhookWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, reqEditors ...RequestEditorFn) (*DeleteRepoWebhookResponse, error)

	// GetRepoWebhookWithResponse Legge un webhook di un repo
	//
	// Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Un webhook di un altro repo o organizzazione risponde 404.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/hooks/{hookId} (the `GetRepoWebhook` operationId).
	GetRepoWebhookWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, reqEditors ...RequestEditorFn) (*GetRepoWebhookResponse, error)

	// UpdateRepoWebhookWithBodyWithResponse Modifica un webhook di un repo
	//
	// Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Cambia solo i campi indicati. `secret`: una stringa sostituisce il segreto, la stringa vuota lo toglie. `active: false` mette in pausa il webhook senza eliminarlo. Un webhook disattivato dai fallimenti (C7) si riattiva con l'operazione `reactivate`, non con `active: true`: 409 `webhook_disabled`. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /repos/{owner}/{repo}/hooks/{hookId} (the `UpdateRepoWebhook` operationId).
	UpdateRepoWebhookWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRepoWebhookResponse, error)

	// UpdateRepoWebhookWithResponse Modifica un webhook di un repo
	//
	// Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Cambia solo i campi indicati. `secret`: una stringa sostituisce il segreto, la stringa vuota lo toglie. `active: false` mette in pausa il webhook senza eliminarlo. Un webhook disattivato dai fallimenti (C7) si riattiva con l'operazione `reactivate`, non con `active: true`: 409 `webhook_disabled`. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /repos/{owner}/{repo}/hooks/{hookId} (the `UpdateRepoWebhook` operationId).
	UpdateRepoWebhookWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, body UpdateRepoWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRepoWebhookResponse, error)

	// ListRepoWebhookDeliveriesWithResponse Log delle consegne di un webhook di un repo
	//
	// Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Dalla piu' recente. Le consegne si conservano 30 giorni (C7). Filtro per `status`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/hooks/{hookId}/deliveries (the `ListRepoWebhookDeliveries` operationId).
	ListRepoWebhookDeliveriesWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, params *ListRepoWebhookDeliveriesParams, reqEditors ...RequestEditorFn) (*ListRepoWebhookDeliveriesResponse, error)

	// GetRepoWebhookDeliveryWithResponse Dettaglio di una consegna di un repo
	//
	// Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Con la richiesta inviata (intestazioni e payload) e la risposta ricevuta, troncata a 4 KB (C8).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/hooks/{hookId}/deliveries/{deliveryId} (the `GetRepoWebhookDelivery` operationId).
	GetRepoWebhookDeliveryWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, deliveryId WebhookDeliveryIdParam, reqEditors ...RequestEditorFn) (*GetRepoWebhookDeliveryResponse, error)

	// RedeliverRepoWebhookDeliveryWithResponse Rinvia una consegna (Redeliver) di un repo
	//
	// Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Crea una consegna nuova con lo stesso payload e un nuovo `X-GitStack-Delivery` (`redeliveryOf` punta all'originale), firmata di nuovo col segreto corrente. Risponde 202: la consegna e' in coda e il risultato si legge dal log. Funziona anche su un webhook non attivo e dopo un `410 Gone`; una consegna piu' vecchia di 30 giorni non esiste piu' (404).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /repos/{owner}/{repo}/hooks/{hookId}/deliveries/{deliveryId}/redeliver (the `RedeliverRepoWebhookDelivery` operationId).
	RedeliverRepoWebhookDeliveryWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, deliveryId WebhookDeliveryIdParam, reqEditors ...RequestEditorFn) (*RedeliverRepoWebhookDeliveryResponse, error)

	// ReactivateRepoWebhookWithResponse Riattiva un webhook di un repo
	//
	// Serve `admin` sul repo (C6); un repo che non si legge risponde 404, uno senza `admin` 403. Riattiva un webhook (disattivato a mano o dopo 3 giorni di fallimenti consecutivi, C7): `active` torna `true` e i fallimenti consecutivi si azzerano. Idempotente su un webhook gia' attivo.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /repos/{owner}/{repo}/hooks/{hookId}/reactivate (the `ReactivateRepoWebhook` operationId).
	ReactivateRepoWebhookWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, hookId WebhookIdParam, reqEditors ...RequestEditorFn) (*ReactivateRepoWebhookResponse, error)

	// UploadIssueAttachmentWithBodyWithResponse Carica un allegato
	//
	// `multipart/form-data` con un solo campo `file`. Chi vede il repo (I3, I9). Tipi ammessi: immagini (PNG, JPEG, GIF, WebP), PDF, testo/log, ZIP; limite configurabile (default 10 MB): oltre, 413 `attachment_too_large`; tipo non ammesso (verificato sui byte, non sul nome): 422 `unsupported_media_type`. L'allegato nasce non collegato e va indicato in `attachmentIds` di una issue o di un commento; uno non collegato entro 24 ore e' eliminato. Si salvano solo i metadati in DB; il nome originale non entra mai nel percorso su disco. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /repos/{owner}/{repo}/issue-attachments (the `UploadIssueAttachment` operationId).
	UploadIssueAttachmentWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadIssueAttachmentResponse, error)

	// GetIssueAttachmentWithResponse Scarica un allegato
	//
	// Solo chi vede il repo (I9): nessun URL pubblico, la richiesta e' sempre autenticata. Sempre `Content-Disposition: attachment`, `X-Content-Type-Options: nosniff` e `Content-Security-Policy: sandbox` (come B3). Un allegato di una issue nascosta e' 404 per chi non ha `admin`. Un repo che l'utente non puo' leggere, eliminato o inesistente risponde 404 (non 403), per non rivelarne l'esistenza.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/issue-attachments/{attachmentId} (the `GetIssueAttachment` operationId).
	GetIssueAttachmentWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, attachmentId IssueAttachmentIdParam, reqEditors ...RequestEditorFn) (*GetIssueAttachmentResponse, error)

	// ListIssueTemplatesWithResponse Modelli di issue del repo
	//
	// Modelli Markdown in `.gitstack/ISSUE_TEMPLATE/` sul branch principale (I11), letti da core tramite il servizio git. Vuoto se la cartella non c'e' o il repo e' vuoto. Il nome e' il file senza estensione. Un modello propone titolo, etichette e testo iniziale: la UI, l'API e `gs` li usano per precompilare `createIssue`, che non li impone.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/issue-templates (the `ListIssueTemplates` operationId).
	ListIssueTemplatesWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*ListIssueTemplatesResponse, error)

	// ListIssuesWithResponse Elenca e cerca le issues del repo
	//
	// Issues del repo con filtri (stato, etichette, assegnatario, autore, milestone) e ricerca nel testo. `q` usa la sintassi di I10 e i filtri espliciti si sommano a quelli di `q`. Le issues nascoste (I4) compaiono solo a chi ha `admin`. Paginazione come `GET /repos`. Un repo che l'utente non puo' leggere, eliminato o inesistente risponde 404 (non 403), per non rivelarne l'esistenza.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/issues (the `ListIssues` operationId).
	ListIssuesWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *ListIssuesParams, reqEditors ...RequestEditorFn) (*ListIssuesResponse, error)

	// CreateIssueWithBodyWithResponse Apre una issue
	//
	// Chi vede il repo (anche per visibilita' interna) apre issues (I3, P7). Il numero `#n` viene dal contatore del repo condiviso con le PR (I1) e non si riusa mai. Etichette, assegnatari e milestone nel corpo richiedono `write` (403 altrimenti); gli assegnatari sono al massimo 10 e devono avere `write` (I6, 422). `attachmentIds` sono allegati gia' caricati da chi crea (I9). Testo oltre il limite: 413 (`body_too_large`, 1 MiB). Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10). Un repo che l'utente non puo' leggere, eliminato o inesistente risponde 404 (non 403), per non rivelarne l'esistenza.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /repos/{owner}/{repo}/issues (the `CreateIssue` operationId).
	CreateIssueWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIssueResponse, error)

	// CreateIssueWithResponse Apre una issue
	//
	// Chi vede il repo (anche per visibilita' interna) apre issues (I3, P7). Il numero `#n` viene dal contatore del repo condiviso con le PR (I1) e non si riusa mai. Etichette, assegnatari e milestone nel corpo richiedono `write` (403 altrimenti); gli assegnatari sono al massimo 10 e devono avere `write` (I6, 422). `attachmentIds` sono allegati gia' caricati da chi crea (I9). Testo oltre il limite: 413 (`body_too_large`, 1 MiB). Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10). Un repo che l'utente non puo' leggere, eliminato o inesistente risponde 404 (non 403), per non rivelarne l'esistenza.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /repos/{owner}/{repo}/issues (the `CreateIssue` operationId).
	CreateIssueWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body CreateIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIssueResponse, error)

	// GetIssueWithResponse Legge una issue per numero
	//
	// Una issue che non esiste nel repo risponde 404. Se e' nascosta (I4) chi non ha `admin` riceve 404, come se non esistesse, per non rivelare ne' il contenuto ne' l'esistenza di cio' che e' stato nascosto. Un repo che l'utente non puo' leggere, eliminato o inesistente risponde 404 (non 403), per non rivelarne l'esistenza.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/issues/{number} (the `GetIssue` operationId).
	GetIssueWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*GetIssueResponse, error)

	// UpdateIssueWithBodyWithResponse Modifica titolo e testo
	//
	// Solo l'autore modifica il proprio testo (I4); chiunque altro riceve 403. Ogni modifica del testo salva la versione precedente (visibile con `admin`, `listIssueVersions`) e fa comparire `edited`. Stato, etichette, assegnatari e milestone hanno le loro operazioni. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10). Su una discussione bloccata (I11) l'autore con soli permessi `read` riceve 403 `locked`. Una issue nascosta (I4) risponde 404 a chi non ha `admin`, tranne dove indicato.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /repos/{owner}/{repo}/issues/{number} (the `UpdateIssue` operationId).
	UpdateIssueWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateIssueResponse, error)

	// UpdateIssueWithResponse Modifica titolo e testo
	//
	// Solo l'autore modifica il proprio testo (I4); chiunque altro riceve 403. Ogni modifica del testo salva la versione precedente (visibile con `admin`, `listIssueVersions`) e fa comparire `edited`. Stato, etichette, assegnatari e milestone hanno le loro operazioni. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10). Su una discussione bloccata (I11) l'autore con soli permessi `read` riceve 403 `locked`. Una issue nascosta (I4) risponde 404 a chi non ha `admin`, tranne dove indicato.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /repos/{owner}/{repo}/issues/{number} (the `UpdateIssue` operationId).
	UpdateIssueWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body UpdateIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateIssueResponse, error)

	// SetIssueAssigneesWithBodyWithResponse Imposta gli assegnatari
	//
	// Sostituisce l'elenco con quello indicato (vuoto = nessuno). Serve `write` (I3); chi ha `write` puo' anche autoassegnarsi (I6). Al massimo 10, persone o agenti, tutti con `write` sul repo: altrimenti 422 (`details.fields.assignees`). Ogni aggiunta o rimozione e' un evento della cronologia. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/assignees (the `SetIssueAssignees` operationId).
	SetIssueAssigneesWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetIssueAssigneesResponse, error)

	// SetIssueAssigneesWithResponse Imposta gli assegnatari
	//
	// Sostituisce l'elenco con quello indicato (vuoto = nessuno). Serve `write` (I3); chi ha `write` puo' anche autoassegnarsi (I6). Al massimo 10, persone o agenti, tutti con `write` sul repo: altrimenti 422 (`details.fields.assignees`). Ogni aggiunta o rimozione e' un evento della cronologia. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/assignees (the `SetIssueAssignees` operationId).
	SetIssueAssigneesWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body SetIssueAssigneesJSONRequestBody, reqEditors ...RequestEditorFn) (*SetIssueAssigneesResponse, error)

	// CloseIssueWithBodyWithResponse Chiude una issue con un motivo
	//
	// Motivo `completed`, `not_planned` o `duplicate` (I2); con `duplicate` serve `duplicateOf`, il numero di un'altra issue dello stesso repo diversa da questa (422 altrimenti, e anche se `reason` non e' `duplicate` e `duplicateOf` c'e'). Possono chiudere chi ha `write` e l'autore della issue (I3). Una issue gia' chiusa risponde 409 `already_closed`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /repos/{owner}/{repo}/issues/{number}/close (the `CloseIssue` operationId).
	CloseIssueWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CloseIssueResponse, error)

	// CloseIssueWithResponse Chiude una issue con un motivo
	//
	// Motivo `completed`, `not_planned` o `duplicate` (I2); con `duplicate` serve `duplicateOf`, il numero di un'altra issue dello stesso repo diversa da questa (422 altrimenti, e anche se `reason` non e' `duplicate` e `duplicateOf` c'e'). Possono chiudere chi ha `write` e l'autore della issue (I3). Una issue gia' chiusa risponde 409 `already_closed`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /repos/{owner}/{repo}/issues/{number}/close (the `CloseIssue` operationId).
	CloseIssueWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body CloseIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*CloseIssueResponse, error)

	// ListIssueCommentsWithResponse Commenti della issue
	//
	// Dal piu' vecchio al piu' recente. Un commento eliminato resta con `deleted: true` e testo vuoto (traccia "comment deleted", I4). Paginazione come `GET /repos`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/issues/{number}/comments (the `ListIssueComments` operationId).
	ListIssueCommentsWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, params *ListIssueCommentsParams, reqEditors ...RequestEditorFn) (*ListIssueCommentsResponse, error)

	// CreateIssueCommentWithBodyWithResponse Commenta la issue
	//
	// Chi vede il repo commenta (I3), anche issues chiuse. Con la discussione bloccata (I11) solo chi ha `write` (403 `locked`). Testo Markdown, al massimo 65536 caratteri (413 `body_too_large` oltre 1 MiB); `attachmentIds` come in `createIssue`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /repos/{owner}/{repo}/issues/{number}/comments (the `CreateIssueComment` operationId).
	CreateIssueCommentWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIssueCommentResponse, error)

	// CreateIssueCommentWithResponse Commenta la issue
	//
	// Chi vede il repo commenta (I3), anche issues chiuse. Con la discussione bloccata (I11) solo chi ha `write` (403 `locked`). Testo Markdown, al massimo 65536 caratteri (413 `body_too_large` oltre 1 MiB); `attachmentIds` come in `createIssue`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /repos/{owner}/{repo}/issues/{number}/comments (the `CreateIssueComment` operationId).
	CreateIssueCommentWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body CreateIssueCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIssueCommentResponse, error)

	// DeleteIssueCommentWithResponse Elimina un commento
	//
	// L'autore o chi ha `admin` (I4). Il testo viene svuotato e si registra l'evento `comment_deleted` ("comment deleted"); le versioni precedenti restano visibili a `admin`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /repos/{owner}/{repo}/issues/{number}/comments/{commentId} (the `DeleteIssueComment` operationId).
	DeleteIssueCommentWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, commentId IssueCommentIdParam, reqEditors ...RequestEditorFn) (*DeleteIssueCommentResponse, error)

	// UpdateIssueCommentWithBodyWithResponse Modifica un commento
	//
	// Solo l'autore (I4). Salva la versione precedente e imposta `edited`. Un commento eliminato risponde 404. Con la discussione bloccata solo chi ha `write`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /repos/{owner}/{repo}/issues/{number}/comments/{commentId} (the `UpdateIssueComment` operationId).
	UpdateIssueCommentWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, commentId IssueCommentIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateIssueCommentResponse, error)

	// UpdateIssueCommentWithResponse Modifica un commento
	//
	// Solo l'autore (I4). Salva la versione precedente e imposta `edited`. Un commento eliminato risponde 404. Con la discussione bloccata solo chi ha `write`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /repos/{owner}/{repo}/issues/{number}/comments/{commentId} (the `UpdateIssueComment` operationId).
	UpdateIssueCommentWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, commentId IssueCommentIdParam, body UpdateIssueCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateIssueCommentResponse, error)

	// ListIssueCommentVersionsWithResponse Versioni precedenti del testo di un commento
	//
	// Solo con `admin` (I4), come `listIssueVersions`. Anche per i commenti eliminati.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/issues/{number}/comments/{commentId}/versions (the `ListIssueCommentVersions` operationId).
	ListIssueCommentVersionsWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, commentId IssueCommentIdParam, reqEditors ...RequestEditorFn) (*ListIssueCommentVersionsResponse, error)

	// ListIssueEventsWithResponse Cronologia degli eventi
	//
	// Eventi in ordine cronologico crescente: apertura, chiusura (con motivo), riapertura, etichette, assegnatari, milestone, modifica del titolo, blocco, `comment_deleted` ("comment deleted", I4) e, da M-06, `referenced_from`, `commit_linked` e `closed_by_commit` (C1, C2). Le issues nascoste: 404 a chi non e' `admin`. Paginazione come `GET /repos`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/issues/{number}/events (the `ListIssueEvents` operationId).
	ListIssueEventsWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, params *ListIssueEventsParams, reqEditors ...RequestEditorFn) (*ListIssueEventsResponse, error)

	// SetIssueHiddenWithBodyWithResponse Nasconde o mostra una issue
	//
	// Serve `admin` (I4). Una issue nascosta conserva il numero ma il suo contenuto e' visibile solo a `admin`; le altre persone la ricevono come inesistente (404). Le issues non si eliminano. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/hidden (the `SetIssueHidden` operationId).
	SetIssueHiddenWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetIssueHiddenResponse, error)

	// SetIssueHiddenWithResponse Nasconde o mostra una issue
	//
	// Serve `admin` (I4). Una issue nascosta conserva il numero ma il suo contenuto e' visibile solo a `admin`; le altre persone la ricevono come inesistente (404). Le issues non si eliminano. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/hidden (the `SetIssueHidden` operationId).
	SetIssueHiddenWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body SetIssueHiddenJSONRequestBody, reqEditors ...RequestEditorFn) (*SetIssueHiddenResponse, error)

	// SetIssueLabelsWithBodyWithResponse Imposta le etichette
	//
	// Sostituisce l'elenco con quello indicato (I5), per nome. Serve `write`. Una etichetta che non esiste nel repo e' 422 (`details.fields.labels`): non si crea al volo. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/labels (the `SetIssueLabels` operationId).
	SetIssueLabelsWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetIssueLabelsResponse, error)

	// SetIssueLabelsWithResponse Imposta le etichette
	//
	// Sostituisce l'elenco con quello indicato (I5), per nome. Serve `write`. Una etichetta che non esiste nel repo e' 422 (`details.fields.labels`): non si crea al volo. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/labels (the `SetIssueLabels` operationId).
	SetIssueLabelsWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body SetIssueLabelsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetIssueLabelsResponse, error)

	// UnlockIssueWithResponse Sblocca la discussione
	//
	// Serve `admin` (I11). Sbloccare una issue non bloccata e' idempotente. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /repos/{owner}/{repo}/issues/{number}/lock (the `UnlockIssue` operationId).
	UnlockIssueWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*UnlockIssueResponse, error)

	// LockIssueWithBodyWithResponse Blocca la discussione
	//
	// Serve `admin` (I11). Con la discussione bloccata commenta solo chi ha `write` (gli altri 403 `locked`). Bloccare una issue gia' bloccata e' idempotente. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10). Una issue nascosta (I4) risponde 404 a chi non ha `admin`, tranne dove indicato.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/lock (the `LockIssue` operationId).
	LockIssueWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LockIssueResponse, error)

	// LockIssueWithResponse Blocca la discussione
	//
	// Serve `admin` (I11). Con la discussione bloccata commenta solo chi ha `write` (gli altri 403 `locked`). Bloccare una issue gia' bloccata e' idempotente. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10). Una issue nascosta (I4) risponde 404 a chi non ha `admin`, tranne dove indicato.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/lock (the `LockIssue` operationId).
	LockIssueWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body LockIssueJSONRequestBody, reqEditors ...RequestEditorFn) (*LockIssueResponse, error)

	// SetIssueMilestoneWithBodyWithResponse Imposta o toglie la milestone
	//
	// Al massimo una milestone per issue (I7); `milestone: null` la toglie. Serve `write`. Una milestone che non esiste nel repo e' 422. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/milestone (the `SetIssueMilestone` operationId).
	SetIssueMilestoneWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetIssueMilestoneResponse, error)

	// SetIssueMilestoneWithResponse Imposta o toglie la milestone
	//
	// Al massimo una milestone per issue (I7); `milestone: null` la toglie. Serve `write`. Una milestone che non esiste nel repo e' 422. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/milestone (the `SetIssueMilestone` operationId).
	SetIssueMilestoneWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, body SetIssueMilestoneJSONRequestBody, reqEditors ...RequestEditorFn) (*SetIssueMilestoneResponse, error)

	// ReopenIssueWithResponse Riapre una issue
	//
	// Come `closeIssue`: chi ha `write` o l'autore (I3). Riaprire azzera motivo e duplicato (I2). Una issue gia' aperta risponde 409 `already_open`. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /repos/{owner}/{repo}/issues/{number}/reopen (the `ReopenIssue` operationId).
	ReopenIssueWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*ReopenIssueResponse, error)

	// UnsubscribeIssueWithResponse Smette di seguire la issue (Unsubscribe)
	//
	// Disiscrive l'utente corrente: da qui l'iscrizione automatica non lo riguarda piu' per questa issue, finche' non fa Subscribe. Le menzioni dirette (`@utente`) e le assegnazioni notificano comunque. Idempotente.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /repos/{owner}/{repo}/issues/{number}/subscription (the `UnsubscribeIssue` operationId).
	UnsubscribeIssueWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*UnsubscribeIssueResponse, error)

	// GetIssueSubscriptionWithResponse Iscrizione alla issue
	//
	// Se l'utente corrente segue la issue (C3) e perche'. Autore, assegnatari, commentatori e menzionati seguono in automatico. Serve poter leggere la issue; una nascosta risponde 404 a chi non e' `admin`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/issues/{number}/subscription (the `GetIssueSubscription` operationId).
	GetIssueSubscriptionWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*GetIssueSubscriptionResponse, error)

	// SubscribeIssueWithResponse Segue la issue (Subscribe)
	//
	// Iscrive l'utente corrente (`reason` `manual`), anche se si era disiscritto. Idempotente. Serve poter leggere la issue.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /repos/{owner}/{repo}/issues/{number}/subscription (the `SubscribeIssue` operationId).
	SubscribeIssueWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*SubscribeIssueResponse, error)

	// ListIssueVersionsWithResponse Versioni precedenti del testo della issue
	//
	// Solo con `admin` (I4): 403 per chi legge soltanto. Dalla piu' recente alla piu' vecchia; la versione corrente non e' nell'elenco, e' il testo della issue. Vuoto se non e' mai stata modificata.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/issues/{number}/versions (the `ListIssueVersions` operationId).
	ListIssueVersionsWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, number IssueNumberParam, reqEditors ...RequestEditorFn) (*ListIssueVersionsResponse, error)

	// ListLabelsWithResponse Etichette del repo
	//
	// Con il numero di issues aperte che le usano. Ordinate per nome. Paginazione come `GET /repos`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/labels (the `ListLabels` operationId).
	ListLabelsWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *ListLabelsParams, reqEditors ...RequestEditorFn) (*ListLabelsResponse, error)

	// CreateLabelWithBodyWithResponse Crea un'etichetta
	//
	// Serve `write` (I3, I5). Il nome e' unico nel repo senza distinguere maiuscole/minuscole (409 `already_exists`), 1-50 caratteri, senza `/`, virgole ne' caratteri di controllo. Il colore e' esadecimale a sei cifre. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /repos/{owner}/{repo}/labels (the `CreateLabel` operationId).
	CreateLabelWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateLabelResponse, error)

	// CreateLabelWithResponse Crea un'etichetta
	//
	// Serve `write` (I3, I5). Il nome e' unico nel repo senza distinguere maiuscole/minuscole (409 `already_exists`), 1-50 caratteri, senza `/`, virgole ne' caratteri di controllo. Il colore e' esadecimale a sei cifre. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /repos/{owner}/{repo}/labels (the `CreateLabel` operationId).
	CreateLabelWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body CreateLabelJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateLabelResponse, error)

	// DeleteLabelWithResponse Elimina un'etichetta
	//
	// Serve `write`. Toglie l'etichetta da tutte le issues (evento `unlabeled` nella cronologia). Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /repos/{owner}/{repo}/labels/{name} (the `DeleteLabel` operationId).
	DeleteLabelWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, name LabelNameParam, reqEditors ...RequestEditorFn) (*DeleteLabelResponse, error)

	// GetLabelWithResponse Legge un'etichetta
	//
	// Per nome, senza distinguere maiuscole/minuscole.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/labels/{name} (the `GetLabel` operationId).
	GetLabelWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, name LabelNameParam, reqEditors ...RequestEditorFn) (*GetLabelResponse, error)

	// UpdateLabelWithBodyWithResponse Modifica un'etichetta
	//
	// Serve `write`. Rinominare (o cambiare colore) aggiorna tutte le issues che la usano (il legame e' per id). 409 `already_exists` se il nuovo nome e' occupato. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /repos/{owner}/{repo}/labels/{name} (the `UpdateLabel` operationId).
	UpdateLabelWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, name LabelNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLabelResponse, error)

	// UpdateLabelWithResponse Modifica un'etichetta
	//
	// Serve `write`. Rinominare (o cambiare colore) aggiorna tutte le issues che la usano (il legame e' per id). 409 `already_exists` se il nuovo nome e' occupato. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /repos/{owner}/{repo}/labels/{name} (the `UpdateLabel` operationId).
	UpdateLabelWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, name LabelNameParam, body UpdateLabelJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLabelResponse, error)

	// GetRepositoryLanguagesWithResponse Lingue del repo
	//
	// Byte per linguaggio al branch principale o a `ref`, con la percentuale sul totale, in ordine decrescente (pannello About, mockup 07). Un repo vuoto risponde lista vuota. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/languages (the `GetRepositoryLanguages` operationId).
	GetRepositoryLanguagesWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryLanguagesParams, reqEditors ...RequestEditorFn) (*GetRepositoryLanguagesResponse, error)

	// ListMilestonesWithResponse Milestone del repo
	//
	// Con l'avanzamento: `closedIssues` conta solo le chiuse come `completed`; le `not_planned` e `duplicate` non contano ne' fra le chiuse ne' fra le aperte (I2). Per scadenza crescente, poi per numero.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/milestones (the `ListMilestones` operationId).
	ListMilestonesWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *ListMilestonesParams, reqEditors ...RequestEditorFn) (*ListMilestonesResponse, error)

	// CreateMilestoneWithBodyWithResponse Crea una milestone
	//
	// Serve `write` (I7). Titolo unico nel repo senza distinguere maiuscole/minuscole (409 `already_exists`), descrizione e data (`dueOn`) facoltative. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /repos/{owner}/{repo}/milestones (the `CreateMilestone` operationId).
	CreateMilestoneWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMilestoneResponse, error)

	// CreateMilestoneWithResponse Crea una milestone
	//
	// Serve `write` (I7). Titolo unico nel repo senza distinguere maiuscole/minuscole (409 `already_exists`), descrizione e data (`dueOn`) facoltative. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /repos/{owner}/{repo}/milestones (the `CreateMilestone` operationId).
	CreateMilestoneWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body CreateMilestoneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMilestoneResponse, error)

	// DeleteMilestoneWithResponse Elimina una milestone
	//
	// Serve `write`. Le issues collegate restano, senza milestone (evento `demilestoned`). Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /repos/{owner}/{repo}/milestones/{milestoneNumber} (the `DeleteMilestone` operationId).
	DeleteMilestoneWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, milestoneNumber MilestoneNumberParam, reqEditors ...RequestEditorFn) (*DeleteMilestoneResponse, error)

	// GetMilestoneWithResponse Legge una milestone
	//
	// Per numero della milestone nel repo.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/milestones/{milestoneNumber} (the `GetMilestone` operationId).
	GetMilestoneWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, milestoneNumber MilestoneNumberParam, reqEditors ...RequestEditorFn) (*GetMilestoneResponse, error)

	// UpdateMilestoneWithBodyWithResponse Modifica o chiude una milestone
	//
	// Serve `write`. `state` la chiude o la riapre. `dueOn: null` toglie la data. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /repos/{owner}/{repo}/milestones/{milestoneNumber} (the `UpdateMilestone` operationId).
	UpdateMilestoneWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, milestoneNumber MilestoneNumberParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMilestoneResponse, error)

	// UpdateMilestoneWithResponse Modifica o chiude una milestone
	//
	// Serve `write`. `state` la chiude o la riapre. `dueOn: null` toglie la data. Un repo archiviato rifiuta ogni modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /repos/{owner}/{repo}/milestones/{milestoneNumber} (the `UpdateMilestone` operationId).
	UpdateMilestoneWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, milestoneNumber MilestoneNumberParam, body UpdateMilestoneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMilestoneResponse, error)

	// ListRepoMirrorsWithResponse Elenca i mirror in push di un repo
	//
	// Serve `admin` sul repo (V8); un repo che non si legge risponde 404, uno senza `admin` 403. Il token non torna mai: `hasToken` dice solo che c'e'. Ogni mirror porta lo stato dell'ultimo tentativo (`state`, `lastAttemptAt`, `lastError`, `lastPushed`). Paginazione come `GET /repos`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/mirrors (the `ListRepoMirrors` operationId).
	ListRepoMirrorsWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *ListRepoMirrorsParams, reqEditors ...RequestEditorFn) (*ListRepoMirrorsResponse, error)

	// CreateRepoMirrorWithBodyWithResponse Crea un mirror in push di un repo
	//
	// Serve `admin` sul repo (V8). Il mirror spinge il branch principale e i tag del repo su un altro server Git in HTTPS, a ogni push su quei ref e su richiesta (`sync`), SEMPRE senza push forzato: se la destinazione ha una storia diversa il mirror si ferma (`state: diverged`) e non sovrascrive mai. `url` e' `https://` senza credenziali nell'indirizzo; sempre bloccati loopback, indirizzi interni del cluster e link-local anche dopo la risoluzione DNS, e le destinazioni vietate dall'amministratore (C8): 422 `url_not_allowed` (`details.fields.url`). `username` e `token` sono la credenziale per la destinazione (per GitHub: utente e token personale con permesso di scrittura): il token e' cifrato (AES-256-GCM, come i segreti dei webhook) e non torna mai nelle risposte. Senza chiave dei segreti sul server: 503 `mirror_secrets_unavailable`. Un mirror attivo parte subito con una prima sincronizzazione. Lo stesso `url` due volte sullo stesso repo: 409 `conflict`. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /repos/{owner}/{repo}/mirrors (the `CreateRepoMirror` operationId).
	CreateRepoMirrorWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRepoMirrorResponse, error)

	// CreateRepoMirrorWithResponse Crea un mirror in push di un repo
	//
	// Serve `admin` sul repo (V8). Il mirror spinge il branch principale e i tag del repo su un altro server Git in HTTPS, a ogni push su quei ref e su richiesta (`sync`), SEMPRE senza push forzato: se la destinazione ha una storia diversa il mirror si ferma (`state: diverged`) e non sovrascrive mai. `url` e' `https://` senza credenziali nell'indirizzo; sempre bloccati loopback, indirizzi interni del cluster e link-local anche dopo la risoluzione DNS, e le destinazioni vietate dall'amministratore (C8): 422 `url_not_allowed` (`details.fields.url`). `username` e `token` sono la credenziale per la destinazione (per GitHub: utente e token personale con permesso di scrittura): il token e' cifrato (AES-256-GCM, come i segreti dei webhook) e non torna mai nelle risposte. Senza chiave dei segreti sul server: 503 `mirror_secrets_unavailable`. Un mirror attivo parte subito con una prima sincronizzazione. Lo stesso `url` due volte sullo stesso repo: 409 `conflict`. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /repos/{owner}/{repo}/mirrors (the `CreateRepoMirror` operationId).
	CreateRepoMirrorWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body CreateRepoMirrorJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRepoMirrorResponse, error)

	// DeleteRepoMirrorWithResponse Elimina un mirror in push
	//
	// Serve `admin` sul repo (V8). Elimina anche il log delle esecuzioni. Non tocca la destinazione. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /repos/{owner}/{repo}/mirrors/{mirrorId} (the `DeleteRepoMirror` operationId).
	DeleteRepoMirrorWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam, reqEditors ...RequestEditorFn) (*DeleteRepoMirrorResponse, error)

	// GetRepoMirrorWithResponse Legge un mirror in push (con il suo stato)
	//
	// Serve `admin` sul repo (V8). E' l'operazione di stato: `state`, `lastAttemptAt`, `lastSuccessAt`, `lastError` e `lastPushed` (ref → SHA spinti con l'ultimo push riuscito). Un mirror di un altro repo risponde 404.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/mirrors/{mirrorId} (the `GetRepoMirror` operationId).
	GetRepoMirrorWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam, reqEditors ...RequestEditorFn) (*GetRepoMirrorResponse, error)

	// UpdateRepoMirrorWithBodyWithResponse Modifica un mirror in push
	//
	// Serve `admin` sul repo (V8). Cambia solo i campi indicati. `token`: una stringa sostituisce il token (non si puo' togliere: il mirror non funzionerebbe). Cambiare `url` azzera lo stato e rimette in coda il mirror. `enabled: false` mette in pausa il mirror (nessun push, nemmeno su richiesta) senza eliminarlo. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /repos/{owner}/{repo}/mirrors/{mirrorId} (the `UpdateRepoMirror` operationId).
	UpdateRepoMirrorWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRepoMirrorResponse, error)

	// UpdateRepoMirrorWithResponse Modifica un mirror in push
	//
	// Serve `admin` sul repo (V8). Cambia solo i campi indicati. `token`: una stringa sostituisce il token (non si puo' togliere: il mirror non funzionerebbe). Cambiare `url` azzera lo stato e rimette in coda il mirror. `enabled: false` mette in pausa il mirror (nessun push, nemmeno su richiesta) senza eliminarlo. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /repos/{owner}/{repo}/mirrors/{mirrorId} (the `UpdateRepoMirror` operationId).
	UpdateRepoMirrorWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam, body UpdateRepoMirrorJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRepoMirrorResponse, error)

	// ListRepoMirrorRunsWithResponse Log delle ultime esecuzioni di un mirror in push
	//
	// Serve `admin` sul repo (V8). Le ultime esecuzioni (al massimo 50 per mirror, 30 giorni), dalla piu' recente. Ogni esecuzione dice l'esito, l'errore ripulito da credenziali e lo SHA di ogni ref. Paginazione come `GET /repos`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/mirrors/{mirrorId}/runs (the `ListRepoMirrorRuns` operationId).
	ListRepoMirrorRunsWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam, params *ListRepoMirrorRunsParams, reqEditors ...RequestEditorFn) (*ListRepoMirrorRunsResponse, error)

	// SyncRepoMirrorWithResponse Sincronizza ora un mirror in push
	//
	// Serve `admin` sul repo (V8). Mette il mirror in coda subito («Sincronizza ora»): risponde 202 e il push lo esegue il worker, entro pochi secondi; si segue con `getRepoMirror` e `listRepoMirrorRuns`. Su un mirror `diverged` o in `error` azzera i tentativi e riprova: il push resta non forzato, quindi se la destinazione ha ancora una storia diversa il mirror torna `diverged`. Un mirror in pausa (`enabled: false`) risponde 409 `mirror_disabled`. Idempotente se il mirror e' gia' in coda. Un repo archiviato rifiuta la modifica con 409 `archived` (R10).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /repos/{owner}/{repo}/mirrors/{mirrorId}/sync (the `SyncRepoMirror` operationId).
	SyncRepoMirrorWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, mirrorId MirrorIdParam, reqEditors ...RequestEditorFn) (*SyncRepoMirrorResponse, error)

	// GetRepositoryRawWithResponse Contenuto grezzo di un file (streaming)
	//
	// Byte del file `path` a `ref`, senza limite di dimensione, in streaming (nessun buffer in memoria), `Content-Length` quando noto. Regola B3, mai servito come pagina eseguibile: un file di testo (non SVG, non binario) esce come `text/plain; charset=utf-8` in linea; qualunque altro (binari, immagini, SVG compreso) come `application/octet-stream` con `Content-Disposition: attachment`. In ogni caso `X-Content-Type-Options: nosniff` e `Content-Security-Policy: sandbox`. Servono sessione o token con `read` (nessun link anonimo). Forma con query, per la SPA e i client; l'indirizzo pubblico per i link e' `getRepositoryRawByPath`. 404 se `path` non esiste o non e' un file. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/raw (the `GetRepositoryRaw` operationId).
	GetRepositoryRawWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryRawParams, reqEditors ...RequestEditorFn) (*GetRepositoryRawResponse, error)

	// GetRepositoryRawByPathWithResponse Contenuto grezzo di un file, per indirizzo (streaming)
	//
	// Forma a indirizzo di `getRepositoryRaw` (regola B3): il browser la raggiunge come `/<owner>/<repo>/raw/<ref>/<percorso>` (la riscrive il container web, vedi docs/repos.md), l'API come `/v1/repos/<owner>/<repo>/raw/<ref>/<percorso>`. Stesse regole di sicurezza, stessi byte e stesse intestazioni di `getRepositoryRaw` (`text/plain` o allegato, `nosniff`, `Content-Security-Policy: sandbox`). `refAndPath` occupa piu' segmenti: il router di core e la tabella del gateway lo trattano come coda (`x-path-tail`), non come un segmento solo. Servono sessione o token con `read`. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. Un ref che non corrisponde a nessun branch, tag o sha risponde 404 `ref_not_found`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/raw/{refAndPath} (the `GetRepositoryRawByPath` operationId).
	GetRepositoryRawByPathWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, refAndPath RefAndPathParam, reqEditors ...RequestEditorFn) (*GetRepositoryRawByPathResponse, error)

	// GetRepositoryReadmeWithResponse README di una cartella
	//
	// Il README della cartella `path` (radice se assente), cercato come `README.md`, `README`, `README.txt` (senza distinguere maiuscole), con le stesse regole B1 di `contents` (`kind`, `display`, limiti 1 MB e 5 MB). 404 se non c'e'. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/readme (the `GetRepositoryReadme` operationId).
	GetRepositoryReadmeWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryReadmeParams, reqEditors ...RequestEditorFn) (*GetRepositoryReadmeResponse, error)

	// SearchRepositoryCodeWithResponse Cerca un testo nel codice di un ref ("Search code")
	//
	// Regola B5: cerca `q` (sottostringa letterale, senza distinguere maiuscole) nei file di testo di `ref`, senza indice. Al massimo 100 risultati con percorso, riga e frammento (`limitReached` se ce ne sono altri), tempo massimo 10 secondi (`timedOut` se interrotta). Un `q` piu' corto di 2 caratteri risponde 400. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/search (the `SearchRepositoryCode` operationId).
	SearchRepositoryCodeWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *SearchRepositoryCodeParams, reqEditors ...RequestEditorFn) (*SearchRepositoryCodeResponse, error)

	// GetRepositoryTagsWithResponse Tag del repo, con conteggi
	//
	// Tutti i tag, dal piu' recente; `total` e' il conteggio (mockup 07: "7 tags"). Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. Non ha `ref`: elenca tutti i tag.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/tags (the `GetRepositoryTags` operationId).
	GetRepositoryTagsWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*GetRepositoryTagsResponse, error)

	// GetRepositoryTreeWithResponse Albero di una cartella con l'ultimo commit per voce
	//
	// Voci della cartella `path` (radice se assente) a `ref`, con l'ultimo commit che ha toccato ciascuna (mockup 07). Al massimo 1 000 voci: oltre, `truncated` e' true. Ordine: cartelle, poi file, per nome. 404 se `path` non esiste o non e' una cartella. Come per `getRepository`: un repo che l'utente non puo' leggere, o eliminato, risponde 404. `ref` puo' essere branch, tag o sha; se manca vale il branch principale (R4). Un `ref` non valido risponde 400 `invalid_ref`, uno inesistente 404 `ref_not_found`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/tree (the `GetRepositoryTree` operationId).
	GetRepositoryTreeWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, params *GetRepositoryTreeParams, reqEditors ...RequestEditorFn) (*GetRepositoryTreeResponse, error)

	// ResetRepoWatchWithResponse Riporta il Watch al default
	//
	// Torna a `participating`. Idempotente.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /repos/{owner}/{repo}/watch (the `ResetRepoWatch` operationId).
	ResetRepoWatchWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*ResetRepoWatchResponse, error)

	// GetRepoWatchWithResponse Watch del repo
	//
	// Come l'utente corrente segue il repo (C3): `participating` (default), `all` o `ignore`. Serve `read` sul repo; un repo che non si legge risponde 404.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /repos/{owner}/{repo}/watch (the `GetRepoWatch` operationId).
	GetRepoWatchWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, reqEditors ...RequestEditorFn) (*GetRepoWatchResponse, error)

	// SetRepoWatchWithBodyWithResponse Imposta il Watch del repo
	//
	// `participating`: notifiche solo per le issues che si seguono (autore, assegnatario, commentatore, menzionato, iscritto); `all`: anche ogni nuova issue e commento del repo; `ignore`: nessuna notifica dal repo, nemmeno le menzioni dirette e le assegnazioni. Serve `read` sul repo.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /repos/{owner}/{repo}/watch (the `SetRepoWatch` operationId).
	SetRepoWatchWithBodyWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetRepoWatchResponse, error)

	// SetRepoWatchWithResponse Imposta il Watch del repo
	//
	// `participating`: notifiche solo per le issues che si seguono (autore, assegnatario, commentatore, menzionato, iscritto); `all`: anche ogni nuova issue e commento del repo; `ignore`: nessuna notifica dal repo, nemmeno le menzioni dirette e le assegnazioni. Serve `read` sul repo.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /repos/{owner}/{repo}/watch (the `SetRepoWatch` operationId).
	SetRepoWatchWithResponse(ctx context.Context, owner RepoOwnerParam, repo RepoNameParam, body SetRepoWatchJSONRequestBody, reqEditors ...RequestEditorFn) (*SetRepoWatchResponse, error)

	// ListResourcesWithResponse Elenca le risorse
	//
	// Elenco paginato delle risorse, con filtro opzionale per tipo (es. `repo`). Il tipo non è vincolato a un insieme fisso: nuove milestone aggiungono nuovi tipi senza cambiare l'endpoint (D15).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /resources (the `ListResources` operationId).
	ListResourcesWithResponse(ctx context.Context, params *ListResourcesParams, reqEditors ...RequestEditorFn) (*ListResourcesResponse, error)

	// CreateResourceWithBodyWithResponse Crea una risorsa
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /resources (the `CreateResource` operationId).
	CreateResourceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateResourceResponse, error)

	// CreateResourceWithResponse Crea una risorsa
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /resources (the `CreateResource` operationId).
	CreateResourceWithResponse(ctx context.Context, body CreateResourceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateResourceResponse, error)

	// DeleteResourceWithResponse Elimina una risorsa
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /resources/{resourceId} (the `DeleteResource` operationId).
	DeleteResourceWithResponse(ctx context.Context, resourceId ResourceIdParam, reqEditors ...RequestEditorFn) (*DeleteResourceResponse, error)

	// GetResourceWithResponse Legge una risorsa
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /resources/{resourceId} (the `GetResource` operationId).
	GetResourceWithResponse(ctx context.Context, resourceId ResourceIdParam, reqEditors ...RequestEditorFn) (*GetResourceResponse, error)

	// UpdateResourceWithBodyWithResponse Aggiorna una risorsa
	//
	// Aggiornamento parziale: solo i campi presenti nel corpo cambiano.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /resources/{resourceId} (the `UpdateResource` operationId).
	UpdateResourceWithBodyWithResponse(ctx context.Context, resourceId ResourceIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateResourceResponse, error)

	// UpdateResourceWithResponse Aggiorna una risorsa
	//
	// Aggiornamento parziale: solo i campi presenti nel corpo cambiano.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /resources/{resourceId} (the `UpdateResource` operationId).
	UpdateResourceWithResponse(ctx context.Context, resourceId ResourceIdParam, body UpdateResourceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateResourceResponse, error)

	// ListResourceGrantsWithResponse Elenca i grant di una risorsa
	//
	// Scope `read:resource`; serve almeno il ruolo `admin` sulla risorsa.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /resources/{resourceId}/grants (the `ListResourceGrants` operationId).
	ListResourceGrantsWithResponse(ctx context.Context, resourceId ResourceIdParam, params *ListResourceGrantsParams, reqEditors ...RequestEditorFn) (*ListResourceGrantsResponse, error)

	// CreateResourceGrantWithBodyWithResponse Assegna un ruolo su una risorsa a un utente o a un team
	//
	// Scope `write:resource`; serve il ruolo `admin` sulla risorsa. Un solo grant per (risorsa, soggetto): il secondo risponde 409.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /resources/{resourceId}/grants (the `CreateResourceGrant` operationId).
	CreateResourceGrantWithBodyWithResponse(ctx context.Context, resourceId ResourceIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateResourceGrantResponse, error)

	// CreateResourceGrantWithResponse Assegna un ruolo su una risorsa a un utente o a un team
	//
	// Scope `write:resource`; serve il ruolo `admin` sulla risorsa. Un solo grant per (risorsa, soggetto): il secondo risponde 409.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /resources/{resourceId}/grants (the `CreateResourceGrant` operationId).
	CreateResourceGrantWithResponse(ctx context.Context, resourceId ResourceIdParam, body CreateResourceGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateResourceGrantResponse, error)

	// DeleteResourceGrantWithResponse Revoca un grant
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /resources/{resourceId}/grants/{grantId} (the `DeleteResourceGrant` operationId).
	DeleteResourceGrantWithResponse(ctx context.Context, resourceId ResourceIdParam, grantId GrantIdParam, reqEditors ...RequestEditorFn) (*DeleteResourceGrantResponse, error)

	// UpdateResourceGrantWithBodyWithResponse Cambia il ruolo di un grant
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /resources/{resourceId}/grants/{grantId} (the `UpdateResourceGrant` operationId).
	UpdateResourceGrantWithBodyWithResponse(ctx context.Context, resourceId ResourceIdParam, grantId GrantIdParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateResourceGrantResponse, error)

	// UpdateResourceGrantWithResponse Cambia il ruolo di un grant
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /resources/{resourceId}/grants/{grantId} (the `UpdateResourceGrant` operationId).
	UpdateResourceGrantWithResponse(ctx context.Context, resourceId ResourceIdParam, grantId GrantIdParam, body UpdateResourceGrantJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateResourceGrantResponse, error)

	// GetMyResourcePermissionWithResponse Permesso effettivo del chiamante su una risorsa
	//
	// Ruolo effettivo (grant diretto, via team, amministratore) tenendo conto degli scope del token. Scope `read:resource`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /resources/{resourceId}/permissions (the `GetMyResourcePermission` operationId).
	GetMyResourcePermissionWithResponse(ctx context.Context, resourceId ResourceIdParam, reqEditors ...RequestEditorFn) (*GetMyResourcePermissionResponse, error)

	// SearchIssuesWithResponse Cerca issues su tutta l'installazione
	//
	// Ricerca con la sintassi di I10 (`is:`, `reason:`, `label:`, `assignee:` con `@me` e `@agents`, `author:`, `milestone:`, `no:`, `repo:`, `org:` e testo libero con ricerca testuale PostgreSQL) sui soli repo che l'utente puo' leggere. Stessa sintassi di `listIssues`, che e' la ricerca nel singolo repo. Le issues nascoste compaiono solo a chi ha `admin` sul loro repo. Un `q` che non si puo' interpretare risponde 422.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /search/issues (the `SearchIssues` operationId).
	SearchIssuesWithResponse(ctx context.Context, params *SearchIssuesParams, reqEditors ...RequestEditorFn) (*SearchIssuesResponse, error)

	// GetNotificationPreferencesWithResponse Preferenze email delle notifiche
	//
	// Per ogni tipo (= motivo della notifica) se arriva anche una email (C5). Default: email per `mentioned` e `assigned`, non per gli altri. `emailAvailable` e' `false` quando l'installazione non ha SMTP o l'utente e' un agente (C4, C5): le preferenze si leggono e si salvano lo stesso, ma non partono email.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /user/notification-preferences (the `GetNotificationPreferences` operationId).
	GetNotificationPreferencesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetNotificationPreferencesResponse, error)

	// UpdateNotificationPreferencesWithBodyWithResponse Imposta le preferenze email
	//
	// Imposta i tipi indicati in `email`; quelli omessi restano come sono. Un tipo sconosciuto: 422 (`details.fields.email`).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /user/notification-preferences (the `UpdateNotificationPreferences` operationId).
	UpdateNotificationPreferencesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNotificationPreferencesResponse, error)

	// UpdateNotificationPreferencesWithResponse Imposta le preferenze email
	//
	// Imposta i tipi indicati in `email`; quelli omessi restano come sono. Un tipo sconosciuto: 422 (`details.fields.email`).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /user/notification-preferences (the `UpdateNotificationPreferences` operationId).
	UpdateNotificationPreferencesWithResponse(ctx context.Context, body UpdateNotificationPreferencesJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNotificationPreferencesResponse, error)

	// ListSshKeysWithResponse Elenca le chiavi SSH dell'utente corrente
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /user/ssh-keys (the `ListSshKeys` operationId).
	ListSshKeysWithResponse(ctx context.Context, params *ListSshKeysParams, reqEditors ...RequestEditorFn) (*ListSshKeysResponse, error)

	// AddSshKeyWithBodyWithResponse Aggiunge una chiave SSH
	//
	// Scope `write:user`. Il servizio valida la chiave, calcola il fingerprint SHA256 e lo tiene unico: la stessa chiave non puo' appartenere a due utenti (409 `ssh_key_in_use`).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /user/ssh-keys (the `AddSshKey` operationId).
	AddSshKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddSshKeyResponse, error)

	// AddSshKeyWithResponse Aggiunge una chiave SSH
	//
	// Scope `write:user`. Il servizio valida la chiave, calcola il fingerprint SHA256 e lo tiene unico: la stessa chiave non puo' appartenere a due utenti (409 `ssh_key_in_use`).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /user/ssh-keys (the `AddSshKey` operationId).
	AddSshKeyWithResponse(ctx context.Context, body AddSshKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*AddSshKeyResponse, error)

	// DeleteSshKeyWithResponse Elimina una chiave SSH
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /user/ssh-keys/{keyId} (the `DeleteSshKey` operationId).
	DeleteSshKeyWithResponse(ctx context.Context, keyId SshKeyIdParam, reqEditors ...RequestEditorFn) (*DeleteSshKeyResponse, error)

	// GetSshKeyWithResponse Legge una chiave SSH
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /user/ssh-keys/{keyId} (the `GetSshKey` operationId).
	GetSshKeyWithResponse(ctx context.Context, keyId SshKeyIdParam, reqEditors ...RequestEditorFn) (*GetSshKeyResponse, error)

	// ListTokensWithResponse Elenca i token personali dell'utente corrente
	//
	// Scope `read:user`. Mai il valore del token, solo `hint`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /user/tokens (the `ListTokens` operationId).
	ListTokensWithResponse(ctx context.Context, params *ListTokensParams, reqEditors ...RequestEditorFn) (*ListTokensResponse, error)

	// CreateTokenWithBodyWithResponse Crea un token personale
	//
	// Scope `write:user`. Il valore (`gst_...`) e' nella risposta una volta sola: il servizio conserva solo l'hash. Un token non puo' avere scope che il suo creatore non ha.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /user/tokens (the `CreateToken` operationId).
	CreateTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTokenResponse, error)

	// CreateTokenWithResponse Crea un token personale
	//
	// Scope `write:user`. Il valore (`gst_...`) e' nella risposta una volta sola: il servizio conserva solo l'hash. Un token non puo' avere scope che il suo creatore non ha.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /user/tokens (the `CreateToken` operationId).
	CreateTokenWithResponse(ctx context.Context, body CreateTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTokenResponse, error)

	// RevokeTokenWithResponse Revoca un token personale
	//
	// Scope `write:user`. La revoca e' immediata per identity; il gateway la vede entro il TTL della cache di verifica.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /user/tokens/{tokenId} (the `RevokeToken` operationId).
	RevokeTokenWithResponse(ctx context.Context, tokenId TokenIdParam, reqEditors ...RequestEditorFn) (*RevokeTokenResponse, error)

	// ListUsersWithResponse Elenca gli utenti
	//
	// Richiede lo scope `read:user`. Il profilo pubblico non include l'email.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /users (the `ListUsers` operationId).
	ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)

	// CreateUserWithBodyWithResponse Crea un utente
	//
	// Solo amministratori, scope `write:user`. Serve a creare utenti umani e agenti; non c'e' auto-registrazione.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /users (the `CreateUser` operationId).
	CreateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)

	// CreateUserWithResponse Crea un utente
	//
	// Solo amministratori, scope `write:user`. Serve a creare utenti umani e agenti; non c'e' auto-registrazione.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /users (the `CreateUser` operationId).
	CreateUserWithResponse(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)

	// DeleteUserWithResponse Elimina un utente
	//
	// Solo amministratori, scope `write:user`. Elimina a cascata sessioni, token, chiavi SSH e membership. Non si puo' eliminare l'ultimo amministratore (409 `last_admin`).
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /users/{username} (the `DeleteUser` operationId).
	DeleteUserWithResponse(ctx context.Context, username UsernameParam, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error)

	// GetUserWithResponse Legge il profilo di un utente
	//
	// Scope `read:user`. L'email e i campi amministrativi compaiono solo per l'utente stesso e per gli amministratori.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /users/{username} (the `GetUser` operationId).
	GetUserWithResponse(ctx context.Context, username UsernameParam, reqEditors ...RequestEditorFn) (*GetUserResponse, error)

	// UpdateUserWithBodyWithResponse Aggiorna il profilo
	//
	// Scope `write:user`. Solo l'utente stesso (profilo) o un amministratore (anche `isAdmin`, `isActive`).
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /users/{username} (the `UpdateUser` operationId).
	UpdateUserWithBodyWithResponse(ctx context.Context, username UsernameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)

	// UpdateUserWithResponse Aggiorna il profilo
	//
	// Scope `write:user`. Solo l'utente stesso (profilo) o un amministratore (anche `isAdmin`, `isActive`).
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /users/{username} (the `UpdateUser` operationId).
	UpdateUserWithResponse(ctx context.Context, username UsernameParam, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)

	// GetUserAccessWithResponse Accesso effettivo di un utente ai repository
	//
	// Solo l'amministratore dell'installazione (403 agli altri, anche per se stessi), scope `read:user`. Per ogni repository non eliminato che l'utente `username` (persona o agent) puo' raggiungere: il ruolo effettivo, il piu' alto fra le fonti (P1-P6), e l'elenco delle fonti (`sources`): grant diretto, grant di un team di cui e' membro (o di un'organizzazione di cui e' owner), owner del repo (organizzazione o repo personale), visibilita' interna, oppure amministratore dell'installazione. Un utente disattivato non ha accesso. 404 se l'utente non esiste. Paginazione come `GET /repos`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /users/{username}/access (the `GetUserAccess` operationId).
	GetUserAccessWithResponse(ctx context.Context, username UsernameParam, params *GetUserAccessParams, reqEditors ...RequestEditorFn) (*GetUserAccessResponse, error)

	// ChangePasswordWithBodyWithResponse Cambia la password
	//
	// Scope `write:user`. L'utente stesso deve fornire `currentPassword`; un amministratore no. Con `currentPassword` sbagliata risponde 403 `forbidden` (il chiamante e' gia' autenticato: un 401 farebbe uscire il client). Revoca le altre sessioni dell'utente.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /users/{username}/password (the `ChangePassword` operationId).
	ChangePasswordWithBodyWithResponse(ctx context.Context, username UsernameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangePasswordResponse, error)

	// ChangePasswordWithResponse Cambia la password
	//
	// Scope `write:user`. L'utente stesso deve fornire `currentPassword`; un amministratore no. Con `currentPassword` sbagliata risponde 403 `forbidden` (il chiamante e' gia' autenticato: un 401 farebbe uscire il client). Revoca le altre sessioni dell'utente.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /users/{username}/password (the `ChangePassword` operationId).
	ChangePasswordWithResponse(ctx context.Context, username UsernameParam, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangePasswordResponse, error)

	// ListUserTokensWithResponse Elenca i token di un utente agent
	//
	// Solo amministratori, scope `write:user` (regola P5). Solo per utenti di tipo `agent`: sui token di una persona decide solo lei (409 `not_an_agent`). Mai il valore del token, solo `hint`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /users/{username}/tokens (the `ListUserTokens` operationId).
	ListUserTokensWithResponse(ctx context.Context, username UsernameParam, params *ListUserTokensParams, reqEditors ...RequestEditorFn) (*ListUserTokensResponse, error)

	// CreateUserTokenWithBodyWithResponse Crea un token per un utente agent
	//
	// Solo amministratori, scope `write:user` (regola P5). Solo per utenti di tipo `agent` (409 `not_an_agent` altrimenti). Stesse regole dei token personali: scope dal catalogo, scadenza obbligatoria con lo stesso massimo, valore (`gst_...`) mostrato una sola volta, nel database solo lo SHA-256.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /users/{username}/tokens (the `CreateUserToken` operationId).
	CreateUserTokenWithBodyWithResponse(ctx context.Context, username UsernameParam, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserTokenResponse, error)

	// CreateUserTokenWithResponse Crea un token per un utente agent
	//
	// Solo amministratori, scope `write:user` (regola P5). Solo per utenti di tipo `agent` (409 `not_an_agent` altrimenti). Stesse regole dei token personali: scope dal catalogo, scadenza obbligatoria con lo stesso massimo, valore (`gst_...`) mostrato una sola volta, nel database solo lo SHA-256.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /users/{username}/tokens (the `CreateUserToken` operationId).
	CreateUserTokenWithResponse(ctx context.Context, username UsernameParam, body CreateUserTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserTokenResponse, error)

	// RevokeUserTokenWithResponse Revoca un token di un utente agent
	//
	// Solo amministratori, scope `write:user` (regola P5). Un token che non appartiene a quell'agent e' 404. Utente umano: 409 `not_an_agent`.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /users/{username}/tokens/{tokenId} (the `RevokeUserToken` operationId).
	RevokeUserTokenWithResponse(ctx context.Context, username UsernameParam, tokenId TokenIdParam, reqEditors ...RequestEditorFn) (*RevokeUserTokenResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CloseIssueInput

type CloseIssueInput struct {
	// DuplicateOf Obbligatorio con `reason=duplicate`, vietato altrimenti.
	DuplicateOf *int64            `json:"duplicateOf,omitempty"`
	Reason      *IssueCloseReason `json:"reason,omitempty"`
}

CloseIssueInput defines model for CloseIssueInput.

type CloseIssueJSONRequestBody

type CloseIssueJSONRequestBody = CloseIssueInput

CloseIssueJSONRequestBody defines body for CloseIssue for application/json ContentType.

type CloseIssueResponse

type CloseIssueResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Issue
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseCloseIssueResponse

func ParseCloseIssueResponse(rsp *http.Response) (*CloseIssueResponse, error)

ParseCloseIssueResponse parses an HTTP response from a CloseIssueWithResponse call

func (CloseIssueResponse) ContentType

func (r CloseIssueResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CloseIssueResponse) GetBody

func (r CloseIssueResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CloseIssueResponse) GetJSON200

func (r CloseIssueResponse) GetJSON200() *Issue

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CloseIssueResponse) GetJSON400

func (r CloseIssueResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CloseIssueResponse) GetJSON401

func (r CloseIssueResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CloseIssueResponse) GetJSON403

func (r CloseIssueResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CloseIssueResponse) GetJSON404

func (r CloseIssueResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CloseIssueResponse) GetJSON409

func (r CloseIssueResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CloseIssueResponse) GetJSON422

func (r CloseIssueResponse) GetJSON422() *UnprocessableEntity

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CloseIssueResponse) GetJSONDefault

func (r CloseIssueResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (CloseIssueResponse) Status

func (r CloseIssueResponse) Status() string

Status returns HTTPResponse.Status

func (CloseIssueResponse) StatusCode

func (r CloseIssueResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CodeSearchHit

type CodeSearchHit struct {
	// Fragment La riga della corrispondenza, tagliata a 300 caratteri (`searchFragmentMaxChars`) attorno al testo cercato.
	Fragment string `json:"fragment"`

	// Line Numero di riga (da 1) della corrispondenza.
	Line int    `json:"line"`
	Path string `json:"path"`
}

CodeSearchHit defines model for CodeSearchHit.

type CodeSearchQueryParam

type CodeSearchQueryParam = string

CodeSearchQueryParam defines model for CodeSearchQueryParam.

type CodeSearchResult

type CodeSearchResult struct {
	// LimitReached True se ci sono altri risultati oltre i 100 restituiti.
	LimitReached bool   `json:"limitReached"`
	Query        string `json:"query"`
	Ref          string `json:"ref"`

	// Results Al massimo 100 risultati (`searchMaxResults`), per percorso e riga. Si cerca solo nei file di testo fino a 1 MB (`searchFileMaxBytes`).
	Results []CodeSearchHit `json:"results"`

	// TimedOut True se la ricerca e' stata interrotta dopo 10 secondi (`searchTimeoutSeconds`); i risultati sono parziali.
	TimedOut bool `json:"timedOut"`
}

CodeSearchResult Risultato di "Search code" (regola B5): ricerca testuale senza indice sul ref scelto, in un solo repo.

type CodeUser

type CodeUser struct {
	AvatarUrl *string            `json:"avatarUrl"`
	Id        openapi_types.UUID `json:"id"`
	Kind      CodeUserKind       `json:"kind"`

	// Username Nome breve in minuscolo (username, organizzazione, team, provider): lettere minuscole, cifre e trattini, 1-39 caratteri, inizia e finisce con un carattere alfanumerico.
	//
	//
	// Example: alice
	Username Name `json:"username"`
}

CodeUser Utente GitStack che corrisponde all'email di un commit (confronto senza distinguere maiuscole con l'email di identity). `kind` da' il badge umano/agente.

type CodeUserKind

type CodeUserKind string

CodeUserKind defines model for CodeUser.Kind.

const (
	CodeUserKindAgent CodeUserKind = "agent"
	CodeUserKindHuman CodeUserKind = "human"
)

Defines values for CodeUserKind.

func (CodeUserKind) Valid

func (e CodeUserKind) Valid() bool

Valid indicates whether the value is a known member of the CodeUserKind enum.

type CommitAuthorFilter

type CommitAuthorFilter = string

CommitAuthorFilter defines model for CommitAuthorFilter.

type CommitDetail

type CommitDetail struct {
	Additions int           `json:"additions"`
	Commit    CommitSummary `json:"commit"`
	Deletions int           `json:"deletions"`
	Files     []FileDiff    `json:"files"`

	// FilesChanged Numero reale di file toccati, anche oltre i 300 elencati.
	FilesChanged int `json:"filesChanged"`

	// IgnoreWhitespace Il diff e' stato calcolato ignorando gli spazi (`git diff -w`); i file che cambiano solo negli spazi non compaiono.
	IgnoreWhitespace *bool `json:"ignoreWhitespace,omitempty"`

	// ListOnly B6: oltre 300 file o 20 000 righe cambiate la risposta porta solo l'elenco dei file con righe aggiunte e tolte, senza `patch`.
	ListOnly *bool `json:"listOnly,omitempty"`

	// Tags Tag che puntano al commit (anche annotati), in ordine alfabetico.
	Tags *[]string `json:"tags,omitempty"`

	// Truncated True se i file sono oltre 300 o le righe di diff oltre 20 000 in totale.
	Truncated bool `json:"truncated"`
}

CommitDetail defines model for CommitDetail.

type CommitList

type CommitList struct {
	// HasMore Non c'e' un totale, contarlo costa un giro completo della storia.
	HasMore bool            `json:"hasMore"`
	Items   []CommitSummary `json:"items"`
	Page    int             `json:"page"`
	PerPage int             `json:"perPage"`
}

CommitList defines model for CommitList.

type CommitPageParam

type CommitPageParam = int

CommitPageParam defines model for CommitPageParam.

type CommitPerPageParam

type CommitPerPageParam = int

CommitPerPageParam defines model for CommitPerPageParam.

type CommitPerson

type CommitPerson struct {
	Date  time.Time `json:"date"`
	Email string    `json:"email"`
	Name  string    `json:"name"`
	User  *CodeUser `json:"user,omitempty"`
}

CommitPerson Autore o committer dichiarato nel commit. Non e' una prova d'identita': chiunque puo' scrivere un nome e un'email qualsiasi in un commit. `user` e' null se nessun utente GitStack ha quell'email (e sempre assente nelle risposte del servizio git, che non conosce gli utenti).

type CommitShaParam

type CommitShaParam = string

CommitShaParam defines model for CommitShaParam.

type CommitSummary

type CommitSummary struct {
	// Author Autore o committer dichiarato nel commit. Non e' una prova d'identita': chiunque puo' scrivere un nome e un'email qualsiasi in un commit. `user` e' null se nessun utente GitStack ha quell'email (e sempre assente nelle risposte del servizio git, che non conosce gli utenti).
	Author CommitPerson `json:"author"`

	// Committer Autore o committer dichiarato nel commit. Non e' una prova d'identita': chiunque puo' scrivere un nome e un'email qualsiasi in un commit. `user` e' null se nessun utente GitStack ha quell'email (e sempre assente nelle risposte del servizio git, che non conosce gli utenti).
	Committer CommitPerson `json:"committer"`

	// Message Messaggio completo (omesso nell'ultimo commit di una voce d'albero).
	Message *string  `json:"message,omitempty"`
	Parents []string `json:"parents"`
	Sha     string   `json:"sha"`

	// Subject Prima riga del messaggio.
	Subject string `json:"subject"`
}

CommitSummary defines model for CommitSummary.

type Conflict

type Conflict = Error

Conflict Formato unico degli errori per tutta l'API pubblica. Codici comuni per stato: 400 `bad_request`; 401 `unauthenticated`, `invalid_credentials`; 403 `forbidden`, `insufficient_scope`, `password_change_required`; 429 `too_many_attempts`; 404 `not_found`; 409 `conflict` e varianti specifiche (`already_exists`, `last_admin`, `last_owner`, `ssh_key_in_use`, `oidc_identity_unlinked`); 422 `validation_failed` (`details.fields`). Le risposte 401 non distinguono mai "utente inesistente" da "password errata".

type CreateGrantInput

type CreateGrantInput struct {
	// Role Ruolo su una risorsa, in ordine crescente di potere.
	Role        ResourceRole                `json:"role"`
	SubjectId   openapi_types.UUID          `json:"subjectId"`
	SubjectType CreateGrantInputSubjectType `json:"subjectType"`
}

CreateGrantInput defines model for CreateGrantInput.

type CreateGrantInputSubjectType

type CreateGrantInputSubjectType string

CreateGrantInputSubjectType defines model for CreateGrantInput.SubjectType.

const (
	CreateGrantInputSubjectTypeTeam CreateGrantInputSubjectType = "team"
	CreateGrantInputSubjectTypeUser CreateGrantInputSubjectType = "user"
)

Defines values for CreateGrantInputSubjectType.

func (CreateGrantInputSubjectType) Valid

Valid indicates whether the value is a known member of the CreateGrantInputSubjectType enum.

type CreateIssueCommentInput

type CreateIssueCommentInput struct {
	AttachmentIds *[]openapi_types.UUID `json:"attachmentIds,omitempty"`
	Body          string                `json:"body"`
}

CreateIssueCommentInput defines model for CreateIssueCommentInput.

type CreateIssueCommentJSONRequestBody

type CreateIssueCommentJSONRequestBody = CreateIssueCommentInput

CreateIssueCommentJSONRequestBody defines body for CreateIssueComment for application/json ContentType.

type CreateIssueCommentResponse

type CreateIssueCommentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *IssueComment
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON413 the response for an HTTP 413 `application/json` response
	JSON413 *PayloadTooLarge
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateIssueCommentResponse201Headers
}

func ParseCreateIssueCommentResponse

func ParseCreateIssueCommentResponse(rsp *http.Response) (*CreateIssueCommentResponse, error)

ParseCreateIssueCommentResponse parses an HTTP response from a CreateIssueCommentWithResponse call

func (CreateIssueCommentResponse) ContentType

func (r CreateIssueCommentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateIssueCommentResponse) GetBody

func (r CreateIssueCommentResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateIssueCommentResponse) GetJSON201

func (r CreateIssueCommentResponse) GetJSON201() *IssueComment

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateIssueCommentResponse) GetJSON400

func (r CreateIssueCommentResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateIssueCommentResponse) GetJSON401

func (r CreateIssueCommentResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateIssueCommentResponse) GetJSON403

func (r CreateIssueCommentResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateIssueCommentResponse) GetJSON404

func (r CreateIssueCommentResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CreateIssueCommentResponse) GetJSON409

func (r CreateIssueCommentResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateIssueCommentResponse) GetJSON413

GetJSON413 returns the response for an HTTP 413 `application/json` response

func (CreateIssueCommentResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CreateIssueCommentResponse) GetJSONDefault

func (r CreateIssueCommentResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (CreateIssueCommentResponse) Status

Status returns HTTPResponse.Status

func (CreateIssueCommentResponse) StatusCode

func (r CreateIssueCommentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateIssueCommentResponse201Headers

type CreateIssueCommentResponse201Headers struct {
	Location *string
}

CreateIssueCommentResponse201Headers the declared response headers of an HTTP 201 response for CreateIssueComment

type CreateIssueInput

type CreateIssueInput struct {
	// Assignees Nomi utente con `write`. Richiede `write`.
	Assignees     *[]Name               `json:"assignees,omitempty"`
	AttachmentIds *[]openapi_types.UUID `json:"attachmentIds,omitempty"`
	Body          *string               `json:"body,omitempty"`

	// Labels Nomi di etichette del repo. Richiede `write`.
	Labels *[]string `json:"labels,omitempty"`

	// Milestone Numero di una milestone del repo. Richiede `write`.
	Milestone *int64 `json:"milestone,omitempty"`
	Title     string `json:"title"`
}

CreateIssueInput defines model for CreateIssueInput.

type CreateIssueJSONRequestBody

type CreateIssueJSONRequestBody = CreateIssueInput

CreateIssueJSONRequestBody defines body for CreateIssue for application/json ContentType.

type CreateIssueResponse

type CreateIssueResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Issue
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON413 the response for an HTTP 413 `application/json` response
	JSON413 *PayloadTooLarge
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateIssueResponse201Headers
}

func ParseCreateIssueResponse

func ParseCreateIssueResponse(rsp *http.Response) (*CreateIssueResponse, error)

ParseCreateIssueResponse parses an HTTP response from a CreateIssueWithResponse call

func (CreateIssueResponse) ContentType

func (r CreateIssueResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateIssueResponse) GetBody

func (r CreateIssueResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateIssueResponse) GetJSON201

func (r CreateIssueResponse) GetJSON201() *Issue

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateIssueResponse) GetJSON400

func (r CreateIssueResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateIssueResponse) GetJSON401

func (r CreateIssueResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateIssueResponse) GetJSON403

func (r CreateIssueResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateIssueResponse) GetJSON404

func (r CreateIssueResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CreateIssueResponse) GetJSON409

func (r CreateIssueResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateIssueResponse) GetJSON413

func (r CreateIssueResponse) GetJSON413() *PayloadTooLarge

GetJSON413 returns the response for an HTTP 413 `application/json` response

func (CreateIssueResponse) GetJSON422

func (r CreateIssueResponse) GetJSON422() *UnprocessableEntity

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CreateIssueResponse) GetJSONDefault

func (r CreateIssueResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (CreateIssueResponse) Status

func (r CreateIssueResponse) Status() string

Status returns HTTPResponse.Status

func (CreateIssueResponse) StatusCode

func (r CreateIssueResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateIssueResponse201Headers

type CreateIssueResponse201Headers struct {
	Location *string
}

CreateIssueResponse201Headers the declared response headers of an HTTP 201 response for CreateIssue

type CreateLabelInput

type CreateLabelInput struct {
	// Color Colore esadecimale a sei cifre, senza `#`.
	//
	// Example: d73a4a
	Color       LabelColor `json:"color"`
	Description *string    `json:"description,omitempty"`
	Name        string     `json:"name"`
}

CreateLabelInput defines model for CreateLabelInput.

type CreateLabelJSONRequestBody

type CreateLabelJSONRequestBody = CreateLabelInput

CreateLabelJSONRequestBody defines body for CreateLabel for application/json ContentType.

type CreateLabelResponse

type CreateLabelResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Label
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateLabelResponse201Headers
}

func ParseCreateLabelResponse

func ParseCreateLabelResponse(rsp *http.Response) (*CreateLabelResponse, error)

ParseCreateLabelResponse parses an HTTP response from a CreateLabelWithResponse call

func (CreateLabelResponse) ContentType

func (r CreateLabelResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateLabelResponse) GetBody

func (r CreateLabelResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateLabelResponse) GetJSON201

func (r CreateLabelResponse) GetJSON201() *Label

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateLabelResponse) GetJSON400

func (r CreateLabelResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateLabelResponse) GetJSON401

func (r CreateLabelResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateLabelResponse) GetJSON403

func (r CreateLabelResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateLabelResponse) GetJSON404

func (r CreateLabelResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CreateLabelResponse) GetJSON409

func (r CreateLabelResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateLabelResponse) GetJSON422

func (r CreateLabelResponse) GetJSON422() *UnprocessableEntity

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CreateLabelResponse) GetJSONDefault

func (r CreateLabelResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (CreateLabelResponse) Status

func (r CreateLabelResponse) Status() string

Status returns HTTPResponse.Status

func (CreateLabelResponse) StatusCode

func (r CreateLabelResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateLabelResponse201Headers

type CreateLabelResponse201Headers struct {
	Location *string
}

CreateLabelResponse201Headers the declared response headers of an HTTP 201 response for CreateLabel

type CreateMilestoneInput

type CreateMilestoneInput struct {
	Description *string             `json:"description,omitempty"`
	DueOn       *openapi_types.Date `json:"dueOn,omitempty"`
	Title       string              `json:"title"`
}

CreateMilestoneInput defines model for CreateMilestoneInput.

type CreateMilestoneJSONRequestBody

type CreateMilestoneJSONRequestBody = CreateMilestoneInput

CreateMilestoneJSONRequestBody defines body for CreateMilestone for application/json ContentType.

type CreateMilestoneResponse

type CreateMilestoneResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Milestone
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateMilestoneResponse201Headers
}

func ParseCreateMilestoneResponse

func ParseCreateMilestoneResponse(rsp *http.Response) (*CreateMilestoneResponse, error)

ParseCreateMilestoneResponse parses an HTTP response from a CreateMilestoneWithResponse call

func (CreateMilestoneResponse) ContentType

func (r CreateMilestoneResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateMilestoneResponse) GetBody

func (r CreateMilestoneResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateMilestoneResponse) GetJSON201

func (r CreateMilestoneResponse) GetJSON201() *Milestone

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateMilestoneResponse) GetJSON400

func (r CreateMilestoneResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateMilestoneResponse) GetJSON401

func (r CreateMilestoneResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateMilestoneResponse) GetJSON403

func (r CreateMilestoneResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateMilestoneResponse) GetJSON404

func (r CreateMilestoneResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CreateMilestoneResponse) GetJSON409

func (r CreateMilestoneResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateMilestoneResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CreateMilestoneResponse) GetJSONDefault

func (r CreateMilestoneResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (CreateMilestoneResponse) Status

func (r CreateMilestoneResponse) Status() string

Status returns HTTPResponse.Status

func (CreateMilestoneResponse) StatusCode

func (r CreateMilestoneResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateMilestoneResponse201Headers

type CreateMilestoneResponse201Headers struct {
	Location *string
}

CreateMilestoneResponse201Headers the declared response headers of an HTTP 201 response for CreateMilestone

type CreateOrgWebhookJSONRequestBody

type CreateOrgWebhookJSONRequestBody = CreateWebhookInput

CreateOrgWebhookJSONRequestBody defines body for CreateOrgWebhook for application/json ContentType.

type CreateOrgWebhookResponse

type CreateOrgWebhookResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Webhook
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseCreateOrgWebhookResponse

func ParseCreateOrgWebhookResponse(rsp *http.Response) (*CreateOrgWebhookResponse, error)

ParseCreateOrgWebhookResponse parses an HTTP response from a CreateOrgWebhookWithResponse call

func (CreateOrgWebhookResponse) ContentType

func (r CreateOrgWebhookResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateOrgWebhookResponse) GetBody

func (r CreateOrgWebhookResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateOrgWebhookResponse) GetJSON201

func (r CreateOrgWebhookResponse) GetJSON201() *Webhook

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateOrgWebhookResponse) GetJSON400

func (r CreateOrgWebhookResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateOrgWebhookResponse) GetJSON401

func (r CreateOrgWebhookResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateOrgWebhookResponse) GetJSON403

func (r CreateOrgWebhookResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateOrgWebhookResponse) GetJSON404

func (r CreateOrgWebhookResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CreateOrgWebhookResponse) GetJSON409

func (r CreateOrgWebhookResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateOrgWebhookResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CreateOrgWebhookResponse) GetJSONDefault

func (r CreateOrgWebhookResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (CreateOrgWebhookResponse) Status

func (r CreateOrgWebhookResponse) Status() string

Status returns HTTPResponse.Status

func (CreateOrgWebhookResponse) StatusCode

func (r CreateOrgWebhookResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateOrganizationInput

type CreateOrganizationInput struct {
	Description *string `json:"description,omitempty"`
	DisplayName *string `json:"displayName,omitempty"`

	// Name Nome breve in minuscolo (username, organizzazione, team, provider): lettere minuscole, cifre e trattini, 1-39 caratteri, inizia e finisce con un carattere alfanumerico.
	//
	//
	// Example: alice
	Name Name `json:"name"`
}

CreateOrganizationInput defines model for CreateOrganizationInput.

type CreateOrganizationJSONRequestBody

type CreateOrganizationJSONRequestBody = CreateOrganizationInput

CreateOrganizationJSONRequestBody defines body for CreateOrganization for application/json ContentType.

type CreateOrganizationResponse

type CreateOrganizationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Organization
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateOrganizationResponse201Headers
}

func ParseCreateOrganizationResponse

func ParseCreateOrganizationResponse(rsp *http.Response) (*CreateOrganizationResponse, error)

ParseCreateOrganizationResponse parses an HTTP response from a CreateOrganizationWithResponse call

func (CreateOrganizationResponse) ContentType

func (r CreateOrganizationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateOrganizationResponse) GetBody

func (r CreateOrganizationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateOrganizationResponse) GetJSON201

func (r CreateOrganizationResponse) GetJSON201() *Organization

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateOrganizationResponse) GetJSON400

func (r CreateOrganizationResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateOrganizationResponse) GetJSON401

func (r CreateOrganizationResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateOrganizationResponse) GetJSON403

func (r CreateOrganizationResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateOrganizationResponse) GetJSON409

func (r CreateOrganizationResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateOrganizationResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CreateOrganizationResponse) GetJSONDefault

func (r CreateOrganizationResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (CreateOrganizationResponse) Status

Status returns HTTPResponse.Status

func (CreateOrganizationResponse) StatusCode

func (r CreateOrganizationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateOrganizationResponse201Headers

type CreateOrganizationResponse201Headers struct {
	Location *string
}

CreateOrganizationResponse201Headers the declared response headers of an HTTP 201 response for CreateOrganization

type CreateRepoMirrorInput

type CreateRepoMirrorInput struct {
	// Enabled Default `true`.
	Enabled *bool `json:"enabled,omitempty"`

	// Token Token o password per la destinazione (da 1 a 512 caratteri); cifrato, non torna mai.
	Token *string `json:"token,omitempty"`

	// Url `https://` senza credenziali, al massimo 2048 caratteri.
	Url string `json:"url"`

	// Username Da 1 a 256 caratteri.
	Username string `json:"username"`
}

CreateRepoMirrorInput Example: {"token":"ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","url":"https://github.com/example/gitstack.git","username":"gitstack-mirror"}

type CreateRepoMirrorJSONRequestBody

type CreateRepoMirrorJSONRequestBody = CreateRepoMirrorInput

CreateRepoMirrorJSONRequestBody defines body for CreateRepoMirror for application/json ContentType.

type CreateRepoMirrorResponse

type CreateRepoMirrorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *RepoMirror
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseCreateRepoMirrorResponse

func ParseCreateRepoMirrorResponse(rsp *http.Response) (*CreateRepoMirrorResponse, error)

ParseCreateRepoMirrorResponse parses an HTTP response from a CreateRepoMirrorWithResponse call

func (CreateRepoMirrorResponse) ContentType

func (r CreateRepoMirrorResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateRepoMirrorResponse) GetBody

func (r CreateRepoMirrorResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateRepoMirrorResponse) GetJSON201

func (r CreateRepoMirrorResponse) GetJSON201() *RepoMirror

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateRepoMirrorResponse) GetJSON400

func (r CreateRepoMirrorResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateRepoMirrorResponse) GetJSON401

func (r CreateRepoMirrorResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateRepoMirrorResponse) GetJSON403

func (r CreateRepoMirrorResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateRepoMirrorResponse) GetJSON404

func (r CreateRepoMirrorResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CreateRepoMirrorResponse) GetJSON409

func (r CreateRepoMirrorResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateRepoMirrorResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CreateRepoMirrorResponse) GetJSONDefault

func (r CreateRepoMirrorResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (CreateRepoMirrorResponse) Status

func (r CreateRepoMirrorResponse) Status() string

Status returns HTTPResponse.Status

func (CreateRepoMirrorResponse) StatusCode

func (r CreateRepoMirrorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateRepoWebhookJSONRequestBody

type CreateRepoWebhookJSONRequestBody = CreateWebhookInput

CreateRepoWebhookJSONRequestBody defines body for CreateRepoWebhook for application/json ContentType.

type CreateRepoWebhookResponse

type CreateRepoWebhookResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Webhook
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseCreateRepoWebhookResponse

func ParseCreateRepoWebhookResponse(rsp *http.Response) (*CreateRepoWebhookResponse, error)

ParseCreateRepoWebhookResponse parses an HTTP response from a CreateRepoWebhookWithResponse call

func (CreateRepoWebhookResponse) ContentType

func (r CreateRepoWebhookResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateRepoWebhookResponse) GetBody

func (r CreateRepoWebhookResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateRepoWebhookResponse) GetJSON201

func (r CreateRepoWebhookResponse) GetJSON201() *Webhook

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateRepoWebhookResponse) GetJSON400

func (r CreateRepoWebhookResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateRepoWebhookResponse) GetJSON401

func (r CreateRepoWebhookResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateRepoWebhookResponse) GetJSON403

func (r CreateRepoWebhookResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateRepoWebhookResponse) GetJSON404

func (r CreateRepoWebhookResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CreateRepoWebhookResponse) GetJSON409

func (r CreateRepoWebhookResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateRepoWebhookResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CreateRepoWebhookResponse) GetJSONDefault

func (r CreateRepoWebhookResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (CreateRepoWebhookResponse) Status

func (r CreateRepoWebhookResponse) Status() string

Status returns HTTPResponse.Status

func (CreateRepoWebhookResponse) StatusCode

func (r CreateRepoWebhookResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateRepositoryInput

type CreateRepositoryInput struct {
	// DefaultLabels Crea le etichette predefinite (I5): `bug`, `enhancement`, `documentation`, `question`, `duplicate`, `good first issue`, `agent-ready`, `needs-human`. Attiva di default; `false` crea il repo senza etichette.
	DefaultLabels *bool   `json:"defaultLabels,omitempty"`
	Description   *string `json:"description,omitempty"`

	// GitignoreTemplate Modello di `.gitignore` per il contenuto iniziale (R5).
	GitignoreTemplate *GitignoreTemplate `json:"gitignoreTemplate,omitempty"`

	// LicenseTemplate Modello di licenza per il contenuto iniziale (R5).
	LicenseTemplate *LicenseTemplate `json:"licenseTemplate,omitempty"`

	// Name Nome di un repo (R11): lettere maiuscole e minuscole, cifre, `-`, `_`, `.`; 1-100 caratteri; non inizia con `.`; non finisce con `.git` (regola applicata dal servizio, non esprimibile nel pattern). Le maiuscole sono conservate come scritte; l'unicita' per owner e il lookup non distinguono maiuscole e minuscole (`GitStack` e `gitstack` sono lo stesso repo).
	//
	//
	// Example: my-app
	Name RepoName `json:"name"`

	// Owner Nome breve in minuscolo (username, organizzazione, team, provider): lettere minuscole, cifre e trattini, 1-39 caratteri, inizia e finisce con un carattere alfanumerico.
	//
	//
	// Example: alice
	Owner Name `json:"owner"`

	// Readme Crea un `README.md` iniziale (R5).
	Readme *bool `json:"readme,omitempty"`

	// Visibility Visibilita' (P7): `private` (solo chi ha un grant) o `internal` (tutti gli utenti dell'installazione). Nessun accesso anonimo.
	Visibility *RepoVisibility `json:"visibility,omitempty"`
}

CreateRepositoryInput defines model for CreateRepositoryInput.

type CreateRepositoryJSONRequestBody

type CreateRepositoryJSONRequestBody = CreateRepositoryInput

CreateRepositoryJSONRequestBody defines body for CreateRepository for application/json ContentType.

type CreateRepositoryResponse

type CreateRepositoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Repository
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateRepositoryResponse201Headers
}

func ParseCreateRepositoryResponse

func ParseCreateRepositoryResponse(rsp *http.Response) (*CreateRepositoryResponse, error)

ParseCreateRepositoryResponse parses an HTTP response from a CreateRepositoryWithResponse call

func (CreateRepositoryResponse) ContentType

func (r CreateRepositoryResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateRepositoryResponse) GetBody

func (r CreateRepositoryResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateRepositoryResponse) GetJSON201

func (r CreateRepositoryResponse) GetJSON201() *Repository

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateRepositoryResponse) GetJSON400

func (r CreateRepositoryResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateRepositoryResponse) GetJSON401

func (r CreateRepositoryResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateRepositoryResponse) GetJSON403

func (r CreateRepositoryResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateRepositoryResponse) GetJSON404

func (r CreateRepositoryResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CreateRepositoryResponse) GetJSON409

func (r CreateRepositoryResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateRepositoryResponse) GetJSONDefault

func (r CreateRepositoryResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (CreateRepositoryResponse) Status

func (r CreateRepositoryResponse) Status() string

Status returns HTTPResponse.Status

func (CreateRepositoryResponse) StatusCode

func (r CreateRepositoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateRepositoryResponse201Headers

type CreateRepositoryResponse201Headers struct {
	Location *string
}

CreateRepositoryResponse201Headers the declared response headers of an HTTP 201 response for CreateRepository

type CreateResourceGrantJSONRequestBody

type CreateResourceGrantJSONRequestBody = CreateGrantInput

CreateResourceGrantJSONRequestBody defines body for CreateResourceGrant for application/json ContentType.

type CreateResourceGrantResponse

type CreateResourceGrantResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Grant
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseCreateResourceGrantResponse

func ParseCreateResourceGrantResponse(rsp *http.Response) (*CreateResourceGrantResponse, error)

ParseCreateResourceGrantResponse parses an HTTP response from a CreateResourceGrantWithResponse call

func (CreateResourceGrantResponse) ContentType

func (r CreateResourceGrantResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateResourceGrantResponse) GetBody

func (r CreateResourceGrantResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateResourceGrantResponse) GetJSON201

func (r CreateResourceGrantResponse) GetJSON201() *Grant

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateResourceGrantResponse) GetJSON400

func (r CreateResourceGrantResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateResourceGrantResponse) GetJSON401

func (r CreateResourceGrantResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateResourceGrantResponse) GetJSON403

func (r CreateResourceGrantResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateResourceGrantResponse) GetJSON404

func (r CreateResourceGrantResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CreateResourceGrantResponse) GetJSON409

func (r CreateResourceGrantResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateResourceGrantResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CreateResourceGrantResponse) GetJSONDefault

func (r CreateResourceGrantResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (CreateResourceGrantResponse) Status

Status returns HTTPResponse.Status

func (CreateResourceGrantResponse) StatusCode

func (r CreateResourceGrantResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateResourceInput

type CreateResourceInput struct {
	Attributes *map[string]interface{} `json:"attributes,omitempty"`
	Name       string                  `json:"name"`

	// Type Example: repo
	Type string `json:"type"`
}

CreateResourceInput defines model for CreateResourceInput.

type CreateResourceJSONRequestBody

type CreateResourceJSONRequestBody = CreateResourceInput

CreateResourceJSONRequestBody defines body for CreateResource for application/json ContentType.

type CreateResourceResponse

type CreateResourceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Resource
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateResourceResponse201Headers
}

func ParseCreateResourceResponse

func ParseCreateResourceResponse(rsp *http.Response) (*CreateResourceResponse, error)

ParseCreateResourceResponse parses an HTTP response from a CreateResourceWithResponse call

func (CreateResourceResponse) ContentType

func (r CreateResourceResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateResourceResponse) GetBody

func (r CreateResourceResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateResourceResponse) GetJSON201

func (r CreateResourceResponse) GetJSON201() *Resource

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateResourceResponse) GetJSON400

func (r CreateResourceResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateResourceResponse) GetJSON401

func (r CreateResourceResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateResourceResponse) GetJSON409

func (r CreateResourceResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateResourceResponse) GetJSONDefault

func (r CreateResourceResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (CreateResourceResponse) Status

func (r CreateResourceResponse) Status() string

Status returns HTTPResponse.Status

func (CreateResourceResponse) StatusCode

func (r CreateResourceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateResourceResponse201Headers

type CreateResourceResponse201Headers struct {
	Location *string
}

CreateResourceResponse201Headers the declared response headers of an HTTP 201 response for CreateResource

type CreateTeamInput

type CreateTeamInput struct {
	Description *string `json:"description,omitempty"`

	// Name Nome breve in minuscolo (username, organizzazione, team, provider): lettere minuscole, cifre e trattini, 1-39 caratteri, inizia e finisce con un carattere alfanumerico.
	//
	//
	// Example: alice
	Name Name `json:"name"`
}

CreateTeamInput defines model for CreateTeamInput.

type CreateTeamJSONRequestBody

type CreateTeamJSONRequestBody = CreateTeamInput

CreateTeamJSONRequestBody defines body for CreateTeam for application/json ContentType.

type CreateTeamResponse

type CreateTeamResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Team
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateTeamResponse201Headers
}

func ParseCreateTeamResponse

func ParseCreateTeamResponse(rsp *http.Response) (*CreateTeamResponse, error)

ParseCreateTeamResponse parses an HTTP response from a CreateTeamWithResponse call

func (CreateTeamResponse) ContentType

func (r CreateTeamResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateTeamResponse) GetBody

func (r CreateTeamResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateTeamResponse) GetJSON201

func (r CreateTeamResponse) GetJSON201() *Team

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateTeamResponse) GetJSON400

func (r CreateTeamResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateTeamResponse) GetJSON401

func (r CreateTeamResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateTeamResponse) GetJSON403

func (r CreateTeamResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateTeamResponse) GetJSON404

func (r CreateTeamResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CreateTeamResponse) GetJSON409

func (r CreateTeamResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateTeamResponse) GetJSON422

func (r CreateTeamResponse) GetJSON422() *UnprocessableEntity

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CreateTeamResponse) GetJSONDefault

func (r CreateTeamResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (CreateTeamResponse) Status

func (r CreateTeamResponse) Status() string

Status returns HTTPResponse.Status

func (CreateTeamResponse) StatusCode

func (r CreateTeamResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateTeamResponse201Headers

type CreateTeamResponse201Headers struct {
	Location *string
}

CreateTeamResponse201Headers the declared response headers of an HTTP 201 response for CreateTeam

type CreateTokenInput

type CreateTokenInput struct {
	// ExpiresAt Obbligatoria: la scadenza deve essere nel futuro e non oltre il massimo configurato dall'installazione (default 365 giorni), altrimenti 422.
	ExpiresAt *time.Time   `json:"expiresAt,omitempty"`
	Name      string       `json:"name"`
	Scopes    []TokenScope `json:"scopes"`
}

CreateTokenInput defines model for CreateTokenInput.

type CreateTokenJSONRequestBody

type CreateTokenJSONRequestBody = CreateTokenInput

CreateTokenJSONRequestBody defines body for CreateToken for application/json ContentType.

type CreateTokenResponse

type CreateTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *CreatedToken
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateTokenResponse201Headers
}

func ParseCreateTokenResponse

func ParseCreateTokenResponse(rsp *http.Response) (*CreateTokenResponse, error)

ParseCreateTokenResponse parses an HTTP response from a CreateTokenWithResponse call

func (CreateTokenResponse) ContentType

func (r CreateTokenResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateTokenResponse) GetBody

func (r CreateTokenResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateTokenResponse) GetJSON201

func (r CreateTokenResponse) GetJSON201() *CreatedToken

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateTokenResponse) GetJSON400

func (r CreateTokenResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateTokenResponse) GetJSON401

func (r CreateTokenResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateTokenResponse) GetJSON403

func (r CreateTokenResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateTokenResponse) GetJSON409

func (r CreateTokenResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateTokenResponse) GetJSON422

func (r CreateTokenResponse) GetJSON422() *UnprocessableEntity

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CreateTokenResponse) GetJSONDefault

func (r CreateTokenResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (CreateTokenResponse) Status

func (r CreateTokenResponse) Status() string

Status returns HTTPResponse.Status

func (CreateTokenResponse) StatusCode

func (r CreateTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateTokenResponse201Headers

type CreateTokenResponse201Headers struct {
	Location *string
}

CreateTokenResponse201Headers the declared response headers of an HTTP 201 response for CreateToken

type CreateUserInput

type CreateUserInput struct {
	DisplayName *string              `json:"displayName,omitempty"`
	Email       *openapi_types.Email `json:"email,omitempty"`
	IsAdmin     *bool                `json:"isAdmin,omitempty"`
	Kind        *CreateUserInputKind `json:"kind,omitempty"`

	// Password Assente per gli agenti (accedono solo con token) e per chi entra solo via OIDC.
	Password *string `json:"password,omitempty"`

	// Username Nome breve in minuscolo (username, organizzazione, team, provider): lettere minuscole, cifre e trattini, 1-39 caratteri, inizia e finisce con un carattere alfanumerico.
	//
	//
	// Example: alice
	Username Name `json:"username"`
}

CreateUserInput defines model for CreateUserInput.

type CreateUserInputKind

type CreateUserInputKind string

CreateUserInputKind defines model for CreateUserInput.Kind.

const (
	CreateUserInputKindAgent CreateUserInputKind = "agent"
	CreateUserInputKindHuman CreateUserInputKind = "human"
)

Defines values for CreateUserInputKind.

func (CreateUserInputKind) Valid

func (e CreateUserInputKind) Valid() bool

Valid indicates whether the value is a known member of the CreateUserInputKind enum.

type CreateUserJSONRequestBody

type CreateUserJSONRequestBody = CreateUserInput

CreateUserJSONRequestBody defines body for CreateUser for application/json ContentType.

type CreateUserResponse

type CreateUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *User
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateUserResponse201Headers
}

func ParseCreateUserResponse

func ParseCreateUserResponse(rsp *http.Response) (*CreateUserResponse, error)

ParseCreateUserResponse parses an HTTP response from a CreateUserWithResponse call

func (CreateUserResponse) ContentType

func (r CreateUserResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateUserResponse) GetBody

func (r CreateUserResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateUserResponse) GetJSON201

func (r CreateUserResponse) GetJSON201() *User

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateUserResponse) GetJSON400

func (r CreateUserResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateUserResponse) GetJSON401

func (r CreateUserResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateUserResponse) GetJSON403

func (r CreateUserResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateUserResponse) GetJSON409

func (r CreateUserResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateUserResponse) GetJSON422

func (r CreateUserResponse) GetJSON422() *UnprocessableEntity

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CreateUserResponse) GetJSONDefault

func (r CreateUserResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (CreateUserResponse) Status

func (r CreateUserResponse) Status() string

Status returns HTTPResponse.Status

func (CreateUserResponse) StatusCode

func (r CreateUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateUserResponse201Headers

type CreateUserResponse201Headers struct {
	Location *string
}

CreateUserResponse201Headers the declared response headers of an HTTP 201 response for CreateUser

type CreateUserTokenJSONRequestBody

type CreateUserTokenJSONRequestBody = CreateTokenInput

CreateUserTokenJSONRequestBody defines body for CreateUserToken for application/json ContentType.

type CreateUserTokenResponse

type CreateUserTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *CreatedToken
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateUserTokenResponse201Headers
}

func ParseCreateUserTokenResponse

func ParseCreateUserTokenResponse(rsp *http.Response) (*CreateUserTokenResponse, error)

ParseCreateUserTokenResponse parses an HTTP response from a CreateUserTokenWithResponse call

func (CreateUserTokenResponse) ContentType

func (r CreateUserTokenResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateUserTokenResponse) GetBody

func (r CreateUserTokenResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateUserTokenResponse) GetJSON201

func (r CreateUserTokenResponse) GetJSON201() *CreatedToken

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateUserTokenResponse) GetJSON400

func (r CreateUserTokenResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateUserTokenResponse) GetJSON401

func (r CreateUserTokenResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateUserTokenResponse) GetJSON403

func (r CreateUserTokenResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateUserTokenResponse) GetJSON404

func (r CreateUserTokenResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CreateUserTokenResponse) GetJSON409

func (r CreateUserTokenResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (CreateUserTokenResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (CreateUserTokenResponse) GetJSONDefault

func (r CreateUserTokenResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (CreateUserTokenResponse) Status

func (r CreateUserTokenResponse) Status() string

Status returns HTTPResponse.Status

func (CreateUserTokenResponse) StatusCode

func (r CreateUserTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateUserTokenResponse201Headers

type CreateUserTokenResponse201Headers struct {
	Location *string
}

CreateUserTokenResponse201Headers the declared response headers of an HTTP 201 response for CreateUserToken

type CreateWebhookInput

type CreateWebhookInput struct {
	Active *bool          `json:"active,omitempty"`
	Events []WebhookEvent `json:"events"`

	// Secret Segreto per l'HMAC-SHA256 di `X-GitStack-Signature`. Facoltativo; scritto una volta, mai restituito.
	Secret *string `json:"secret,omitempty"`
	Url    string  `json:"url"`
}

CreateWebhookInput defines model for CreateWebhookInput.

type CreatedToken

type CreatedToken struct {
	CreatedAt time.Time  `json:"createdAt"`
	ExpiresAt *time.Time `json:"expiresAt,omitempty"`

	// Hint Ultimi 4 caratteri del token, per riconoscerlo.
	Hint       string              `json:"hint"`
	Id         *openapi_types.UUID `json:"id,omitempty"`
	LastUsedAt *time.Time          `json:"lastUsedAt,omitempty"`
	Name       string              `json:"name"`
	Scopes     []TokenScope        `json:"scopes"`

	// Token Valore in chiaro, formato `gst_<casuale>`. Non viene salvato.
	Token string `json:"token"`
}

CreatedToken Il token appena creato; `token` compare solo in questa risposta.

type CurrentSession

type CurrentSession struct {
	// AuthMethod Come e' stato autenticato il chiamante.
	AuthMethod CurrentSessionAuthMethod `json:"authMethod"`
	ExpiresAt  *time.Time               `json:"expiresAt,omitempty"`

	// MustChangePassword Vero per l'amministratore creato al primo avvio finche' non cambia la password iniziale. Finche' e' vero ogni chiamata autenticata risponde 403 `password_change_required`, tranne `GET /auth/session`, `POST /auth/logout` e `PUT /users/{username}/password` (solo sulla propria utenza).
	MustChangePassword bool `json:"mustChangePassword"`

	// Scopes Solo per `authMethod` = `token`.
	Scopes *[]TokenScope `json:"scopes,omitempty"`

	// User Profilo utente. `email`, `isAdmin`, `isActive`, `createdAt` sono presenti solo per l'utente stesso e per gli amministratori.
	User User `json:"user"`
}

CurrentSession defines model for CurrentSession.

type CurrentSessionAuthMethod

type CurrentSessionAuthMethod string

CurrentSessionAuthMethod Come e' stato autenticato il chiamante.

const (
	CurrentSessionAuthMethodOidc     CurrentSessionAuthMethod = "oidc"
	CurrentSessionAuthMethodPassword CurrentSessionAuthMethod = "password"
	CurrentSessionAuthMethodToken    CurrentSessionAuthMethod = "token"
)

Defines values for CurrentSessionAuthMethod.

func (CurrentSessionAuthMethod) Valid

func (e CurrentSessionAuthMethod) Valid() bool

Valid indicates whether the value is a known member of the CurrentSessionAuthMethod enum.

type DeleteIssueCommentResponse

type DeleteIssueCommentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseDeleteIssueCommentResponse

func ParseDeleteIssueCommentResponse(rsp *http.Response) (*DeleteIssueCommentResponse, error)

ParseDeleteIssueCommentResponse parses an HTTP response from a DeleteIssueCommentWithResponse call

func (DeleteIssueCommentResponse) ContentType

func (r DeleteIssueCommentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteIssueCommentResponse) GetBody

func (r DeleteIssueCommentResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteIssueCommentResponse) GetJSON400

func (r DeleteIssueCommentResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (DeleteIssueCommentResponse) GetJSON401

func (r DeleteIssueCommentResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteIssueCommentResponse) GetJSON403

func (r DeleteIssueCommentResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteIssueCommentResponse) GetJSON404

func (r DeleteIssueCommentResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteIssueCommentResponse) GetJSON409

func (r DeleteIssueCommentResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (DeleteIssueCommentResponse) GetJSONDefault

func (r DeleteIssueCommentResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (DeleteIssueCommentResponse) Status

Status returns HTTPResponse.Status

func (DeleteIssueCommentResponse) StatusCode

func (r DeleteIssueCommentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteLabelResponse

type DeleteLabelResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseDeleteLabelResponse

func ParseDeleteLabelResponse(rsp *http.Response) (*DeleteLabelResponse, error)

ParseDeleteLabelResponse parses an HTTP response from a DeleteLabelWithResponse call

func (DeleteLabelResponse) ContentType

func (r DeleteLabelResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteLabelResponse) GetBody

func (r DeleteLabelResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteLabelResponse) GetJSON400

func (r DeleteLabelResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (DeleteLabelResponse) GetJSON401

func (r DeleteLabelResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteLabelResponse) GetJSON403

func (r DeleteLabelResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteLabelResponse) GetJSON404

func (r DeleteLabelResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteLabelResponse) GetJSON409

func (r DeleteLabelResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (DeleteLabelResponse) GetJSONDefault

func (r DeleteLabelResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (DeleteLabelResponse) Status

func (r DeleteLabelResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteLabelResponse) StatusCode

func (r DeleteLabelResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteMilestoneResponse

type DeleteMilestoneResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseDeleteMilestoneResponse

func ParseDeleteMilestoneResponse(rsp *http.Response) (*DeleteMilestoneResponse, error)

ParseDeleteMilestoneResponse parses an HTTP response from a DeleteMilestoneWithResponse call

func (DeleteMilestoneResponse) ContentType

func (r DeleteMilestoneResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteMilestoneResponse) GetBody

func (r DeleteMilestoneResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteMilestoneResponse) GetJSON400

func (r DeleteMilestoneResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (DeleteMilestoneResponse) GetJSON401

func (r DeleteMilestoneResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteMilestoneResponse) GetJSON403

func (r DeleteMilestoneResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteMilestoneResponse) GetJSON404

func (r DeleteMilestoneResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteMilestoneResponse) GetJSON409

func (r DeleteMilestoneResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (DeleteMilestoneResponse) GetJSONDefault

func (r DeleteMilestoneResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (DeleteMilestoneResponse) Status

func (r DeleteMilestoneResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteMilestoneResponse) StatusCode

func (r DeleteMilestoneResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteNotificationResponse

type DeleteNotificationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseDeleteNotificationResponse

func ParseDeleteNotificationResponse(rsp *http.Response) (*DeleteNotificationResponse, error)

ParseDeleteNotificationResponse parses an HTTP response from a DeleteNotificationWithResponse call

func (DeleteNotificationResponse) ContentType

func (r DeleteNotificationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteNotificationResponse) GetBody

func (r DeleteNotificationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteNotificationResponse) GetJSON401

func (r DeleteNotificationResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteNotificationResponse) GetJSON403

func (r DeleteNotificationResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteNotificationResponse) GetJSON404

func (r DeleteNotificationResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteNotificationResponse) GetJSONDefault

func (r DeleteNotificationResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (DeleteNotificationResponse) Status

Status returns HTTPResponse.Status

func (DeleteNotificationResponse) StatusCode

func (r DeleteNotificationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteNotificationsParams

type DeleteNotificationsParams struct {
	State DeleteNotificationsParamsState `form:"state" json:"state"`

	// Reason Uno o piu' motivi (`NotificationReason`) separati da virgola, es. `assigned,mentioned`. Un motivo sconosciuto: 400.
	Reason *NotificationReasonFilter `form:"reason,omitempty" json:"reason,omitempty"`

	// Repo Solo le notifiche di un repo, `owner/repo`.
	Repo *NotificationRepoFilter `form:"repo,omitempty" json:"repo,omitempty"`
}

DeleteNotificationsParams defines parameters for DeleteNotifications.

type DeleteNotificationsParamsState

type DeleteNotificationsParamsState string

DeleteNotificationsParamsState defines parameters for DeleteNotifications.

const (
	DeleteNotificationsParamsStateArchived DeleteNotificationsParamsState = "archived"
	DeleteNotificationsParamsStateRead     DeleteNotificationsParamsState = "read"
)

Defines values for DeleteNotificationsParamsState.

func (DeleteNotificationsParamsState) Valid

Valid indicates whether the value is a known member of the DeleteNotificationsParamsState enum.

type DeleteNotificationsResponse

type DeleteNotificationsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *DeletedNotifications
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseDeleteNotificationsResponse

func ParseDeleteNotificationsResponse(rsp *http.Response) (*DeleteNotificationsResponse, error)

ParseDeleteNotificationsResponse parses an HTTP response from a DeleteNotificationsWithResponse call

func (DeleteNotificationsResponse) ContentType

func (r DeleteNotificationsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteNotificationsResponse) GetBody

func (r DeleteNotificationsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteNotificationsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DeleteNotificationsResponse) GetJSON400

func (r DeleteNotificationsResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (DeleteNotificationsResponse) GetJSON401

func (r DeleteNotificationsResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteNotificationsResponse) GetJSON403

func (r DeleteNotificationsResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteNotificationsResponse) GetJSONDefault

func (r DeleteNotificationsResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (DeleteNotificationsResponse) Status

Status returns HTTPResponse.Status

func (DeleteNotificationsResponse) StatusCode

func (r DeleteNotificationsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteOrgWebhookResponse

type DeleteOrgWebhookResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseDeleteOrgWebhookResponse

func ParseDeleteOrgWebhookResponse(rsp *http.Response) (*DeleteOrgWebhookResponse, error)

ParseDeleteOrgWebhookResponse parses an HTTP response from a DeleteOrgWebhookWithResponse call

func (DeleteOrgWebhookResponse) ContentType

func (r DeleteOrgWebhookResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteOrgWebhookResponse) GetBody

func (r DeleteOrgWebhookResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteOrgWebhookResponse) GetJSON401

func (r DeleteOrgWebhookResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteOrgWebhookResponse) GetJSON403

func (r DeleteOrgWebhookResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteOrgWebhookResponse) GetJSON404

func (r DeleteOrgWebhookResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteOrgWebhookResponse) GetJSONDefault

func (r DeleteOrgWebhookResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (DeleteOrgWebhookResponse) Status

func (r DeleteOrgWebhookResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteOrgWebhookResponse) StatusCode

func (r DeleteOrgWebhookResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteOrganizationResponse

type DeleteOrganizationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseDeleteOrganizationResponse

func ParseDeleteOrganizationResponse(rsp *http.Response) (*DeleteOrganizationResponse, error)

ParseDeleteOrganizationResponse parses an HTTP response from a DeleteOrganizationWithResponse call

func (DeleteOrganizationResponse) ContentType

func (r DeleteOrganizationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteOrganizationResponse) GetBody

func (r DeleteOrganizationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteOrganizationResponse) GetJSON401

func (r DeleteOrganizationResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteOrganizationResponse) GetJSON403

func (r DeleteOrganizationResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteOrganizationResponse) GetJSON404

func (r DeleteOrganizationResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteOrganizationResponse) GetJSONDefault

func (r DeleteOrganizationResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (DeleteOrganizationResponse) Status

Status returns HTTPResponse.Status

func (DeleteOrganizationResponse) StatusCode

func (r DeleteOrganizationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteRepoMirrorResponse

type DeleteRepoMirrorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseDeleteRepoMirrorResponse

func ParseDeleteRepoMirrorResponse(rsp *http.Response) (*DeleteRepoMirrorResponse, error)

ParseDeleteRepoMirrorResponse parses an HTTP response from a DeleteRepoMirrorWithResponse call

func (DeleteRepoMirrorResponse) ContentType

func (r DeleteRepoMirrorResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteRepoMirrorResponse) GetBody

func (r DeleteRepoMirrorResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteRepoMirrorResponse) GetJSON401

func (r DeleteRepoMirrorResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteRepoMirrorResponse) GetJSON403

func (r DeleteRepoMirrorResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteRepoMirrorResponse) GetJSON404

func (r DeleteRepoMirrorResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteRepoMirrorResponse) GetJSON409

func (r DeleteRepoMirrorResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (DeleteRepoMirrorResponse) GetJSONDefault

func (r DeleteRepoMirrorResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (DeleteRepoMirrorResponse) Status

func (r DeleteRepoMirrorResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteRepoMirrorResponse) StatusCode

func (r DeleteRepoMirrorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteRepoWebhookResponse

type DeleteRepoWebhookResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseDeleteRepoWebhookResponse

func ParseDeleteRepoWebhookResponse(rsp *http.Response) (*DeleteRepoWebhookResponse, error)

ParseDeleteRepoWebhookResponse parses an HTTP response from a DeleteRepoWebhookWithResponse call

func (DeleteRepoWebhookResponse) ContentType

func (r DeleteRepoWebhookResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteRepoWebhookResponse) GetBody

func (r DeleteRepoWebhookResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteRepoWebhookResponse) GetJSON401

func (r DeleteRepoWebhookResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteRepoWebhookResponse) GetJSON403

func (r DeleteRepoWebhookResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteRepoWebhookResponse) GetJSON404

func (r DeleteRepoWebhookResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteRepoWebhookResponse) GetJSONDefault

func (r DeleteRepoWebhookResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (DeleteRepoWebhookResponse) Status

func (r DeleteRepoWebhookResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteRepoWebhookResponse) StatusCode

func (r DeleteRepoWebhookResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteRepositoryResponse

type DeleteRepositoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseDeleteRepositoryResponse

func ParseDeleteRepositoryResponse(rsp *http.Response) (*DeleteRepositoryResponse, error)

ParseDeleteRepositoryResponse parses an HTTP response from a DeleteRepositoryWithResponse call

func (DeleteRepositoryResponse) ContentType

func (r DeleteRepositoryResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteRepositoryResponse) GetBody

func (r DeleteRepositoryResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteRepositoryResponse) GetJSON400

func (r DeleteRepositoryResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (DeleteRepositoryResponse) GetJSON401

func (r DeleteRepositoryResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteRepositoryResponse) GetJSON403

func (r DeleteRepositoryResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteRepositoryResponse) GetJSON404

func (r DeleteRepositoryResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteRepositoryResponse) GetJSON409

func (r DeleteRepositoryResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (DeleteRepositoryResponse) GetJSONDefault

func (r DeleteRepositoryResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (DeleteRepositoryResponse) Status

func (r DeleteRepositoryResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteRepositoryResponse) StatusCode

func (r DeleteRepositoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteResourceGrantResponse

type DeleteResourceGrantResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseDeleteResourceGrantResponse

func ParseDeleteResourceGrantResponse(rsp *http.Response) (*DeleteResourceGrantResponse, error)

ParseDeleteResourceGrantResponse parses an HTTP response from a DeleteResourceGrantWithResponse call

func (DeleteResourceGrantResponse) ContentType

func (r DeleteResourceGrantResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteResourceGrantResponse) GetBody

func (r DeleteResourceGrantResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteResourceGrantResponse) GetJSON401

func (r DeleteResourceGrantResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteResourceGrantResponse) GetJSON403

func (r DeleteResourceGrantResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteResourceGrantResponse) GetJSON404

func (r DeleteResourceGrantResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteResourceGrantResponse) GetJSONDefault

func (r DeleteResourceGrantResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (DeleteResourceGrantResponse) Status

Status returns HTTPResponse.Status

func (DeleteResourceGrantResponse) StatusCode

func (r DeleteResourceGrantResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteResourceResponse

type DeleteResourceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseDeleteResourceResponse

func ParseDeleteResourceResponse(rsp *http.Response) (*DeleteResourceResponse, error)

ParseDeleteResourceResponse parses an HTTP response from a DeleteResourceWithResponse call

func (DeleteResourceResponse) ContentType

func (r DeleteResourceResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteResourceResponse) GetBody

func (r DeleteResourceResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteResourceResponse) GetJSON401

func (r DeleteResourceResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteResourceResponse) GetJSON403

func (r DeleteResourceResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteResourceResponse) GetJSON404

func (r DeleteResourceResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteResourceResponse) GetJSONDefault

func (r DeleteResourceResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (DeleteResourceResponse) Status

func (r DeleteResourceResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteResourceResponse) StatusCode

func (r DeleteResourceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteSshKeyResponse

type DeleteSshKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseDeleteSshKeyResponse

func ParseDeleteSshKeyResponse(rsp *http.Response) (*DeleteSshKeyResponse, error)

ParseDeleteSshKeyResponse parses an HTTP response from a DeleteSshKeyWithResponse call

func (DeleteSshKeyResponse) ContentType

func (r DeleteSshKeyResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteSshKeyResponse) GetBody

func (r DeleteSshKeyResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteSshKeyResponse) GetJSON401

func (r DeleteSshKeyResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteSshKeyResponse) GetJSON403

func (r DeleteSshKeyResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteSshKeyResponse) GetJSON404

func (r DeleteSshKeyResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteSshKeyResponse) GetJSONDefault

func (r DeleteSshKeyResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (DeleteSshKeyResponse) Status

func (r DeleteSshKeyResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteSshKeyResponse) StatusCode

func (r DeleteSshKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteTeamResponse

type DeleteTeamResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseDeleteTeamResponse

func ParseDeleteTeamResponse(rsp *http.Response) (*DeleteTeamResponse, error)

ParseDeleteTeamResponse parses an HTTP response from a DeleteTeamWithResponse call

func (DeleteTeamResponse) ContentType

func (r DeleteTeamResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteTeamResponse) GetBody

func (r DeleteTeamResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteTeamResponse) GetJSON401

func (r DeleteTeamResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteTeamResponse) GetJSON403

func (r DeleteTeamResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteTeamResponse) GetJSON404

func (r DeleteTeamResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteTeamResponse) GetJSONDefault

func (r DeleteTeamResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (DeleteTeamResponse) Status

func (r DeleteTeamResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteTeamResponse) StatusCode

func (r DeleteTeamResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteUserResponse

type DeleteUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseDeleteUserResponse

func ParseDeleteUserResponse(rsp *http.Response) (*DeleteUserResponse, error)

ParseDeleteUserResponse parses an HTTP response from a DeleteUserWithResponse call

func (DeleteUserResponse) ContentType

func (r DeleteUserResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteUserResponse) GetBody

func (r DeleteUserResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteUserResponse) GetJSON401

func (r DeleteUserResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteUserResponse) GetJSON403

func (r DeleteUserResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteUserResponse) GetJSON404

func (r DeleteUserResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteUserResponse) GetJSON409

func (r DeleteUserResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (DeleteUserResponse) GetJSONDefault

func (r DeleteUserResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (DeleteUserResponse) Status

func (r DeleteUserResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteUserResponse) StatusCode

func (r DeleteUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeletedNotifications

type DeletedNotifications struct {
	Deleted int `json:"deleted"`
}

DeletedNotifications defines model for DeletedNotifications.

type DeletedRepository

type DeletedRepository struct {
	DeletedAt time.Time          `json:"deletedAt"`
	Id        openapi_types.UUID `json:"id"`

	// Name Nome di un repo (R11): lettere maiuscole e minuscole, cifre, `-`, `_`, `.`; 1-100 caratteri; non inizia con `.`; non finisce con `.git` (regola applicata dal servizio, non esprimibile nel pattern). Le maiuscole sono conservate come scritte; l'unicita' per owner e il lookup non distinguono maiuscole e minuscole (`GitStack` e `gitstack` sono lo stesso repo).
	//
	//
	// Example: my-app
	Name  RepoName  `json:"name"`
	Owner RepoOwner `json:"owner"`

	// PurgeAt Dopo questo istante il repo e' cancellato definitivamente (7 giorni, R2).
	PurgeAt time.Time `json:"purgeAt"`
}

DeletedRepository defines model for DeletedRepository.

type DeletedRepositoryList

type DeletedRepositoryList struct {
	Items []DeletedRepository `json:"items"`
}

DeletedRepositoryList defines model for DeletedRepositoryList.

type DiffFilePathParam

type DiffFilePathParam = string

DiffFilePathParam defines model for DiffFilePathParam.

type EffectivePermission

type EffectivePermission struct {
	ResourceId openapi_types.UUID `json:"resourceId"`

	// Role Ruolo effettivo; `null` = nessun accesso.
	Role *ResourceRole `json:"role"`
}

EffectivePermission defines model for EffectivePermission.

type Error

type Error struct {
	Error struct {
		// Code Codice stabile leggibile da macchina (es. `not_found`).
		//
		// Example: not_found
		Code string `json:"code"`

		// Details Dettagli opzionali specifici dell'errore.
		Details *map[string]interface{} `json:"details,omitempty"`

		// Message Messaggio leggibile da persone, non contrattuale.
		Message string `json:"message"`
	} `json:"error"`
}

Error Formato unico degli errori per tutta l'API pubblica. Codici comuni per stato: 400 `bad_request`; 401 `unauthenticated`, `invalid_credentials`; 403 `forbidden`, `insufficient_scope`, `password_change_required`; 429 `too_many_attempts`; 404 `not_found`; 409 `conflict` e varianti specifiche (`already_exists`, `last_admin`, `last_owner`, `ssh_key_in_use`, `oidc_identity_unlinked`); 422 `validation_failed` (`details.fields`). Le risposte 401 non distinguono mai "utente inesistente" da "password errata".

type FileContent

type FileContent struct {
	// Binary True per tutto cio' che non e' testo (anche le immagini, SVG compreso).
	Binary bool `json:"binary"`

	// Content Testo UTF-8 (`display` `highlight` o `plain`) o immagine in base64 (`display` `image`); assente con `display` `download`.
	Content *string `json:"content,omitempty"`

	// Display Regola B1, sempre presente. `highlight`: testo fino a 1 MB (1 048 576 byte, `fileHighlightMaxBytes`), `content` intero, da evidenziare. `plain`: testo da 1 MB a 5 MB (5 242 880 byte, `filePlainMaxBytes`), `content` intero, senza evidenziazione. `image`: immagine fino a 1 MB (`imageInlineMaxBytes`), `content` in base64. `download`: nessun `content` (testo oltre 5 MB, immagine oltre 1 MB, altri binari): si scarica con `raw`.
	Display FileContentDisplay `json:"display"`

	// Encoding Codifica di `content`; assente se `content` manca. `base64` solo per le immagini.
	Encoding *FileContentEncoding `json:"encoding,omitempty"`

	// Kind `text`; `image` per PNG, JPEG, GIF, WebP e SVG (riconosciuti dal contenuto, non dall'estensione; SVG solo come immagine, mai come pagina); `binary` per ogni altro file non di testo.
	Kind       FileContentKind `json:"kind"`
	LastCommit CommitSummary   `json:"lastCommit"`

	// MimeType Solo per `kind` `image`, es. `image/png`, `image/svg+xml`.
	MimeType *string `json:"mimeType,omitempty"`
	Name     string  `json:"name"`
	Path     string  `json:"path"`
	Ref      string  `json:"ref"`

	// Sha Sha del blob.
	Sha string `json:"sha"`

	// Size Dimensione reale in byte, sempre, anche se `content` manca.
	Size int64 `json:"size"`

	// Truncated True se `content` non porta tutto il file per il limite di dimensione: un testo oltre 5 MB (`display` `download`, nessun contenuto). Mai true per binari e immagini, che per natura non hanno `content` testuale; mai true per `highlight`, `plain` e `image`, il cui `content` e' sempre intero.
	Truncated bool `json:"truncated"`
}

FileContent defines model for FileContent.

type FileContentDisplay

type FileContentDisplay string

FileContentDisplay Regola B1, sempre presente. `highlight`: testo fino a 1 MB (1 048 576 byte, `fileHighlightMaxBytes`), `content` intero, da evidenziare. `plain`: testo da 1 MB a 5 MB (5 242 880 byte, `filePlainMaxBytes`), `content` intero, senza evidenziazione. `image`: immagine fino a 1 MB (`imageInlineMaxBytes`), `content` in base64. `download`: nessun `content` (testo oltre 5 MB, immagine oltre 1 MB, altri binari): si scarica con `raw`.

const (
	FileContentDisplayDownload  FileContentDisplay = "download"
	FileContentDisplayHighlight FileContentDisplay = "highlight"
	FileContentDisplayImage     FileContentDisplay = "image"
	FileContentDisplayPlain     FileContentDisplay = "plain"
)

Defines values for FileContentDisplay.

func (FileContentDisplay) Valid

func (e FileContentDisplay) Valid() bool

Valid indicates whether the value is a known member of the FileContentDisplay enum.

type FileContentEncoding

type FileContentEncoding string

FileContentEncoding Codifica di `content`; assente se `content` manca. `base64` solo per le immagini.

const (
	Base64 FileContentEncoding = "base64"
	Utf8   FileContentEncoding = "utf-8"
)

Defines values for FileContentEncoding.

func (FileContentEncoding) Valid

func (e FileContentEncoding) Valid() bool

Valid indicates whether the value is a known member of the FileContentEncoding enum.

type FileContentKind

type FileContentKind string

FileContentKind `text`; `image` per PNG, JPEG, GIF, WebP e SVG (riconosciuti dal contenuto, non dall'estensione; SVG solo come immagine, mai come pagina); `binary` per ogni altro file non di testo.

const (
	FileContentKindBinary FileContentKind = "binary"
	FileContentKindImage  FileContentKind = "image"
	FileContentKindText   FileContentKind = "text"
)

Defines values for FileContentKind.

func (FileContentKind) Valid

func (e FileContentKind) Valid() bool

Valid indicates whether the value is a known member of the FileContentKind enum.

type FileDiff

type FileDiff struct {
	Additions int  `json:"additions"`
	Binary    bool `json:"binary"`

	// CollapseReason Perche' e' chiuso: `large` (piu' di 500 righe cambiate, aggiunte piu' tolte), `lock` (file di lock: package-lock.json, pnpm-lock.yaml, yarn.lock, go.sum, Cargo.lock, ...) o `generated` (file generato o minificato: *.min.js, *.min.css, *.pb.go, ...). Elenco completo nel README del servizio git; lock e generated vincono su large.
	CollapseReason *FileDiffCollapseReason `json:"collapseReason,omitempty"`

	// Collapsed B6: il file e' «chiuso di default» nella UI. Il patch c'e' comunque, se non e' stato omesso per i limiti.
	Collapsed *bool `json:"collapsed,omitempty"`
	Deletions int   `json:"deletions"`

	// OldPath Percorso precedente, per rinomine e copie.
	OldPath *string `json:"oldPath,omitempty"`

	// Patch Diff unificato (hunk), assente per i binari.
	Patch  *string        `json:"patch,omitempty"`
	Path   string         `json:"path"`
	Status FileDiffStatus `json:"status"`

	// Truncated True se il patch supera 1 MB o il limite totale di 20 000 righe e' gia' esaurito; `patch` e' parziale o assente.
	Truncated bool `json:"truncated"`
}

FileDiff defines model for FileDiff.

type FileDiffCollapseReason

type FileDiffCollapseReason string

FileDiffCollapseReason Perche' e' chiuso: `large` (piu' di 500 righe cambiate, aggiunte piu' tolte), `lock` (file di lock: package-lock.json, pnpm-lock.yaml, yarn.lock, go.sum, Cargo.lock, ...) o `generated` (file generato o minificato: *.min.js, *.min.css, *.pb.go, ...). Elenco completo nel README del servizio git; lock e generated vincono su large.

const (
	Generated FileDiffCollapseReason = "generated"
	Large     FileDiffCollapseReason = "large"
	Lock      FileDiffCollapseReason = "lock"
)

Defines values for FileDiffCollapseReason.

func (FileDiffCollapseReason) Valid

func (e FileDiffCollapseReason) Valid() bool

Valid indicates whether the value is a known member of the FileDiffCollapseReason enum.

type FileDiffStatus

type FileDiffStatus string

FileDiffStatus defines model for FileDiff.Status.

const (
	FileDiffStatusAdded    FileDiffStatus = "added"
	FileDiffStatusCopied   FileDiffStatus = "copied"
	FileDiffStatusDeleted  FileDiffStatus = "deleted"
	FileDiffStatusModified FileDiffStatus = "modified"
	FileDiffStatusRenamed  FileDiffStatus = "renamed"
)

Defines values for FileDiffStatus.

func (FileDiffStatus) Valid

func (e FileDiffStatus) Valid() bool

Valid indicates whether the value is a known member of the FileDiffStatus enum.

type FileList

type FileList struct {
	CommitSha string `json:"commitSha"`

	// Paths Percorsi dei file (non delle cartelle), in ordine alfabetico, al massimo 50 000 (`fileListMaxPaths`).
	Paths []string `json:"paths"`

	// Ref Il `ref` risolto (il branch principale se non indicato).
	Ref string `json:"ref"`

	// Truncated True se il repo ha piu' di 50 000 file e questi sono i primi 50 000.
	Truncated bool `json:"truncated"`
}

FileList Percorsi di tutti i file del ref per "Go to file" (regola B5): la corrispondenza approssimata la fa il client sull'elenco.

type FilePathParam

type FilePathParam = string

FilePathParam defines model for FilePathParam.

type FinishOidcLoginParams

type FinishOidcLoginParams struct {
	Code  string `form:"code" json:"code"`
	State string `form:"state" json:"state"`
}

FinishOidcLoginParams defines parameters for FinishOidcLogin.

type FinishOidcLoginResponse

type FinishOidcLoginResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
	// Headers302 the parsed response headers for an HTTP 302 response
	Headers302 *FinishOidcLoginResponse302Headers
}

func ParseFinishOidcLoginResponse

func ParseFinishOidcLoginResponse(rsp *http.Response) (*FinishOidcLoginResponse, error)

ParseFinishOidcLoginResponse parses an HTTP response from a FinishOidcLoginWithResponse call

func (FinishOidcLoginResponse) ContentType

func (r FinishOidcLoginResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (FinishOidcLoginResponse) GetBody

func (r FinishOidcLoginResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (FinishOidcLoginResponse) GetJSON400

func (r FinishOidcLoginResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (FinishOidcLoginResponse) GetJSON401

func (r FinishOidcLoginResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (FinishOidcLoginResponse) GetJSON404

func (r FinishOidcLoginResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (FinishOidcLoginResponse) GetJSON409

func (r FinishOidcLoginResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (FinishOidcLoginResponse) GetJSONDefault

func (r FinishOidcLoginResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (FinishOidcLoginResponse) Status

func (r FinishOidcLoginResponse) Status() string

Status returns HTTPResponse.Status

func (FinishOidcLoginResponse) StatusCode

func (r FinishOidcLoginResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FinishOidcLoginResponse302Headers

type FinishOidcLoginResponse302Headers struct {
	Location  *string
	SetCookie *string
}

FinishOidcLoginResponse302Headers the declared response headers of an HTTP 302 response for FinishOidcLogin

type Forbidden

type Forbidden = Error

Forbidden Formato unico degli errori per tutta l'API pubblica. Codici comuni per stato: 400 `bad_request`; 401 `unauthenticated`, `invalid_credentials`; 403 `forbidden`, `insufficient_scope`, `password_change_required`; 429 `too_many_attempts`; 404 `not_found`; 409 `conflict` e varianti specifiche (`already_exists`, `last_admin`, `last_owner`, `ssh_key_in_use`, `oidc_identity_unlinked`); 422 `validation_failed` (`details.fields`). Le risposte 401 non distinguono mai "utente inesistente" da "password errata".

type GetCurrentSessionResponse

type GetCurrentSessionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CurrentSession
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetCurrentSessionResponse

func ParseGetCurrentSessionResponse(rsp *http.Response) (*GetCurrentSessionResponse, error)

ParseGetCurrentSessionResponse parses an HTTP response from a GetCurrentSessionWithResponse call

func (GetCurrentSessionResponse) ContentType

func (r GetCurrentSessionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetCurrentSessionResponse) GetBody

func (r GetCurrentSessionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetCurrentSessionResponse) GetJSON200

func (r GetCurrentSessionResponse) GetJSON200() *CurrentSession

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetCurrentSessionResponse) GetJSON401

func (r GetCurrentSessionResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetCurrentSessionResponse) GetJSONDefault

func (r GetCurrentSessionResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetCurrentSessionResponse) Status

func (r GetCurrentSessionResponse) Status() string

Status returns HTTPResponse.Status

func (GetCurrentSessionResponse) StatusCode

func (r GetCurrentSessionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetHealthResponse

type GetHealthResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Health
}

func ParseGetHealthResponse

func ParseGetHealthResponse(rsp *http.Response) (*GetHealthResponse, error)

ParseGetHealthResponse parses an HTTP response from a GetHealthWithResponse call

func (GetHealthResponse) ContentType

func (r GetHealthResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetHealthResponse) GetBody

func (r GetHealthResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetHealthResponse) GetJSON200

func (r GetHealthResponse) GetJSON200() *Health

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetHealthResponse) Status

func (r GetHealthResponse) Status() string

Status returns HTTPResponse.Status

func (GetHealthResponse) StatusCode

func (r GetHealthResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetIssueAttachmentResponse

type GetIssueAttachmentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetIssueAttachmentResponse200Headers
}

func ParseGetIssueAttachmentResponse

func ParseGetIssueAttachmentResponse(rsp *http.Response) (*GetIssueAttachmentResponse, error)

ParseGetIssueAttachmentResponse parses an HTTP response from a GetIssueAttachmentWithResponse call

func (GetIssueAttachmentResponse) ContentType

func (r GetIssueAttachmentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetIssueAttachmentResponse) GetBody

func (r GetIssueAttachmentResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetIssueAttachmentResponse) GetJSON400

func (r GetIssueAttachmentResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetIssueAttachmentResponse) GetJSON401

func (r GetIssueAttachmentResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetIssueAttachmentResponse) GetJSON403

func (r GetIssueAttachmentResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetIssueAttachmentResponse) GetJSON404

func (r GetIssueAttachmentResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetIssueAttachmentResponse) GetJSONDefault

func (r GetIssueAttachmentResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetIssueAttachmentResponse) Status

Status returns HTTPResponse.Status

func (GetIssueAttachmentResponse) StatusCode

func (r GetIssueAttachmentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetIssueAttachmentResponse200Headers

type GetIssueAttachmentResponse200Headers struct {
	ContentDisposition    *string
	ContentSecurityPolicy *string
	XContentTypeOptions   *string
}

GetIssueAttachmentResponse200Headers the declared response headers of an HTTP 200 response for GetIssueAttachment

type GetIssueResponse

type GetIssueResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Issue
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetIssueResponse

func ParseGetIssueResponse(rsp *http.Response) (*GetIssueResponse, error)

ParseGetIssueResponse parses an HTTP response from a GetIssueWithResponse call

func (GetIssueResponse) ContentType

func (r GetIssueResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetIssueResponse) GetBody

func (r GetIssueResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetIssueResponse) GetJSON200

func (r GetIssueResponse) GetJSON200() *Issue

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetIssueResponse) GetJSON400

func (r GetIssueResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetIssueResponse) GetJSON401

func (r GetIssueResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetIssueResponse) GetJSON403

func (r GetIssueResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetIssueResponse) GetJSON404

func (r GetIssueResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetIssueResponse) GetJSONDefault

func (r GetIssueResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetIssueResponse) Status

func (r GetIssueResponse) Status() string

Status returns HTTPResponse.Status

func (GetIssueResponse) StatusCode

func (r GetIssueResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetIssueSubscriptionResponse

type GetIssueSubscriptionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *IssueSubscription
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetIssueSubscriptionResponse

func ParseGetIssueSubscriptionResponse(rsp *http.Response) (*GetIssueSubscriptionResponse, error)

ParseGetIssueSubscriptionResponse parses an HTTP response from a GetIssueSubscriptionWithResponse call

func (GetIssueSubscriptionResponse) ContentType

func (r GetIssueSubscriptionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetIssueSubscriptionResponse) GetBody

func (r GetIssueSubscriptionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetIssueSubscriptionResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetIssueSubscriptionResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetIssueSubscriptionResponse) GetJSON403

func (r GetIssueSubscriptionResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetIssueSubscriptionResponse) GetJSON404

func (r GetIssueSubscriptionResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetIssueSubscriptionResponse) GetJSONDefault

func (r GetIssueSubscriptionResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetIssueSubscriptionResponse) Status

Status returns HTTPResponse.Status

func (GetIssueSubscriptionResponse) StatusCode

func (r GetIssueSubscriptionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetLabelResponse

type GetLabelResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Label
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetLabelResponse

func ParseGetLabelResponse(rsp *http.Response) (*GetLabelResponse, error)

ParseGetLabelResponse parses an HTTP response from a GetLabelWithResponse call

func (GetLabelResponse) ContentType

func (r GetLabelResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetLabelResponse) GetBody

func (r GetLabelResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetLabelResponse) GetJSON200

func (r GetLabelResponse) GetJSON200() *Label

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetLabelResponse) GetJSON400

func (r GetLabelResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetLabelResponse) GetJSON401

func (r GetLabelResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetLabelResponse) GetJSON403

func (r GetLabelResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetLabelResponse) GetJSON404

func (r GetLabelResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetLabelResponse) GetJSONDefault

func (r GetLabelResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetLabelResponse) Status

func (r GetLabelResponse) Status() string

Status returns HTTPResponse.Status

func (GetLabelResponse) StatusCode

func (r GetLabelResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMetaResponse

type GetMetaResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Meta
}

func ParseGetMetaResponse

func ParseGetMetaResponse(rsp *http.Response) (*GetMetaResponse, error)

ParseGetMetaResponse parses an HTTP response from a GetMetaWithResponse call

func (GetMetaResponse) ContentType

func (r GetMetaResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetMetaResponse) GetBody

func (r GetMetaResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetMetaResponse) GetJSON200

func (r GetMetaResponse) GetJSON200() *Meta

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetMetaResponse) Status

func (r GetMetaResponse) Status() string

Status returns HTTPResponse.Status

func (GetMetaResponse) StatusCode

func (r GetMetaResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMilestoneResponse

type GetMilestoneResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Milestone
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetMilestoneResponse

func ParseGetMilestoneResponse(rsp *http.Response) (*GetMilestoneResponse, error)

ParseGetMilestoneResponse parses an HTTP response from a GetMilestoneWithResponse call

func (GetMilestoneResponse) ContentType

func (r GetMilestoneResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetMilestoneResponse) GetBody

func (r GetMilestoneResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetMilestoneResponse) GetJSON200

func (r GetMilestoneResponse) GetJSON200() *Milestone

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetMilestoneResponse) GetJSON400

func (r GetMilestoneResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetMilestoneResponse) GetJSON401

func (r GetMilestoneResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetMilestoneResponse) GetJSON403

func (r GetMilestoneResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetMilestoneResponse) GetJSON404

func (r GetMilestoneResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetMilestoneResponse) GetJSONDefault

func (r GetMilestoneResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetMilestoneResponse) Status

func (r GetMilestoneResponse) Status() string

Status returns HTTPResponse.Status

func (GetMilestoneResponse) StatusCode

func (r GetMilestoneResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMyResourcePermissionResponse

type GetMyResourcePermissionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *EffectivePermission
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetMyResourcePermissionResponse

func ParseGetMyResourcePermissionResponse(rsp *http.Response) (*GetMyResourcePermissionResponse, error)

ParseGetMyResourcePermissionResponse parses an HTTP response from a GetMyResourcePermissionWithResponse call

func (GetMyResourcePermissionResponse) ContentType

func (r GetMyResourcePermissionResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetMyResourcePermissionResponse) GetBody

func (r GetMyResourcePermissionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetMyResourcePermissionResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetMyResourcePermissionResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetMyResourcePermissionResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetMyResourcePermissionResponse) GetJSONDefault

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetMyResourcePermissionResponse) Status

Status returns HTTPResponse.Status

func (GetMyResourcePermissionResponse) StatusCode

func (r GetMyResourcePermissionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetNotificationPreferencesResponse

type GetNotificationPreferencesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *NotificationPreferences
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetNotificationPreferencesResponse

func ParseGetNotificationPreferencesResponse(rsp *http.Response) (*GetNotificationPreferencesResponse, error)

ParseGetNotificationPreferencesResponse parses an HTTP response from a GetNotificationPreferencesWithResponse call

func (GetNotificationPreferencesResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetNotificationPreferencesResponse) GetBody

GetBody returns the raw response body bytes

func (GetNotificationPreferencesResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetNotificationPreferencesResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetNotificationPreferencesResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetNotificationPreferencesResponse) GetJSONDefault

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetNotificationPreferencesResponse) Status

Status returns HTTPResponse.Status

func (GetNotificationPreferencesResponse) StatusCode

func (r GetNotificationPreferencesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetNotificationResponse

type GetNotificationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Notification
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetNotificationResponse

func ParseGetNotificationResponse(rsp *http.Response) (*GetNotificationResponse, error)

ParseGetNotificationResponse parses an HTTP response from a GetNotificationWithResponse call

func (GetNotificationResponse) ContentType

func (r GetNotificationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetNotificationResponse) GetBody

func (r GetNotificationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetNotificationResponse) GetJSON200

func (r GetNotificationResponse) GetJSON200() *Notification

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetNotificationResponse) GetJSON401

func (r GetNotificationResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetNotificationResponse) GetJSON403

func (r GetNotificationResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetNotificationResponse) GetJSON404

func (r GetNotificationResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetNotificationResponse) GetJSONDefault

func (r GetNotificationResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetNotificationResponse) Status

func (r GetNotificationResponse) Status() string

Status returns HTTPResponse.Status

func (GetNotificationResponse) StatusCode

func (r GetNotificationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOrgWebhookDeliveryResponse

type GetOrgWebhookDeliveryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WebhookDeliveryDetail
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetOrgWebhookDeliveryResponse

func ParseGetOrgWebhookDeliveryResponse(rsp *http.Response) (*GetOrgWebhookDeliveryResponse, error)

ParseGetOrgWebhookDeliveryResponse parses an HTTP response from a GetOrgWebhookDeliveryWithResponse call

func (GetOrgWebhookDeliveryResponse) ContentType

func (r GetOrgWebhookDeliveryResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetOrgWebhookDeliveryResponse) GetBody

func (r GetOrgWebhookDeliveryResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetOrgWebhookDeliveryResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetOrgWebhookDeliveryResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetOrgWebhookDeliveryResponse) GetJSON403

func (r GetOrgWebhookDeliveryResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetOrgWebhookDeliveryResponse) GetJSON404

func (r GetOrgWebhookDeliveryResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetOrgWebhookDeliveryResponse) GetJSONDefault

func (r GetOrgWebhookDeliveryResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetOrgWebhookDeliveryResponse) Status

Status returns HTTPResponse.Status

func (GetOrgWebhookDeliveryResponse) StatusCode

func (r GetOrgWebhookDeliveryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOrgWebhookResponse

type GetOrgWebhookResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Webhook
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetOrgWebhookResponse

func ParseGetOrgWebhookResponse(rsp *http.Response) (*GetOrgWebhookResponse, error)

ParseGetOrgWebhookResponse parses an HTTP response from a GetOrgWebhookWithResponse call

func (GetOrgWebhookResponse) ContentType

func (r GetOrgWebhookResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetOrgWebhookResponse) GetBody

func (r GetOrgWebhookResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetOrgWebhookResponse) GetJSON200

func (r GetOrgWebhookResponse) GetJSON200() *Webhook

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetOrgWebhookResponse) GetJSON401

func (r GetOrgWebhookResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetOrgWebhookResponse) GetJSON403

func (r GetOrgWebhookResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetOrgWebhookResponse) GetJSON404

func (r GetOrgWebhookResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetOrgWebhookResponse) GetJSONDefault

func (r GetOrgWebhookResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetOrgWebhookResponse) Status

func (r GetOrgWebhookResponse) Status() string

Status returns HTTPResponse.Status

func (GetOrgWebhookResponse) StatusCode

func (r GetOrgWebhookResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOrganizationResponse

type GetOrganizationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Organization
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetOrganizationResponse

func ParseGetOrganizationResponse(rsp *http.Response) (*GetOrganizationResponse, error)

ParseGetOrganizationResponse parses an HTTP response from a GetOrganizationWithResponse call

func (GetOrganizationResponse) ContentType

func (r GetOrganizationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetOrganizationResponse) GetBody

func (r GetOrganizationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetOrganizationResponse) GetJSON200

func (r GetOrganizationResponse) GetJSON200() *Organization

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetOrganizationResponse) GetJSON401

func (r GetOrganizationResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetOrganizationResponse) GetJSON403

func (r GetOrganizationResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetOrganizationResponse) GetJSON404

func (r GetOrganizationResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetOrganizationResponse) GetJSONDefault

func (r GetOrganizationResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetOrganizationResponse) Status

func (r GetOrganizationResponse) Status() string

Status returns HTTPResponse.Status

func (GetOrganizationResponse) StatusCode

func (r GetOrganizationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRepoMirrorResponse

type GetRepoMirrorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *RepoMirror
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetRepoMirrorResponse

func ParseGetRepoMirrorResponse(rsp *http.Response) (*GetRepoMirrorResponse, error)

ParseGetRepoMirrorResponse parses an HTTP response from a GetRepoMirrorWithResponse call

func (GetRepoMirrorResponse) ContentType

func (r GetRepoMirrorResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetRepoMirrorResponse) GetBody

func (r GetRepoMirrorResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetRepoMirrorResponse) GetJSON200

func (r GetRepoMirrorResponse) GetJSON200() *RepoMirror

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetRepoMirrorResponse) GetJSON401

func (r GetRepoMirrorResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetRepoMirrorResponse) GetJSON403

func (r GetRepoMirrorResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetRepoMirrorResponse) GetJSON404

func (r GetRepoMirrorResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetRepoMirrorResponse) GetJSONDefault

func (r GetRepoMirrorResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetRepoMirrorResponse) Status

func (r GetRepoMirrorResponse) Status() string

Status returns HTTPResponse.Status

func (GetRepoMirrorResponse) StatusCode

func (r GetRepoMirrorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRepoWatchResponse

type GetRepoWatchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *RepoWatch
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetRepoWatchResponse

func ParseGetRepoWatchResponse(rsp *http.Response) (*GetRepoWatchResponse, error)

ParseGetRepoWatchResponse parses an HTTP response from a GetRepoWatchWithResponse call

func (GetRepoWatchResponse) ContentType

func (r GetRepoWatchResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetRepoWatchResponse) GetBody

func (r GetRepoWatchResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetRepoWatchResponse) GetJSON200

func (r GetRepoWatchResponse) GetJSON200() *RepoWatch

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetRepoWatchResponse) GetJSON401

func (r GetRepoWatchResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetRepoWatchResponse) GetJSON403

func (r GetRepoWatchResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetRepoWatchResponse) GetJSON404

func (r GetRepoWatchResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetRepoWatchResponse) GetJSONDefault

func (r GetRepoWatchResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetRepoWatchResponse) Status

func (r GetRepoWatchResponse) Status() string

Status returns HTTPResponse.Status

func (GetRepoWatchResponse) StatusCode

func (r GetRepoWatchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRepoWebhookDeliveryResponse

type GetRepoWebhookDeliveryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WebhookDeliveryDetail
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetRepoWebhookDeliveryResponse

func ParseGetRepoWebhookDeliveryResponse(rsp *http.Response) (*GetRepoWebhookDeliveryResponse, error)

ParseGetRepoWebhookDeliveryResponse parses an HTTP response from a GetRepoWebhookDeliveryWithResponse call

func (GetRepoWebhookDeliveryResponse) ContentType

func (r GetRepoWebhookDeliveryResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetRepoWebhookDeliveryResponse) GetBody

func (r GetRepoWebhookDeliveryResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetRepoWebhookDeliveryResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetRepoWebhookDeliveryResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetRepoWebhookDeliveryResponse) GetJSON403

func (r GetRepoWebhookDeliveryResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetRepoWebhookDeliveryResponse) GetJSON404

func (r GetRepoWebhookDeliveryResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetRepoWebhookDeliveryResponse) GetJSONDefault

func (r GetRepoWebhookDeliveryResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetRepoWebhookDeliveryResponse) Status

Status returns HTTPResponse.Status

func (GetRepoWebhookDeliveryResponse) StatusCode

func (r GetRepoWebhookDeliveryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRepoWebhookResponse

type GetRepoWebhookResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Webhook
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetRepoWebhookResponse

func ParseGetRepoWebhookResponse(rsp *http.Response) (*GetRepoWebhookResponse, error)

ParseGetRepoWebhookResponse parses an HTTP response from a GetRepoWebhookWithResponse call

func (GetRepoWebhookResponse) ContentType

func (r GetRepoWebhookResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetRepoWebhookResponse) GetBody

func (r GetRepoWebhookResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetRepoWebhookResponse) GetJSON200

func (r GetRepoWebhookResponse) GetJSON200() *Webhook

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetRepoWebhookResponse) GetJSON401

func (r GetRepoWebhookResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetRepoWebhookResponse) GetJSON403

func (r GetRepoWebhookResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetRepoWebhookResponse) GetJSON404

func (r GetRepoWebhookResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetRepoWebhookResponse) GetJSONDefault

func (r GetRepoWebhookResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetRepoWebhookResponse) Status

func (r GetRepoWebhookResponse) Status() string

Status returns HTTPResponse.Status

func (GetRepoWebhookResponse) StatusCode

func (r GetRepoWebhookResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRepositoryArchiveParams

type GetRepositoryArchiveParams struct {
	// Ref Branch, tag o sha (completo o prefisso di almeno 7 caratteri). Se manca vale il branch principale del repo (R4). Un nome non valido (vuoto, con `..`, spazi, caratteri di controllo o oltre 255 caratteri) risponde 400 `invalid_ref`; uno valido ma inesistente 404 `ref_not_found`. Se un nome e' sia branch sia tag vince il branch.
	Ref *RefParam `form:"ref,omitempty" json:"ref,omitempty"`

	// Format Formato dell'archivio (default `zip`).
	Format *GetRepositoryArchiveParamsFormat `form:"format,omitempty" json:"format,omitempty"`
}

GetRepositoryArchiveParams defines parameters for GetRepositoryArchive.

type GetRepositoryArchiveParamsFormat

type GetRepositoryArchiveParamsFormat string

GetRepositoryArchiveParamsFormat defines parameters for GetRepositoryArchive.

const (
	GetRepositoryArchiveParamsFormatTarGz GetRepositoryArchiveParamsFormat = "tar.gz"
	GetRepositoryArchiveParamsFormatZip   GetRepositoryArchiveParamsFormat = "zip"
)

Defines values for GetRepositoryArchiveParamsFormat.

func (GetRepositoryArchiveParamsFormat) Valid

Valid indicates whether the value is a known member of the GetRepositoryArchiveParamsFormat enum.

type GetRepositoryArchiveResponse

type GetRepositoryArchiveResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetRepositoryArchiveResponse200Headers
}

func ParseGetRepositoryArchiveResponse

func ParseGetRepositoryArchiveResponse(rsp *http.Response) (*GetRepositoryArchiveResponse, error)

ParseGetRepositoryArchiveResponse parses an HTTP response from a GetRepositoryArchiveWithResponse call

func (GetRepositoryArchiveResponse) ContentType

func (r GetRepositoryArchiveResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetRepositoryArchiveResponse) GetBody

func (r GetRepositoryArchiveResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetRepositoryArchiveResponse) GetJSON400

func (r GetRepositoryArchiveResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetRepositoryArchiveResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetRepositoryArchiveResponse) GetJSON403

func (r GetRepositoryArchiveResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetRepositoryArchiveResponse) GetJSON404

func (r GetRepositoryArchiveResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetRepositoryArchiveResponse) GetJSONDefault

func (r GetRepositoryArchiveResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetRepositoryArchiveResponse) Status

Status returns HTTPResponse.Status

func (GetRepositoryArchiveResponse) StatusCode

func (r GetRepositoryArchiveResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRepositoryArchiveResponse200Headers

type GetRepositoryArchiveResponse200Headers struct {
	ContentDisposition    *string
	ContentSecurityPolicy *string
	XContentTypeOptions   *string
}

GetRepositoryArchiveResponse200Headers the declared response headers of an HTTP 200 response for GetRepositoryArchive

type GetRepositoryBlameParams

type GetRepositoryBlameParams struct {
	// Ref Branch, tag o sha (completo o prefisso di almeno 7 caratteri). Se manca vale il branch principale del repo (R4). Un nome non valido (vuoto, con `..`, spazi, caratteri di controllo o oltre 255 caratteri) risponde 400 `invalid_ref`; uno valido ma inesistente 404 `ref_not_found`. Se un nome e' sia branch sia tag vince il branch.
	Ref *RefParam `form:"ref,omitempty" json:"ref,omitempty"`

	// Path Percorso del file (stesse regole di `PathParam`, non vuoto).
	Path FilePathParam `form:"path" json:"path"`
}

GetRepositoryBlameParams defines parameters for GetRepositoryBlame.

type GetRepositoryBlameResponse

type GetRepositoryBlameResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Blame
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetRepositoryBlameResponse

func ParseGetRepositoryBlameResponse(rsp *http.Response) (*GetRepositoryBlameResponse, error)

ParseGetRepositoryBlameResponse parses an HTTP response from a GetRepositoryBlameWithResponse call

func (GetRepositoryBlameResponse) ContentType

func (r GetRepositoryBlameResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetRepositoryBlameResponse) GetBody

func (r GetRepositoryBlameResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetRepositoryBlameResponse) GetJSON200

func (r GetRepositoryBlameResponse) GetJSON200() *Blame

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetRepositoryBlameResponse) GetJSON400

func (r GetRepositoryBlameResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetRepositoryBlameResponse) GetJSON401

func (r GetRepositoryBlameResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetRepositoryBlameResponse) GetJSON403

func (r GetRepositoryBlameResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetRepositoryBlameResponse) GetJSON404

func (r GetRepositoryBlameResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetRepositoryBlameResponse) GetJSONDefault

func (r GetRepositoryBlameResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetRepositoryBlameResponse) Status

Status returns HTTPResponse.Status

func (GetRepositoryBlameResponse) StatusCode

func (r GetRepositoryBlameResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRepositoryBranchesResponse

type GetRepositoryBranchesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *BranchList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetRepositoryBranchesResponse

func ParseGetRepositoryBranchesResponse(rsp *http.Response) (*GetRepositoryBranchesResponse, error)

ParseGetRepositoryBranchesResponse parses an HTTP response from a GetRepositoryBranchesWithResponse call

func (GetRepositoryBranchesResponse) ContentType

func (r GetRepositoryBranchesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetRepositoryBranchesResponse) GetBody

func (r GetRepositoryBranchesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetRepositoryBranchesResponse) GetJSON200

func (r GetRepositoryBranchesResponse) GetJSON200() *BranchList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetRepositoryBranchesResponse) GetJSON400

func (r GetRepositoryBranchesResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetRepositoryBranchesResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetRepositoryBranchesResponse) GetJSON403

func (r GetRepositoryBranchesResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetRepositoryBranchesResponse) GetJSON404

func (r GetRepositoryBranchesResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetRepositoryBranchesResponse) GetJSONDefault

func (r GetRepositoryBranchesResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetRepositoryBranchesResponse) Status

Status returns HTTPResponse.Status

func (GetRepositoryBranchesResponse) StatusCode

func (r GetRepositoryBranchesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRepositoryCommitParams

type GetRepositoryCommitParams struct {
	// Path Se presente, `files` porta solo questo file (core filtra la risposta del servizio git). Con `listOnly` il patch non c'e': per il diff intero si usa `getRepositoryCommitPatch`. 404 se il file non e' nel commit.
	Path *DiffFilePathParam `form:"path,omitempty" json:"path,omitempty"`

	// IgnoreWhitespace B6, «ignora spazi»: diff calcolato con `git diff -w`. Default false.
	IgnoreWhitespace *IgnoreWhitespaceParam `form:"ignoreWhitespace,omitempty" json:"ignoreWhitespace,omitempty"`
}

GetRepositoryCommitParams defines parameters for GetRepositoryCommit.

type GetRepositoryCommitPatchParams

type GetRepositoryCommitPatchParams struct {
	// Format `patch` (default): formato mbox di `git format-patch` con autore, data e messaggio, scaricato come `.patch`; `diff`: solo il diff unificato, scaricato come `.diff`.
	Format *GetRepositoryCommitPatchParamsFormat `form:"format,omitempty" json:"format,omitempty"`

	// IgnoreWhitespace B6, «ignora spazi»: diff calcolato con `git diff -w`. Default false.
	IgnoreWhitespace *IgnoreWhitespaceParam `form:"ignoreWhitespace,omitempty" json:"ignoreWhitespace,omitempty"`
}

GetRepositoryCommitPatchParams defines parameters for GetRepositoryCommitPatch.

type GetRepositoryCommitPatchParamsFormat

type GetRepositoryCommitPatchParamsFormat string

GetRepositoryCommitPatchParamsFormat defines parameters for GetRepositoryCommitPatch.

const (
	GetRepositoryCommitPatchParamsFormatDiff  GetRepositoryCommitPatchParamsFormat = "diff"
	GetRepositoryCommitPatchParamsFormatPatch GetRepositoryCommitPatchParamsFormat = "patch"
)

Defines values for GetRepositoryCommitPatchParamsFormat.

func (GetRepositoryCommitPatchParamsFormat) Valid

Valid indicates whether the value is a known member of the GetRepositoryCommitPatchParamsFormat enum.

type GetRepositoryCommitPatchResponse

type GetRepositoryCommitPatchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetRepositoryCommitPatchResponse200Headers
}

func ParseGetRepositoryCommitPatchResponse

func ParseGetRepositoryCommitPatchResponse(rsp *http.Response) (*GetRepositoryCommitPatchResponse, error)

ParseGetRepositoryCommitPatchResponse parses an HTTP response from a GetRepositoryCommitPatchWithResponse call

func (GetRepositoryCommitPatchResponse) ContentType

func (r GetRepositoryCommitPatchResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetRepositoryCommitPatchResponse) GetBody

func (r GetRepositoryCommitPatchResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetRepositoryCommitPatchResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetRepositoryCommitPatchResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetRepositoryCommitPatchResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetRepositoryCommitPatchResponse) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetRepositoryCommitPatchResponse) GetJSONDefault

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetRepositoryCommitPatchResponse) Status

Status returns HTTPResponse.Status

func (GetRepositoryCommitPatchResponse) StatusCode

func (r GetRepositoryCommitPatchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRepositoryCommitPatchResponse200Headers

type GetRepositoryCommitPatchResponse200Headers struct {
	ContentDisposition    *string
	ContentSecurityPolicy *string
	XContentTypeOptions   *string
}

GetRepositoryCommitPatchResponse200Headers the declared response headers of an HTTP 200 response for GetRepositoryCommitPatch

type GetRepositoryCommitResponse

type GetRepositoryCommitResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CommitDetail
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetRepositoryCommitResponse

func ParseGetRepositoryCommitResponse(rsp *http.Response) (*GetRepositoryCommitResponse, error)

ParseGetRepositoryCommitResponse parses an HTTP response from a GetRepositoryCommitWithResponse call

func (GetRepositoryCommitResponse) ContentType

func (r GetRepositoryCommitResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetRepositoryCommitResponse) GetBody

func (r GetRepositoryCommitResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetRepositoryCommitResponse) GetJSON200

func (r GetRepositoryCommitResponse) GetJSON200() *CommitDetail

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetRepositoryCommitResponse) GetJSON400

func (r GetRepositoryCommitResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetRepositoryCommitResponse) GetJSON401

func (r GetRepositoryCommitResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetRepositoryCommitResponse) GetJSON403

func (r GetRepositoryCommitResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetRepositoryCommitResponse) GetJSON404

func (r GetRepositoryCommitResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetRepositoryCommitResponse) GetJSONDefault

func (r GetRepositoryCommitResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetRepositoryCommitResponse) Status

Status returns HTTPResponse.Status

func (GetRepositoryCommitResponse) StatusCode

func (r GetRepositoryCommitResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRepositoryCommitsParams

type GetRepositoryCommitsParams struct {
	// Ref Branch, tag o sha (completo o prefisso di almeno 7 caratteri). Se manca vale il branch principale del repo (R4). Un nome non valido (vuoto, con `..`, spazi, caratteri di controllo o oltre 255 caratteri) risponde 400 `invalid_ref`; uno valido ma inesistente 404 `ref_not_found`. Se un nome e' sia branch sia tag vince il branch.
	Ref *RefParam `form:"ref,omitempty" json:"ref,omitempty"`

	// Author Solo i commit il cui autore ha questo nome o email (senza distinguere maiuscole).
	Author *CommitAuthorFilter `form:"author,omitempty" json:"author,omitempty"`

	// Path Percorso relativo alla radice del repo, con `/` come separatore, senza `/` iniziale e senza segmenti `.` o `..` (400 `invalid_path`). Assente o vuoto: la radice.
	Path *PathParam       `form:"path,omitempty" json:"path,omitempty"`
	Page *CommitPageParam `form:"page,omitempty" json:"page,omitempty"`

	// PerPage Commit per pagina (default 30, massimo 100).
	PerPage *CommitPerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
}

GetRepositoryCommitsParams defines parameters for GetRepositoryCommits.

type GetRepositoryCommitsResponse

type GetRepositoryCommitsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CommitList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetRepositoryCommitsResponse

func ParseGetRepositoryCommitsResponse(rsp *http.Response) (*GetRepositoryCommitsResponse, error)

ParseGetRepositoryCommitsResponse parses an HTTP response from a GetRepositoryCommitsWithResponse call

func (GetRepositoryCommitsResponse) ContentType

func (r GetRepositoryCommitsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetRepositoryCommitsResponse) GetBody

func (r GetRepositoryCommitsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetRepositoryCommitsResponse) GetJSON200

func (r GetRepositoryCommitsResponse) GetJSON200() *CommitList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetRepositoryCommitsResponse) GetJSON400

func (r GetRepositoryCommitsResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetRepositoryCommitsResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetRepositoryCommitsResponse) GetJSON403

func (r GetRepositoryCommitsResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetRepositoryCommitsResponse) GetJSON404

func (r GetRepositoryCommitsResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetRepositoryCommitsResponse) GetJSONDefault

func (r GetRepositoryCommitsResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetRepositoryCommitsResponse) Status

Status returns HTTPResponse.Status

func (GetRepositoryCommitsResponse) StatusCode

func (r GetRepositoryCommitsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRepositoryFileParams

type GetRepositoryFileParams struct {
	// Ref Branch, tag o sha (completo o prefisso di almeno 7 caratteri). Se manca vale il branch principale del repo (R4). Un nome non valido (vuoto, con `..`, spazi, caratteri di controllo o oltre 255 caratteri) risponde 400 `invalid_ref`; uno valido ma inesistente 404 `ref_not_found`. Se un nome e' sia branch sia tag vince il branch.
	Ref *RefParam `form:"ref,omitempty" json:"ref,omitempty"`

	// Path Percorso del file (stesse regole di `PathParam`, non vuoto).
	Path FilePathParam `form:"path" json:"path"`
}

GetRepositoryFileParams defines parameters for GetRepositoryFile.

type GetRepositoryFileResponse

type GetRepositoryFileResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *FileContent
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetRepositoryFileResponse

func ParseGetRepositoryFileResponse(rsp *http.Response) (*GetRepositoryFileResponse, error)

ParseGetRepositoryFileResponse parses an HTTP response from a GetRepositoryFileWithResponse call

func (GetRepositoryFileResponse) ContentType

func (r GetRepositoryFileResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetRepositoryFileResponse) GetBody

func (r GetRepositoryFileResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetRepositoryFileResponse) GetJSON200

func (r GetRepositoryFileResponse) GetJSON200() *FileContent

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetRepositoryFileResponse) GetJSON400

func (r GetRepositoryFileResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetRepositoryFileResponse) GetJSON401

func (r GetRepositoryFileResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetRepositoryFileResponse) GetJSON403

func (r GetRepositoryFileResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetRepositoryFileResponse) GetJSON404

func (r GetRepositoryFileResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetRepositoryFileResponse) GetJSONDefault

func (r GetRepositoryFileResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetRepositoryFileResponse) Status

func (r GetRepositoryFileResponse) Status() string

Status returns HTTPResponse.Status

func (GetRepositoryFileResponse) StatusCode

func (r GetRepositoryFileResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRepositoryLanguagesParams

type GetRepositoryLanguagesParams struct {
	// Ref Branch, tag o sha (completo o prefisso di almeno 7 caratteri). Se manca vale il branch principale del repo (R4). Un nome non valido (vuoto, con `..`, spazi, caratteri di controllo o oltre 255 caratteri) risponde 400 `invalid_ref`; uno valido ma inesistente 404 `ref_not_found`. Se un nome e' sia branch sia tag vince il branch.
	Ref *RefParam `form:"ref,omitempty" json:"ref,omitempty"`
}

GetRepositoryLanguagesParams defines parameters for GetRepositoryLanguages.

type GetRepositoryLanguagesResponse

type GetRepositoryLanguagesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Languages
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetRepositoryLanguagesResponse

func ParseGetRepositoryLanguagesResponse(rsp *http.Response) (*GetRepositoryLanguagesResponse, error)

ParseGetRepositoryLanguagesResponse parses an HTTP response from a GetRepositoryLanguagesWithResponse call

func (GetRepositoryLanguagesResponse) ContentType

func (r GetRepositoryLanguagesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetRepositoryLanguagesResponse) GetBody

func (r GetRepositoryLanguagesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetRepositoryLanguagesResponse) GetJSON200

func (r GetRepositoryLanguagesResponse) GetJSON200() *Languages

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetRepositoryLanguagesResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetRepositoryLanguagesResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetRepositoryLanguagesResponse) GetJSON403

func (r GetRepositoryLanguagesResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetRepositoryLanguagesResponse) GetJSON404

func (r GetRepositoryLanguagesResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetRepositoryLanguagesResponse) GetJSONDefault

func (r GetRepositoryLanguagesResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetRepositoryLanguagesResponse) Status

Status returns HTTPResponse.Status

func (GetRepositoryLanguagesResponse) StatusCode

func (r GetRepositoryLanguagesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRepositoryRawByPathResponse

type GetRepositoryRawByPathResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetRepositoryRawByPathResponse200Headers
}

func ParseGetRepositoryRawByPathResponse

func ParseGetRepositoryRawByPathResponse(rsp *http.Response) (*GetRepositoryRawByPathResponse, error)

ParseGetRepositoryRawByPathResponse parses an HTTP response from a GetRepositoryRawByPathWithResponse call

func (GetRepositoryRawByPathResponse) ContentType

func (r GetRepositoryRawByPathResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetRepositoryRawByPathResponse) GetBody

func (r GetRepositoryRawByPathResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetRepositoryRawByPathResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetRepositoryRawByPathResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetRepositoryRawByPathResponse) GetJSON403

func (r GetRepositoryRawByPathResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetRepositoryRawByPathResponse) GetJSON404

func (r GetRepositoryRawByPathResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetRepositoryRawByPathResponse) GetJSONDefault

func (r GetRepositoryRawByPathResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetRepositoryRawByPathResponse) Status

Status returns HTTPResponse.Status

func (GetRepositoryRawByPathResponse) StatusCode

func (r GetRepositoryRawByPathResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRepositoryRawByPathResponse200Headers

type GetRepositoryRawByPathResponse200Headers struct {
	ContentDisposition    *string
	ContentSecurityPolicy *string
	XContentTypeOptions   *string
}

GetRepositoryRawByPathResponse200Headers the declared response headers of an HTTP 200 response for GetRepositoryRawByPath

type GetRepositoryRawParams

type GetRepositoryRawParams struct {
	// Ref Branch, tag o sha (completo o prefisso di almeno 7 caratteri). Se manca vale il branch principale del repo (R4). Un nome non valido (vuoto, con `..`, spazi, caratteri di controllo o oltre 255 caratteri) risponde 400 `invalid_ref`; uno valido ma inesistente 404 `ref_not_found`. Se un nome e' sia branch sia tag vince il branch.
	Ref *RefParam `form:"ref,omitempty" json:"ref,omitempty"`

	// Path Percorso del file (stesse regole di `PathParam`, non vuoto).
	Path FilePathParam `form:"path" json:"path"`
}

GetRepositoryRawParams defines parameters for GetRepositoryRaw.

type GetRepositoryRawResponse

type GetRepositoryRawResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetRepositoryRawResponse200Headers
}

func ParseGetRepositoryRawResponse

func ParseGetRepositoryRawResponse(rsp *http.Response) (*GetRepositoryRawResponse, error)

ParseGetRepositoryRawResponse parses an HTTP response from a GetRepositoryRawWithResponse call

func (GetRepositoryRawResponse) ContentType

func (r GetRepositoryRawResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetRepositoryRawResponse) GetBody

func (r GetRepositoryRawResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetRepositoryRawResponse) GetJSON400

func (r GetRepositoryRawResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetRepositoryRawResponse) GetJSON401

func (r GetRepositoryRawResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetRepositoryRawResponse) GetJSON403

func (r GetRepositoryRawResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetRepositoryRawResponse) GetJSON404

func (r GetRepositoryRawResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetRepositoryRawResponse) GetJSONDefault

func (r GetRepositoryRawResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetRepositoryRawResponse) Status

func (r GetRepositoryRawResponse) Status() string

Status returns HTTPResponse.Status

func (GetRepositoryRawResponse) StatusCode

func (r GetRepositoryRawResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRepositoryRawResponse200Headers

type GetRepositoryRawResponse200Headers struct {
	ContentDisposition    *string
	ContentSecurityPolicy *string
	XContentTypeOptions   *string
}

GetRepositoryRawResponse200Headers the declared response headers of an HTTP 200 response for GetRepositoryRaw

type GetRepositoryReadmeParams

type GetRepositoryReadmeParams struct {
	// Ref Branch, tag o sha (completo o prefisso di almeno 7 caratteri). Se manca vale il branch principale del repo (R4). Un nome non valido (vuoto, con `..`, spazi, caratteri di controllo o oltre 255 caratteri) risponde 400 `invalid_ref`; uno valido ma inesistente 404 `ref_not_found`. Se un nome e' sia branch sia tag vince il branch.
	Ref *RefParam `form:"ref,omitempty" json:"ref,omitempty"`

	// Path Percorso relativo alla radice del repo, con `/` come separatore, senza `/` iniziale e senza segmenti `.` o `..` (400 `invalid_path`). Assente o vuoto: la radice.
	Path *PathParam `form:"path,omitempty" json:"path,omitempty"`
}

GetRepositoryReadmeParams defines parameters for GetRepositoryReadme.

type GetRepositoryReadmeResponse

type GetRepositoryReadmeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *FileContent
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetRepositoryReadmeResponse

func ParseGetRepositoryReadmeResponse(rsp *http.Response) (*GetRepositoryReadmeResponse, error)

ParseGetRepositoryReadmeResponse parses an HTTP response from a GetRepositoryReadmeWithResponse call

func (GetRepositoryReadmeResponse) ContentType

func (r GetRepositoryReadmeResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetRepositoryReadmeResponse) GetBody

func (r GetRepositoryReadmeResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetRepositoryReadmeResponse) GetJSON200

func (r GetRepositoryReadmeResponse) GetJSON200() *FileContent

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetRepositoryReadmeResponse) GetJSON400

func (r GetRepositoryReadmeResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetRepositoryReadmeResponse) GetJSON401

func (r GetRepositoryReadmeResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetRepositoryReadmeResponse) GetJSON403

func (r GetRepositoryReadmeResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetRepositoryReadmeResponse) GetJSON404

func (r GetRepositoryReadmeResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetRepositoryReadmeResponse) GetJSONDefault

func (r GetRepositoryReadmeResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetRepositoryReadmeResponse) Status

Status returns HTTPResponse.Status

func (GetRepositoryReadmeResponse) StatusCode

func (r GetRepositoryReadmeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRepositoryResponse

type GetRepositoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Repository
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetRepositoryResponse

func ParseGetRepositoryResponse(rsp *http.Response) (*GetRepositoryResponse, error)

ParseGetRepositoryResponse parses an HTTP response from a GetRepositoryWithResponse call

func (GetRepositoryResponse) ContentType

func (r GetRepositoryResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetRepositoryResponse) GetBody

func (r GetRepositoryResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetRepositoryResponse) GetJSON200

func (r GetRepositoryResponse) GetJSON200() *Repository

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetRepositoryResponse) GetJSON400

func (r GetRepositoryResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetRepositoryResponse) GetJSON401

func (r GetRepositoryResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetRepositoryResponse) GetJSON403

func (r GetRepositoryResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetRepositoryResponse) GetJSON404

func (r GetRepositoryResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetRepositoryResponse) GetJSON409

func (r GetRepositoryResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (GetRepositoryResponse) GetJSONDefault

func (r GetRepositoryResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetRepositoryResponse) Status

func (r GetRepositoryResponse) Status() string

Status returns HTTPResponse.Status

func (GetRepositoryResponse) StatusCode

func (r GetRepositoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRepositoryTagsResponse

type GetRepositoryTagsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TagList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetRepositoryTagsResponse

func ParseGetRepositoryTagsResponse(rsp *http.Response) (*GetRepositoryTagsResponse, error)

ParseGetRepositoryTagsResponse parses an HTTP response from a GetRepositoryTagsWithResponse call

func (GetRepositoryTagsResponse) ContentType

func (r GetRepositoryTagsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetRepositoryTagsResponse) GetBody

func (r GetRepositoryTagsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetRepositoryTagsResponse) GetJSON200

func (r GetRepositoryTagsResponse) GetJSON200() *TagList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetRepositoryTagsResponse) GetJSON400

func (r GetRepositoryTagsResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetRepositoryTagsResponse) GetJSON401

func (r GetRepositoryTagsResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetRepositoryTagsResponse) GetJSON403

func (r GetRepositoryTagsResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetRepositoryTagsResponse) GetJSON404

func (r GetRepositoryTagsResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetRepositoryTagsResponse) GetJSONDefault

func (r GetRepositoryTagsResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetRepositoryTagsResponse) Status

func (r GetRepositoryTagsResponse) Status() string

Status returns HTTPResponse.Status

func (GetRepositoryTagsResponse) StatusCode

func (r GetRepositoryTagsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRepositoryTreeParams

type GetRepositoryTreeParams struct {
	// Ref Branch, tag o sha (completo o prefisso di almeno 7 caratteri). Se manca vale il branch principale del repo (R4). Un nome non valido (vuoto, con `..`, spazi, caratteri di controllo o oltre 255 caratteri) risponde 400 `invalid_ref`; uno valido ma inesistente 404 `ref_not_found`. Se un nome e' sia branch sia tag vince il branch.
	Ref *RefParam `form:"ref,omitempty" json:"ref,omitempty"`

	// Path Percorso relativo alla radice del repo, con `/` come separatore, senza `/` iniziale e senza segmenti `.` o `..` (400 `invalid_path`). Assente o vuoto: la radice.
	Path *PathParam `form:"path,omitempty" json:"path,omitempty"`
}

GetRepositoryTreeParams defines parameters for GetRepositoryTree.

type GetRepositoryTreeResponse

type GetRepositoryTreeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Tree
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetRepositoryTreeResponse

func ParseGetRepositoryTreeResponse(rsp *http.Response) (*GetRepositoryTreeResponse, error)

ParseGetRepositoryTreeResponse parses an HTTP response from a GetRepositoryTreeWithResponse call

func (GetRepositoryTreeResponse) ContentType

func (r GetRepositoryTreeResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetRepositoryTreeResponse) GetBody

func (r GetRepositoryTreeResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetRepositoryTreeResponse) GetJSON200

func (r GetRepositoryTreeResponse) GetJSON200() *Tree

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetRepositoryTreeResponse) GetJSON400

func (r GetRepositoryTreeResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetRepositoryTreeResponse) GetJSON401

func (r GetRepositoryTreeResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetRepositoryTreeResponse) GetJSON403

func (r GetRepositoryTreeResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetRepositoryTreeResponse) GetJSON404

func (r GetRepositoryTreeResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetRepositoryTreeResponse) GetJSONDefault

func (r GetRepositoryTreeResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetRepositoryTreeResponse) Status

func (r GetRepositoryTreeResponse) Status() string

Status returns HTTPResponse.Status

func (GetRepositoryTreeResponse) StatusCode

func (r GetRepositoryTreeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetResourceResponse

type GetResourceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Resource
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetResourceResponse

func ParseGetResourceResponse(rsp *http.Response) (*GetResourceResponse, error)

ParseGetResourceResponse parses an HTTP response from a GetResourceWithResponse call

func (GetResourceResponse) ContentType

func (r GetResourceResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetResourceResponse) GetBody

func (r GetResourceResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetResourceResponse) GetJSON200

func (r GetResourceResponse) GetJSON200() *Resource

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetResourceResponse) GetJSON401

func (r GetResourceResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetResourceResponse) GetJSON403

func (r GetResourceResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetResourceResponse) GetJSON404

func (r GetResourceResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetResourceResponse) GetJSONDefault

func (r GetResourceResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetResourceResponse) Status

func (r GetResourceResponse) Status() string

Status returns HTTPResponse.Status

func (GetResourceResponse) StatusCode

func (r GetResourceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSshKeyResponse

type GetSshKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SshKey
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetSshKeyResponse

func ParseGetSshKeyResponse(rsp *http.Response) (*GetSshKeyResponse, error)

ParseGetSshKeyResponse parses an HTTP response from a GetSshKeyWithResponse call

func (GetSshKeyResponse) ContentType

func (r GetSshKeyResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetSshKeyResponse) GetBody

func (r GetSshKeyResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetSshKeyResponse) GetJSON200

func (r GetSshKeyResponse) GetJSON200() *SshKey

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetSshKeyResponse) GetJSON401

func (r GetSshKeyResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetSshKeyResponse) GetJSON403

func (r GetSshKeyResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetSshKeyResponse) GetJSON404

func (r GetSshKeyResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetSshKeyResponse) GetJSONDefault

func (r GetSshKeyResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetSshKeyResponse) Status

func (r GetSshKeyResponse) Status() string

Status returns HTTPResponse.Status

func (GetSshKeyResponse) StatusCode

func (r GetSshKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTeamResponse

type GetTeamResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Team
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetTeamResponse

func ParseGetTeamResponse(rsp *http.Response) (*GetTeamResponse, error)

ParseGetTeamResponse parses an HTTP response from a GetTeamWithResponse call

func (GetTeamResponse) ContentType

func (r GetTeamResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetTeamResponse) GetBody

func (r GetTeamResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetTeamResponse) GetJSON200

func (r GetTeamResponse) GetJSON200() *Team

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetTeamResponse) GetJSON401

func (r GetTeamResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetTeamResponse) GetJSON403

func (r GetTeamResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetTeamResponse) GetJSON404

func (r GetTeamResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetTeamResponse) GetJSONDefault

func (r GetTeamResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetTeamResponse) Status

func (r GetTeamResponse) Status() string

Status returns HTTPResponse.Status

func (GetTeamResponse) StatusCode

func (r GetTeamResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUserAccessParams

type GetUserAccessParams struct {
	Page    *PageParam    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
}

GetUserAccessParams defines parameters for GetUserAccess.

type GetUserAccessResponse

type GetUserAccessResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *UserAccessList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetUserAccessResponse

func ParseGetUserAccessResponse(rsp *http.Response) (*GetUserAccessResponse, error)

ParseGetUserAccessResponse parses an HTTP response from a GetUserAccessWithResponse call

func (GetUserAccessResponse) ContentType

func (r GetUserAccessResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetUserAccessResponse) GetBody

func (r GetUserAccessResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetUserAccessResponse) GetJSON200

func (r GetUserAccessResponse) GetJSON200() *UserAccessList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetUserAccessResponse) GetJSON400

func (r GetUserAccessResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetUserAccessResponse) GetJSON401

func (r GetUserAccessResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetUserAccessResponse) GetJSON403

func (r GetUserAccessResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetUserAccessResponse) GetJSON404

func (r GetUserAccessResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetUserAccessResponse) GetJSONDefault

func (r GetUserAccessResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetUserAccessResponse) Status

func (r GetUserAccessResponse) Status() string

Status returns HTTPResponse.Status

func (GetUserAccessResponse) StatusCode

func (r GetUserAccessResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUserAccessSourcesJSONRequestBody

type GetUserAccessSourcesJSONRequestBody = ReadableResourcesInput

GetUserAccessSourcesJSONRequestBody defines body for GetUserAccessSources for application/json ContentType.

type GetUserAccessSourcesResponse

type GetUserAccessSourcesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *UserAccessSources
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetUserAccessSourcesResponse

func ParseGetUserAccessSourcesResponse(rsp *http.Response) (*GetUserAccessSourcesResponse, error)

ParseGetUserAccessSourcesResponse parses an HTTP response from a GetUserAccessSourcesWithResponse call

func (GetUserAccessSourcesResponse) ContentType

func (r GetUserAccessSourcesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetUserAccessSourcesResponse) GetBody

func (r GetUserAccessSourcesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetUserAccessSourcesResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetUserAccessSourcesResponse) GetJSON400

func (r GetUserAccessSourcesResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetUserAccessSourcesResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetUserAccessSourcesResponse) GetJSON404

func (r GetUserAccessSourcesResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetUserAccessSourcesResponse) GetJSONDefault

func (r GetUserAccessSourcesResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetUserAccessSourcesResponse) Status

Status returns HTTPResponse.Status

func (GetUserAccessSourcesResponse) StatusCode

func (r GetUserAccessSourcesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUserResponse

type GetUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *User
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGetUserResponse

func ParseGetUserResponse(rsp *http.Response) (*GetUserResponse, error)

ParseGetUserResponse parses an HTTP response from a GetUserWithResponse call

func (GetUserResponse) ContentType

func (r GetUserResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetUserResponse) GetBody

func (r GetUserResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetUserResponse) GetJSON200

func (r GetUserResponse) GetJSON200() *User

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetUserResponse) GetJSON401

func (r GetUserResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetUserResponse) GetJSON403

func (r GetUserResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetUserResponse) GetJSON404

func (r GetUserResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetUserResponse) GetJSONDefault

func (r GetUserResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetUserResponse) Status

func (r GetUserResponse) Status() string

Status returns HTTPResponse.Status

func (GetUserResponse) StatusCode

func (r GetUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GitCreateRepoInput

type GitCreateRepoInput struct {
	Author struct {
		Email string `json:"email"`
		Name  string `json:"name"`
	} `json:"author"`
	DefaultBranch *string `json:"defaultBranch,omitempty"`
	Description   *string `json:"description,omitempty"`

	// GitignoreTemplate Modello di `.gitignore` per il contenuto iniziale (R5).
	GitignoreTemplate *GitignoreTemplate `json:"gitignoreTemplate,omitempty"`
	LicenseHolder     *string            `json:"licenseHolder,omitempty"`

	// LicenseTemplate Modello di licenza per il contenuto iniziale (R5).
	LicenseTemplate *LicenseTemplate `json:"licenseTemplate,omitempty"`

	// Name Nome di un repo (R11): lettere maiuscole e minuscole, cifre, `-`, `_`, `.`; 1-100 caratteri; non inizia con `.`; non finisce con `.git` (regola applicata dal servizio, non esprimibile nel pattern). Le maiuscole sono conservate come scritte; l'unicita' per owner e il lookup non distinguono maiuscole e minuscole (`GitStack` e `gitstack` sono lo stesso repo).
	//
	//
	// Example: my-app
	Name   RepoName           `json:"name"`
	Readme *bool              `json:"readme,omitempty"`
	RepoId openapi_types.UUID `json:"repoId"`
}

GitCreateRepoInput defines model for GitCreateRepoInput.

type GitCreateRepoJSONRequestBody

type GitCreateRepoJSONRequestBody = GitCreateRepoInput

GitCreateRepoJSONRequestBody defines body for GitCreateRepo for application/json ContentType.

type GitCreateRepoResponse

type GitCreateRepoResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *GitRepoCreated
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGitCreateRepoResponse

func ParseGitCreateRepoResponse(rsp *http.Response) (*GitCreateRepoResponse, error)

ParseGitCreateRepoResponse parses an HTTP response from a GitCreateRepoWithResponse call

func (GitCreateRepoResponse) ContentType

func (r GitCreateRepoResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GitCreateRepoResponse) GetBody

func (r GitCreateRepoResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GitCreateRepoResponse) GetJSON201

func (r GitCreateRepoResponse) GetJSON201() *GitRepoCreated

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (GitCreateRepoResponse) GetJSON400

func (r GitCreateRepoResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GitCreateRepoResponse) GetJSON401

func (r GitCreateRepoResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GitCreateRepoResponse) GetJSON409

func (r GitCreateRepoResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (GitCreateRepoResponse) GetJSONDefault

func (r GitCreateRepoResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GitCreateRepoResponse) Status

func (r GitCreateRepoResponse) Status() string

Status returns HTTPResponse.Status

func (GitCreateRepoResponse) StatusCode

func (r GitCreateRepoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GitDeleteRepoResponse

type GitDeleteRepoResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGitDeleteRepoResponse

func ParseGitDeleteRepoResponse(rsp *http.Response) (*GitDeleteRepoResponse, error)

ParseGitDeleteRepoResponse parses an HTTP response from a GitDeleteRepoWithResponse call

func (GitDeleteRepoResponse) ContentType

func (r GitDeleteRepoResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GitDeleteRepoResponse) GetBody

func (r GitDeleteRepoResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GitDeleteRepoResponse) GetJSON401

func (r GitDeleteRepoResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GitDeleteRepoResponse) GetJSON404

func (r GitDeleteRepoResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GitDeleteRepoResponse) GetJSON409

func (r GitDeleteRepoResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (GitDeleteRepoResponse) GetJSONDefault

func (r GitDeleteRepoResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GitDeleteRepoResponse) Status

func (r GitDeleteRepoResponse) Status() string

Status returns HTTPResponse.Status

func (GitDeleteRepoResponse) StatusCode

func (r GitDeleteRepoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GitGetArchiveParams

type GitGetArchiveParams struct {
	// Ref Branch, tag o sha, sempre esplicito: core sostituisce il branch principale prima di chiamare il servizio git. Stesse regole di `RefParam` per 400 `invalid_ref` e 404 `ref_not_found`.
	Ref GitRefParam `form:"ref" json:"ref"`

	// Format Formato dell'archivio (default `zip`).
	Format *GitGetArchiveParamsFormat `form:"format,omitempty" json:"format,omitempty"`

	// Name Nome del repo, per comporre il nome del file dell'archivio.
	Name RepoName `form:"name" json:"name"`
}

GitGetArchiveParams defines parameters for GitGetArchive.

type GitGetArchiveParamsFormat

type GitGetArchiveParamsFormat string

GitGetArchiveParamsFormat defines parameters for GitGetArchive.

const (
	GitGetArchiveParamsFormatTarGz GitGetArchiveParamsFormat = "tar.gz"
	GitGetArchiveParamsFormatZip   GitGetArchiveParamsFormat = "zip"
)

Defines values for GitGetArchiveParamsFormat.

func (GitGetArchiveParamsFormat) Valid

func (e GitGetArchiveParamsFormat) Valid() bool

Valid indicates whether the value is a known member of the GitGetArchiveParamsFormat enum.

type GitGetArchiveResponse

type GitGetArchiveResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GitGetArchiveResponse200Headers
}

func ParseGitGetArchiveResponse

func ParseGitGetArchiveResponse(rsp *http.Response) (*GitGetArchiveResponse, error)

ParseGitGetArchiveResponse parses an HTTP response from a GitGetArchiveWithResponse call

func (GitGetArchiveResponse) ContentType

func (r GitGetArchiveResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GitGetArchiveResponse) GetBody

func (r GitGetArchiveResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GitGetArchiveResponse) GetJSON400

func (r GitGetArchiveResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GitGetArchiveResponse) GetJSON401

func (r GitGetArchiveResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GitGetArchiveResponse) GetJSON404

func (r GitGetArchiveResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GitGetArchiveResponse) GetJSONDefault

func (r GitGetArchiveResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GitGetArchiveResponse) Status

func (r GitGetArchiveResponse) Status() string

Status returns HTTPResponse.Status

func (GitGetArchiveResponse) StatusCode

func (r GitGetArchiveResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GitGetArchiveResponse200Headers

type GitGetArchiveResponse200Headers struct {
	ContentDisposition    *string
	ContentSecurityPolicy *string
	XContentTypeOptions   *string
}

GitGetArchiveResponse200Headers the declared response headers of an HTTP 200 response for GitGetArchive

type GitGetBlameParams

type GitGetBlameParams struct {
	// Ref Branch, tag o sha, sempre esplicito: core sostituisce il branch principale prima di chiamare il servizio git. Stesse regole di `RefParam` per 400 `invalid_ref` e 404 `ref_not_found`.
	Ref GitRefParam `form:"ref" json:"ref"`

	// Path Percorso del file (stesse regole di `PathParam`, non vuoto).
	Path FilePathParam `form:"path" json:"path"`
}

GitGetBlameParams defines parameters for GitGetBlame.

type GitGetBlameResponse

type GitGetBlameResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Blame
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGitGetBlameResponse

func ParseGitGetBlameResponse(rsp *http.Response) (*GitGetBlameResponse, error)

ParseGitGetBlameResponse parses an HTTP response from a GitGetBlameWithResponse call

func (GitGetBlameResponse) ContentType

func (r GitGetBlameResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GitGetBlameResponse) GetBody

func (r GitGetBlameResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GitGetBlameResponse) GetJSON200

func (r GitGetBlameResponse) GetJSON200() *Blame

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GitGetBlameResponse) GetJSON400

func (r GitGetBlameResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GitGetBlameResponse) GetJSON401

func (r GitGetBlameResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GitGetBlameResponse) GetJSON404

func (r GitGetBlameResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GitGetBlameResponse) GetJSONDefault

func (r GitGetBlameResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GitGetBlameResponse) Status

func (r GitGetBlameResponse) Status() string

Status returns HTTPResponse.Status

func (GitGetBlameResponse) StatusCode

func (r GitGetBlameResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GitGetBranchesResponse

type GitGetBranchesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *BranchList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGitGetBranchesResponse

func ParseGitGetBranchesResponse(rsp *http.Response) (*GitGetBranchesResponse, error)

ParseGitGetBranchesResponse parses an HTTP response from a GitGetBranchesWithResponse call

func (GitGetBranchesResponse) ContentType

func (r GitGetBranchesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GitGetBranchesResponse) GetBody

func (r GitGetBranchesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GitGetBranchesResponse) GetJSON200

func (r GitGetBranchesResponse) GetJSON200() *BranchList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GitGetBranchesResponse) GetJSON400

func (r GitGetBranchesResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GitGetBranchesResponse) GetJSON401

func (r GitGetBranchesResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GitGetBranchesResponse) GetJSON404

func (r GitGetBranchesResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GitGetBranchesResponse) GetJSONDefault

func (r GitGetBranchesResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GitGetBranchesResponse) Status

func (r GitGetBranchesResponse) Status() string

Status returns HTTPResponse.Status

func (GitGetBranchesResponse) StatusCode

func (r GitGetBranchesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GitGetCommitDiffParams

type GitGetCommitDiffParams struct {
	// IgnoreWhitespace B6, «ignora spazi»: diff calcolato con `git diff -w`. Default false.
	IgnoreWhitespace *IgnoreWhitespaceParam `form:"ignoreWhitespace,omitempty" json:"ignoreWhitespace,omitempty"`
}

GitGetCommitDiffParams defines parameters for GitGetCommitDiff.

type GitGetCommitDiffResponse

type GitGetCommitDiffResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGitGetCommitDiffResponse

func ParseGitGetCommitDiffResponse(rsp *http.Response) (*GitGetCommitDiffResponse, error)

ParseGitGetCommitDiffResponse parses an HTTP response from a GitGetCommitDiffWithResponse call

func (GitGetCommitDiffResponse) ContentType

func (r GitGetCommitDiffResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GitGetCommitDiffResponse) GetBody

func (r GitGetCommitDiffResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GitGetCommitDiffResponse) GetJSON400

func (r GitGetCommitDiffResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GitGetCommitDiffResponse) GetJSON401

func (r GitGetCommitDiffResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GitGetCommitDiffResponse) GetJSON404

func (r GitGetCommitDiffResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GitGetCommitDiffResponse) GetJSONDefault

func (r GitGetCommitDiffResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GitGetCommitDiffResponse) Status

func (r GitGetCommitDiffResponse) Status() string

Status returns HTTPResponse.Status

func (GitGetCommitDiffResponse) StatusCode

func (r GitGetCommitDiffResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GitGetCommitParams

type GitGetCommitParams struct {
	// IgnoreWhitespace B6, «ignora spazi»: diff calcolato con `git diff -w`. Default false.
	IgnoreWhitespace *IgnoreWhitespaceParam `form:"ignoreWhitespace,omitempty" json:"ignoreWhitespace,omitempty"`
}

GitGetCommitParams defines parameters for GitGetCommit.

type GitGetCommitPatchParams

type GitGetCommitPatchParams struct {
	// IgnoreWhitespace B6, «ignora spazi»: diff calcolato con `git diff -w`. Default false.
	IgnoreWhitespace *IgnoreWhitespaceParam `form:"ignoreWhitespace,omitempty" json:"ignoreWhitespace,omitempty"`
}

GitGetCommitPatchParams defines parameters for GitGetCommitPatch.

type GitGetCommitPatchResponse

type GitGetCommitPatchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGitGetCommitPatchResponse

func ParseGitGetCommitPatchResponse(rsp *http.Response) (*GitGetCommitPatchResponse, error)

ParseGitGetCommitPatchResponse parses an HTTP response from a GitGetCommitPatchWithResponse call

func (GitGetCommitPatchResponse) ContentType

func (r GitGetCommitPatchResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GitGetCommitPatchResponse) GetBody

func (r GitGetCommitPatchResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GitGetCommitPatchResponse) GetJSON400

func (r GitGetCommitPatchResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GitGetCommitPatchResponse) GetJSON401

func (r GitGetCommitPatchResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GitGetCommitPatchResponse) GetJSON404

func (r GitGetCommitPatchResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GitGetCommitPatchResponse) GetJSONDefault

func (r GitGetCommitPatchResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GitGetCommitPatchResponse) Status

func (r GitGetCommitPatchResponse) Status() string

Status returns HTTPResponse.Status

func (GitGetCommitPatchResponse) StatusCode

func (r GitGetCommitPatchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GitGetCommitResponse

type GitGetCommitResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CommitDetail
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGitGetCommitResponse

func ParseGitGetCommitResponse(rsp *http.Response) (*GitGetCommitResponse, error)

ParseGitGetCommitResponse parses an HTTP response from a GitGetCommitWithResponse call

func (GitGetCommitResponse) ContentType

func (r GitGetCommitResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GitGetCommitResponse) GetBody

func (r GitGetCommitResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GitGetCommitResponse) GetJSON200

func (r GitGetCommitResponse) GetJSON200() *CommitDetail

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GitGetCommitResponse) GetJSON400

func (r GitGetCommitResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GitGetCommitResponse) GetJSON401

func (r GitGetCommitResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GitGetCommitResponse) GetJSON404

func (r GitGetCommitResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GitGetCommitResponse) GetJSONDefault

func (r GitGetCommitResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GitGetCommitResponse) Status

func (r GitGetCommitResponse) Status() string

Status returns HTTPResponse.Status

func (GitGetCommitResponse) StatusCode

func (r GitGetCommitResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GitGetCommitsParams

type GitGetCommitsParams struct {
	// Ref Branch, tag o sha, sempre esplicito: core sostituisce il branch principale prima di chiamare il servizio git. Stesse regole di `RefParam` per 400 `invalid_ref` e 404 `ref_not_found`.
	Ref GitRefParam `form:"ref" json:"ref"`

	// Author Solo i commit il cui autore ha questo nome o email (senza distinguere maiuscole).
	Author *CommitAuthorFilter `form:"author,omitempty" json:"author,omitempty"`

	// Path Percorso relativo alla radice del repo, con `/` come separatore, senza `/` iniziale e senza segmenti `.` o `..` (400 `invalid_path`). Assente o vuoto: la radice.
	Path *PathParam       `form:"path,omitempty" json:"path,omitempty"`
	Page *CommitPageParam `form:"page,omitempty" json:"page,omitempty"`

	// PerPage Commit per pagina (default 30, massimo 100).
	PerPage *CommitPerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
}

GitGetCommitsParams defines parameters for GitGetCommits.

type GitGetCommitsResponse

type GitGetCommitsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CommitList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGitGetCommitsResponse

func ParseGitGetCommitsResponse(rsp *http.Response) (*GitGetCommitsResponse, error)

ParseGitGetCommitsResponse parses an HTTP response from a GitGetCommitsWithResponse call

func (GitGetCommitsResponse) ContentType

func (r GitGetCommitsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GitGetCommitsResponse) GetBody

func (r GitGetCommitsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GitGetCommitsResponse) GetJSON200

func (r GitGetCommitsResponse) GetJSON200() *CommitList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GitGetCommitsResponse) GetJSON400

func (r GitGetCommitsResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GitGetCommitsResponse) GetJSON401

func (r GitGetCommitsResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GitGetCommitsResponse) GetJSON404

func (r GitGetCommitsResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GitGetCommitsResponse) GetJSONDefault

func (r GitGetCommitsResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GitGetCommitsResponse) Status

func (r GitGetCommitsResponse) Status() string

Status returns HTTPResponse.Status

func (GitGetCommitsResponse) StatusCode

func (r GitGetCommitsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GitGetFileParams

type GitGetFileParams struct {
	// Ref Branch, tag o sha, sempre esplicito: core sostituisce il branch principale prima di chiamare il servizio git. Stesse regole di `RefParam` per 400 `invalid_ref` e 404 `ref_not_found`.
	Ref GitRefParam `form:"ref" json:"ref"`

	// Path Percorso del file (stesse regole di `PathParam`, non vuoto).
	Path FilePathParam `form:"path" json:"path"`
}

GitGetFileParams defines parameters for GitGetFile.

type GitGetFileResponse

type GitGetFileResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *FileContent
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGitGetFileResponse

func ParseGitGetFileResponse(rsp *http.Response) (*GitGetFileResponse, error)

ParseGitGetFileResponse parses an HTTP response from a GitGetFileWithResponse call

func (GitGetFileResponse) ContentType

func (r GitGetFileResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GitGetFileResponse) GetBody

func (r GitGetFileResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GitGetFileResponse) GetJSON200

func (r GitGetFileResponse) GetJSON200() *FileContent

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GitGetFileResponse) GetJSON400

func (r GitGetFileResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GitGetFileResponse) GetJSON401

func (r GitGetFileResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GitGetFileResponse) GetJSON404

func (r GitGetFileResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GitGetFileResponse) GetJSONDefault

func (r GitGetFileResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GitGetFileResponse) Status

func (r GitGetFileResponse) Status() string

Status returns HTTPResponse.Status

func (GitGetFileResponse) StatusCode

func (r GitGetFileResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GitGetLanguagesParams

type GitGetLanguagesParams struct {
	// Ref Branch, tag o sha, sempre esplicito: core sostituisce il branch principale prima di chiamare il servizio git. Stesse regole di `RefParam` per 400 `invalid_ref` e 404 `ref_not_found`.
	Ref GitRefParam `form:"ref" json:"ref"`
}

GitGetLanguagesParams defines parameters for GitGetLanguages.

type GitGetLanguagesResponse

type GitGetLanguagesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Languages
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGitGetLanguagesResponse

func ParseGitGetLanguagesResponse(rsp *http.Response) (*GitGetLanguagesResponse, error)

ParseGitGetLanguagesResponse parses an HTTP response from a GitGetLanguagesWithResponse call

func (GitGetLanguagesResponse) ContentType

func (r GitGetLanguagesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GitGetLanguagesResponse) GetBody

func (r GitGetLanguagesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GitGetLanguagesResponse) GetJSON200

func (r GitGetLanguagesResponse) GetJSON200() *Languages

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GitGetLanguagesResponse) GetJSON400

func (r GitGetLanguagesResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GitGetLanguagesResponse) GetJSON401

func (r GitGetLanguagesResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GitGetLanguagesResponse) GetJSON404

func (r GitGetLanguagesResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GitGetLanguagesResponse) GetJSONDefault

func (r GitGetLanguagesResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GitGetLanguagesResponse) Status

func (r GitGetLanguagesResponse) Status() string

Status returns HTTPResponse.Status

func (GitGetLanguagesResponse) StatusCode

func (r GitGetLanguagesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GitGetRawParams

type GitGetRawParams struct {
	// Ref Branch, tag o sha, sempre esplicito: core sostituisce il branch principale prima di chiamare il servizio git. Stesse regole di `RefParam` per 400 `invalid_ref` e 404 `ref_not_found`.
	Ref GitRefParam `form:"ref" json:"ref"`

	// Path Percorso del file (stesse regole di `PathParam`, non vuoto).
	Path FilePathParam `form:"path" json:"path"`
}

GitGetRawParams defines parameters for GitGetRaw.

type GitGetRawResponse

type GitGetRawResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GitGetRawResponse200Headers
}

func ParseGitGetRawResponse

func ParseGitGetRawResponse(rsp *http.Response) (*GitGetRawResponse, error)

ParseGitGetRawResponse parses an HTTP response from a GitGetRawWithResponse call

func (GitGetRawResponse) ContentType

func (r GitGetRawResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GitGetRawResponse) GetBody

func (r GitGetRawResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GitGetRawResponse) GetJSON400

func (r GitGetRawResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GitGetRawResponse) GetJSON401

func (r GitGetRawResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GitGetRawResponse) GetJSON404

func (r GitGetRawResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GitGetRawResponse) GetJSONDefault

func (r GitGetRawResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GitGetRawResponse) Status

func (r GitGetRawResponse) Status() string

Status returns HTTPResponse.Status

func (GitGetRawResponse) StatusCode

func (r GitGetRawResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GitGetRawResponse200Headers

type GitGetRawResponse200Headers struct {
	ContentDisposition    *string
	ContentSecurityPolicy *string
	XContentTypeOptions   *string
}

GitGetRawResponse200Headers the declared response headers of an HTTP 200 response for GitGetRaw

type GitGetReadmeParams

type GitGetReadmeParams struct {
	// Ref Branch, tag o sha, sempre esplicito: core sostituisce il branch principale prima di chiamare il servizio git. Stesse regole di `RefParam` per 400 `invalid_ref` e 404 `ref_not_found`.
	Ref GitRefParam `form:"ref" json:"ref"`

	// Path Percorso relativo alla radice del repo, con `/` come separatore, senza `/` iniziale e senza segmenti `.` o `..` (400 `invalid_path`). Assente o vuoto: la radice.
	Path *PathParam `form:"path,omitempty" json:"path,omitempty"`
}

GitGetReadmeParams defines parameters for GitGetReadme.

type GitGetReadmeResponse

type GitGetReadmeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *FileContent
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGitGetReadmeResponse

func ParseGitGetReadmeResponse(rsp *http.Response) (*GitGetReadmeResponse, error)

ParseGitGetReadmeResponse parses an HTTP response from a GitGetReadmeWithResponse call

func (GitGetReadmeResponse) ContentType

func (r GitGetReadmeResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GitGetReadmeResponse) GetBody

func (r GitGetReadmeResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GitGetReadmeResponse) GetJSON200

func (r GitGetReadmeResponse) GetJSON200() *FileContent

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GitGetReadmeResponse) GetJSON400

func (r GitGetReadmeResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GitGetReadmeResponse) GetJSON401

func (r GitGetReadmeResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GitGetReadmeResponse) GetJSON404

func (r GitGetReadmeResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GitGetReadmeResponse) GetJSONDefault

func (r GitGetReadmeResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GitGetReadmeResponse) Status

func (r GitGetReadmeResponse) Status() string

Status returns HTTPResponse.Status

func (GitGetReadmeResponse) StatusCode

func (r GitGetReadmeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GitGetRepoResponse

type GitGetRepoResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GitRepoState
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGitGetRepoResponse

func ParseGitGetRepoResponse(rsp *http.Response) (*GitGetRepoResponse, error)

ParseGitGetRepoResponse parses an HTTP response from a GitGetRepoWithResponse call

func (GitGetRepoResponse) ContentType

func (r GitGetRepoResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GitGetRepoResponse) GetBody

func (r GitGetRepoResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GitGetRepoResponse) GetJSON200

func (r GitGetRepoResponse) GetJSON200() *GitRepoState

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GitGetRepoResponse) GetJSON401

func (r GitGetRepoResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GitGetRepoResponse) GetJSON404

func (r GitGetRepoResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GitGetRepoResponse) GetJSONDefault

func (r GitGetRepoResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GitGetRepoResponse) Status

func (r GitGetRepoResponse) Status() string

Status returns HTTPResponse.Status

func (GitGetRepoResponse) StatusCode

func (r GitGetRepoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GitGetTagsResponse

type GitGetTagsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TagList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGitGetTagsResponse

func ParseGitGetTagsResponse(rsp *http.Response) (*GitGetTagsResponse, error)

ParseGitGetTagsResponse parses an HTTP response from a GitGetTagsWithResponse call

func (GitGetTagsResponse) ContentType

func (r GitGetTagsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GitGetTagsResponse) GetBody

func (r GitGetTagsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GitGetTagsResponse) GetJSON200

func (r GitGetTagsResponse) GetJSON200() *TagList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GitGetTagsResponse) GetJSON400

func (r GitGetTagsResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GitGetTagsResponse) GetJSON401

func (r GitGetTagsResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GitGetTagsResponse) GetJSON404

func (r GitGetTagsResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GitGetTagsResponse) GetJSONDefault

func (r GitGetTagsResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GitGetTagsResponse) Status

func (r GitGetTagsResponse) Status() string

Status returns HTTPResponse.Status

func (GitGetTagsResponse) StatusCode

func (r GitGetTagsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GitGetTreeParams

type GitGetTreeParams struct {
	// Ref Branch, tag o sha, sempre esplicito: core sostituisce il branch principale prima di chiamare il servizio git. Stesse regole di `RefParam` per 400 `invalid_ref` e 404 `ref_not_found`.
	Ref GitRefParam `form:"ref" json:"ref"`

	// Path Percorso relativo alla radice del repo, con `/` come separatore, senza `/` iniziale e senza segmenti `.` o `..` (400 `invalid_path`). Assente o vuoto: la radice.
	Path *PathParam `form:"path,omitempty" json:"path,omitempty"`
}

GitGetTreeParams defines parameters for GitGetTree.

type GitGetTreeResponse

type GitGetTreeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Tree
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGitGetTreeResponse

func ParseGitGetTreeResponse(rsp *http.Response) (*GitGetTreeResponse, error)

ParseGitGetTreeResponse parses an HTTP response from a GitGetTreeWithResponse call

func (GitGetTreeResponse) ContentType

func (r GitGetTreeResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GitGetTreeResponse) GetBody

func (r GitGetTreeResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GitGetTreeResponse) GetJSON200

func (r GitGetTreeResponse) GetJSON200() *Tree

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GitGetTreeResponse) GetJSON400

func (r GitGetTreeResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GitGetTreeResponse) GetJSON401

func (r GitGetTreeResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GitGetTreeResponse) GetJSON404

func (r GitGetTreeResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GitGetTreeResponse) GetJSONDefault

func (r GitGetTreeResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GitGetTreeResponse) Status

func (r GitGetTreeResponse) Status() string

Status returns HTTPResponse.Status

func (GitGetTreeResponse) StatusCode

func (r GitGetTreeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GitListFilesParams

type GitListFilesParams struct {
	// Ref Branch, tag o sha, sempre esplicito: core sostituisce il branch principale prima di chiamare il servizio git. Stesse regole di `RefParam` per 400 `invalid_ref` e 404 `ref_not_found`.
	Ref GitRefParam `form:"ref" json:"ref"`
}

GitListFilesParams defines parameters for GitListFiles.

type GitListFilesResponse

type GitListFilesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *FileList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGitListFilesResponse

func ParseGitListFilesResponse(rsp *http.Response) (*GitListFilesResponse, error)

ParseGitListFilesResponse parses an HTTP response from a GitListFilesWithResponse call

func (GitListFilesResponse) ContentType

func (r GitListFilesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GitListFilesResponse) GetBody

func (r GitListFilesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GitListFilesResponse) GetJSON200

func (r GitListFilesResponse) GetJSON200() *FileList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GitListFilesResponse) GetJSON400

func (r GitListFilesResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GitListFilesResponse) GetJSON401

func (r GitListFilesResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GitListFilesResponse) GetJSON404

func (r GitListFilesResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GitListFilesResponse) GetJSONDefault

func (r GitListFilesResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GitListFilesResponse) Status

func (r GitListFilesResponse) Status() string

Status returns HTTPResponse.Status

func (GitListFilesResponse) StatusCode

func (r GitListFilesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GitRefParam

type GitRefParam = string

GitRefParam defines model for GitRefParam.

type GitRepoCreated

type GitRepoCreated struct {
	Empty  bool               `json:"empty"`
	RepoId openapi_types.UUID `json:"repoId"`
}

GitRepoCreated defines model for GitRepoCreated.

type GitRepoIdParam

type GitRepoIdParam = openapi_types.UUID

GitRepoIdParam defines model for GitRepoIdParam.

type GitRepoState

type GitRepoState struct {
	// Branches Branch esistenti (`refs/heads`), in ordine alfabetico (R4).
	Branches *[]string          `json:"branches,omitempty"`
	Empty    bool               `json:"empty"`
	RepoId   openapi_types.UUID `json:"repoId"`
	Trashed  bool               `json:"trashed"`
}

GitRepoState defines model for GitRepoState.

type GitRestoreRepoResponse

type GitRestoreRepoResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGitRestoreRepoResponse

func ParseGitRestoreRepoResponse(rsp *http.Response) (*GitRestoreRepoResponse, error)

ParseGitRestoreRepoResponse parses an HTTP response from a GitRestoreRepoWithResponse call

func (GitRestoreRepoResponse) ContentType

func (r GitRestoreRepoResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GitRestoreRepoResponse) GetBody

func (r GitRestoreRepoResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GitRestoreRepoResponse) GetJSON401

func (r GitRestoreRepoResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GitRestoreRepoResponse) GetJSON404

func (r GitRestoreRepoResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GitRestoreRepoResponse) GetJSONDefault

func (r GitRestoreRepoResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GitRestoreRepoResponse) Status

func (r GitRestoreRepoResponse) Status() string

Status returns HTTPResponse.Status

func (GitRestoreRepoResponse) StatusCode

func (r GitRestoreRepoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GitSearchCodeParams

type GitSearchCodeParams struct {
	// Q Testo da cercare (sottostringa letterale, senza distinguere maiuscole), da 2 a 256 caratteri.
	Q CodeSearchQueryParam `form:"q" json:"q"`

	// Ref Branch, tag o sha, sempre esplicito: core sostituisce il branch principale prima di chiamare il servizio git. Stesse regole di `RefParam` per 400 `invalid_ref` e 404 `ref_not_found`.
	Ref GitRefParam `form:"ref" json:"ref"`
}

GitSearchCodeParams defines parameters for GitSearchCode.

type GitSearchCodeResponse

type GitSearchCodeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CodeSearchResult
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGitSearchCodeResponse

func ParseGitSearchCodeResponse(rsp *http.Response) (*GitSearchCodeResponse, error)

ParseGitSearchCodeResponse parses an HTTP response from a GitSearchCodeWithResponse call

func (GitSearchCodeResponse) ContentType

func (r GitSearchCodeResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GitSearchCodeResponse) GetBody

func (r GitSearchCodeResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GitSearchCodeResponse) GetJSON200

func (r GitSearchCodeResponse) GetJSON200() *CodeSearchResult

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GitSearchCodeResponse) GetJSON400

func (r GitSearchCodeResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GitSearchCodeResponse) GetJSON401

func (r GitSearchCodeResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GitSearchCodeResponse) GetJSON404

func (r GitSearchCodeResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GitSearchCodeResponse) GetJSONDefault

func (r GitSearchCodeResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GitSearchCodeResponse) Status

func (r GitSearchCodeResponse) Status() string

Status returns HTTPResponse.Status

func (GitSearchCodeResponse) StatusCode

func (r GitSearchCodeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GitTrashRepoResponse

type GitTrashRepoResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGitTrashRepoResponse

func ParseGitTrashRepoResponse(rsp *http.Response) (*GitTrashRepoResponse, error)

ParseGitTrashRepoResponse parses an HTTP response from a GitTrashRepoWithResponse call

func (GitTrashRepoResponse) ContentType

func (r GitTrashRepoResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GitTrashRepoResponse) GetBody

func (r GitTrashRepoResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GitTrashRepoResponse) GetJSON401

func (r GitTrashRepoResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GitTrashRepoResponse) GetJSON404

func (r GitTrashRepoResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GitTrashRepoResponse) GetJSONDefault

func (r GitTrashRepoResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GitTrashRepoResponse) Status

func (r GitTrashRepoResponse) Status() string

Status returns HTTPResponse.Status

func (GitTrashRepoResponse) StatusCode

func (r GitTrashRepoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GitignoreTemplate

type GitignoreTemplate string

GitignoreTemplate Modello di `.gitignore` per il contenuto iniziale (R5).

const (
	Cpp       GitignoreTemplate = "cpp"
	Dotnet    GitignoreTemplate = "dotnet"
	Go        GitignoreTemplate = "go"
	Java      GitignoreTemplate = "java"
	Node      GitignoreTemplate = "node"
	Php       GitignoreTemplate = "php"
	Python    GitignoreTemplate = "python"
	Ruby      GitignoreTemplate = "ruby"
	Rust      GitignoreTemplate = "rust"
	Terraform GitignoreTemplate = "terraform"
)

Defines values for GitignoreTemplate.

func (GitignoreTemplate) Valid

func (e GitignoreTemplate) Valid() bool

Valid indicates whether the value is a known member of the GitignoreTemplate enum.

type Grant

type Grant struct {
	CreatedAt  *time.Time          `json:"createdAt,omitempty"`
	Id         *openapi_types.UUID `json:"id,omitempty"`
	ResourceId openapi_types.UUID  `json:"resourceId"`

	// Role Ruolo su una risorsa, in ordine crescente di potere.
	Role        ResourceRole       `json:"role"`
	SubjectId   openapi_types.UUID `json:"subjectId"`
	SubjectType GrantSubjectType   `json:"subjectType"`
}

Grant Ruolo su una risorsa generica (D15) per un utente o un team.

type GrantIdParam

type GrantIdParam = openapi_types.UUID

GrantIdParam defines model for GrantIdParam.

type GrantList

type GrantList struct {
	Items   []Grant `json:"items"`
	Page    int     `json:"page"`
	PerPage int     `json:"perPage"`
	Total   int     `json:"total"`
}

GrantList defines model for GrantList.

type GrantResourceCreatorInput

type GrantResourceCreatorInput struct {
	UserId openapi_types.UUID `json:"userId"`
}

GrantResourceCreatorInput defines model for GrantResourceCreatorInput.

type GrantResourceCreatorJSONRequestBody

type GrantResourceCreatorJSONRequestBody = GrantResourceCreatorInput

GrantResourceCreatorJSONRequestBody defines body for GrantResourceCreator for application/json ContentType.

type GrantResourceCreatorResponse

type GrantResourceCreatorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Grant
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Grant
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseGrantResourceCreatorResponse

func ParseGrantResourceCreatorResponse(rsp *http.Response) (*GrantResourceCreatorResponse, error)

ParseGrantResourceCreatorResponse parses an HTTP response from a GrantResourceCreatorWithResponse call

func (GrantResourceCreatorResponse) ContentType

func (r GrantResourceCreatorResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GrantResourceCreatorResponse) GetBody

func (r GrantResourceCreatorResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GrantResourceCreatorResponse) GetJSON200

func (r GrantResourceCreatorResponse) GetJSON200() *Grant

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GrantResourceCreatorResponse) GetJSON201

func (r GrantResourceCreatorResponse) GetJSON201() *Grant

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (GrantResourceCreatorResponse) GetJSON400

func (r GrantResourceCreatorResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GrantResourceCreatorResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GrantResourceCreatorResponse) GetJSON404

func (r GrantResourceCreatorResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GrantResourceCreatorResponse) GetJSONDefault

func (r GrantResourceCreatorResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GrantResourceCreatorResponse) Status

Status returns HTTPResponse.Status

func (GrantResourceCreatorResponse) StatusCode

func (r GrantResourceCreatorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GrantSubjectType

type GrantSubjectType string

GrantSubjectType defines model for Grant.SubjectType.

const (
	GrantSubjectTypeTeam GrantSubjectType = "team"
	GrantSubjectTypeUser GrantSubjectType = "user"
)

Defines values for GrantSubjectType.

func (GrantSubjectType) Valid

func (e GrantSubjectType) Valid() bool

Valid indicates whether the value is a known member of the GrantSubjectType enum.

type Health

type Health struct {
	Status HealthStatus `json:"status"`

	// Version Versione del contratto API in esecuzione (`info.version`).
	Version string `json:"version"`
}

Health defines model for Health.

type HealthStatus

type HealthStatus string

HealthStatus defines model for Health.Status.

const (
	Degraded HealthStatus = "degraded"
	Ok       HealthStatus = "ok"
)

Defines values for HealthStatus.

func (HealthStatus) Valid

func (e HealthStatus) Valid() bool

Valid indicates whether the value is a known member of the HealthStatus enum.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type IgnoreWhitespaceParam

type IgnoreWhitespaceParam = bool

IgnoreWhitespaceParam defines model for IgnoreWhitespaceParam.

type Issue

type Issue struct {
	Assignees   []IssueUser        `json:"assignees"`
	Attachments *[]IssueAttachment `json:"attachments,omitempty"`
	Author      IssueUser          `json:"author"`

	// Body Markdown (D10).
	Body string `json:"body"`

	// CloseReason Presente solo se `state` e' `closed`; azzerato dalla riapertura (I2).
	CloseReason *IssueCloseReason `json:"closeReason,omitempty"`
	ClosedAt    *time.Time        `json:"closedAt,omitempty"`

	// CommentCount Commenti non eliminati.
	CommentCount int       `json:"commentCount"`
	CreatedAt    time.Time `json:"createdAt"`

	// DuplicateOf Numero della issue di cui questa e' un duplicato (solo con `closeReason=duplicate`).
	DuplicateOf *int64 `json:"duplicateOf,omitempty"`

	// Edited Il testo e' stato modificato (I4); le versioni precedenti sono per `admin`.
	Edited bool `json:"edited"`

	// Hidden Nascosta (I4). Chi non e' `admin` non la riceve mai: e' 404.
	Hidden bool               `json:"hidden"`
	Id     openapi_types.UUID `json:"id"`
	Labels []IssueLabelRef    `json:"labels"`

	// Locked Discussione bloccata (I11).
	Locked    bool               `json:"locked"`
	Milestone *IssueMilestoneRef `json:"milestone,omitempty"`

	// Number `#n`, dal contatore del repo condiviso con le PR (I1); non si riusa mai.
	Number    int64      `json:"number"`
	State     IssueState `json:"state"`
	Title     string     `json:"title"`
	UpdatedAt time.Time  `json:"updatedAt"`

	// ViaToken Token personale con cui e' stata creata la risorsa (mockup 13, "via token").
	ViaToken *IssueViaToken `json:"viaToken,omitempty"`
}

Issue defines model for Issue.

type IssueAssigneeFilter

type IssueAssigneeFilter = string

IssueAssigneeFilter defines model for IssueAssigneeFilter.

type IssueAttachment

type IssueAttachment struct {
	ContentType string    `json:"contentType"`
	CreatedAt   time.Time `json:"createdAt"`

	// Filename Nome originale, solo metadato (mai nel percorso su disco).
	Filename string             `json:"filename"`
	Id       openapi_types.UUID `json:"id"`
	Size     int64              `json:"size"`

	// Url Percorso di `getIssueAttachment`; richiede autenticazione.
	Url *string `json:"url,omitempty"`
}

IssueAttachment defines model for IssueAttachment.

type IssueAttachmentIdParam

type IssueAttachmentIdParam = openapi_types.UUID

IssueAttachmentIdParam defines model for IssueAttachmentIdParam.

type IssueAuthorFilter

type IssueAuthorFilter = string

IssueAuthorFilter defines model for IssueAuthorFilter.

type IssueCloseReason

type IssueCloseReason string

IssueCloseReason Motivo di chiusura (I2). `completed` e' anche quello di `fixes

const (
	Completed  IssueCloseReason = "completed"
	Duplicate  IssueCloseReason = "duplicate"
	NotPlanned IssueCloseReason = "not_planned"
)

Defines values for IssueCloseReason.

func (IssueCloseReason) Valid

func (e IssueCloseReason) Valid() bool

Valid indicates whether the value is a known member of the IssueCloseReason enum.

type IssueComment

type IssueComment struct {
	Attachments *[]IssueAttachment `json:"attachments,omitempty"`
	Author      IssueUser          `json:"author"`

	// Body Markdown; vuoto se `deleted`.
	Body      string    `json:"body"`
	CreatedAt time.Time `json:"createdAt"`

	// Deleted Eliminato (comment deleted, I4): resta la traccia, senza testo.
	Deleted     bool               `json:"deleted"`
	Edited      bool               `json:"edited"`
	Id          openapi_types.UUID `json:"id"`
	IssueNumber int64              `json:"issueNumber"`
	UpdatedAt   time.Time          `json:"updatedAt"`

	// ViaToken Token personale con cui e' stata creata la risorsa (mockup 13, "via token").
	ViaToken *IssueViaToken `json:"viaToken,omitempty"`
}

IssueComment defines model for IssueComment.

type IssueCommentIdParam

type IssueCommentIdParam = openapi_types.UUID

IssueCommentIdParam defines model for IssueCommentIdParam.

type IssueCommentList

type IssueCommentList struct {
	Items   []IssueComment `json:"items"`
	Page    int            `json:"page"`
	PerPage int            `json:"perPage"`
	Total   int            `json:"total"`
}

IssueCommentList defines model for IssueCommentList.

type IssueEvent

type IssueEvent struct {
	// Actor Assente per gli eventi di sistema (es. chiusura da `fixes
	Actor     *IssueUser `json:"actor,omitempty"`
	CreatedAt time.Time  `json:"createdAt"`

	// Data Dettagli dell'evento: `closed` ha `reason` e `duplicateOf`; `labeled` e `unlabeled` ha `label`; `assigned` e `unassigned` ha `assignee`; `milestoned` ha `milestone`; `renamed` ha `from` e `to`; `referenced` (non piu' scritto, sostituito da `commit_linked`) ha `commit`; `comment_deleted` ha `commentId`. Eventi di M-06: `referenced_from` (C1, "referenced from owner/repo#n") ha `source` (`kind` issue|pull_request, `repository` `owner/repo`, `number`, `title`, `commentId` se cita un commento) e compare solo a chi vede entrambi i repo; `commit_linked` (C2, "linked commit") ha `commit` (`sha`, `repository` `owner/repo`, `subject`, `ref`, `authorName`); `closed_by_commit` (C2, "closed by commit <sha>") ha `commit` e `reason` `completed`, senza `actor`, ed e' l'unico evento scritto per una chiusura da `fixes #n` (non c'e' anche un `closed`).
	Data *map[string]interface{} `json:"data,omitempty"`
	Id   openapi_types.UUID      `json:"id"`
	Type IssueEventType          `json:"type"`
}

IssueEvent defines model for IssueEvent.

type IssueEventList

type IssueEventList struct {
	Items   []IssueEvent `json:"items"`
	Page    int          `json:"page"`
	PerPage int          `json:"perPage"`
	Total   int          `json:"total"`
}

IssueEventList defines model for IssueEventList.

type IssueEventType

type IssueEventType string

IssueEventType defines model for IssueEventType.

const (
	IssueEventTypeAssigned       IssueEventType = "assigned"
	IssueEventTypeClosed         IssueEventType = "closed"
	IssueEventTypeClosedByCommit IssueEventType = "closed_by_commit"
	IssueEventTypeCommentDeleted IssueEventType = "comment_deleted"
	IssueEventTypeCommitLinked   IssueEventType = "commit_linked"
	IssueEventTypeDemilestoned   IssueEventType = "demilestoned"
	IssueEventTypeEdited         IssueEventType = "edited"
	IssueEventTypeHidden         IssueEventType = "hidden"
	IssueEventTypeLabeled        IssueEventType = "labeled"
	IssueEventTypeLocked         IssueEventType = "locked"
	IssueEventTypeMilestoned     IssueEventType = "milestoned"
	IssueEventTypeOpened         IssueEventType = "opened"
	IssueEventTypeReferenced     IssueEventType = "referenced"
	IssueEventTypeReferencedFrom IssueEventType = "referenced_from"
	IssueEventTypeRenamed        IssueEventType = "renamed"
	IssueEventTypeReopened       IssueEventType = "reopened"
	IssueEventTypeUnassigned     IssueEventType = "unassigned"
	IssueEventTypeUnhidden       IssueEventType = "unhidden"
	IssueEventTypeUnlabeled      IssueEventType = "unlabeled"
	IssueEventTypeUnlocked       IssueEventType = "unlocked"
)

Defines values for IssueEventType.

func (IssueEventType) Valid

func (e IssueEventType) Valid() bool

Valid indicates whether the value is a known member of the IssueEventType enum.

type IssueLabelRef

type IssueLabelRef struct {
	// Color Colore esadecimale a sei cifre, senza `#`.
	//
	// Example: d73a4a
	Color LabelColor         `json:"color"`
	Id    openapi_types.UUID `json:"id"`
	Name  string             `json:"name"`
}

IssueLabelRef defines model for IssueLabelRef.

type IssueLabelsFilter

type IssueLabelsFilter = string

IssueLabelsFilter defines model for IssueLabelsFilter.

type IssueList

type IssueList struct {
	Items   []IssueSummary `json:"items"`
	Page    int            `json:"page"`
	PerPage int            `json:"perPage"`
	Total   int            `json:"total"`
}

IssueList defines model for IssueList.

type IssueMilestoneFilter

type IssueMilestoneFilter = string

IssueMilestoneFilter defines model for IssueMilestoneFilter.

type IssueMilestoneRef

type IssueMilestoneRef struct {
	Number int64                  `json:"number"`
	State  IssueMilestoneRefState `json:"state"`
	Title  string                 `json:"title"`
}

IssueMilestoneRef defines model for IssueMilestoneRef.

type IssueMilestoneRefState

type IssueMilestoneRefState string

IssueMilestoneRefState defines model for IssueMilestoneRef.State.

const (
	IssueMilestoneRefStateClosed IssueMilestoneRefState = "closed"
	IssueMilestoneRefStateOpen   IssueMilestoneRefState = "open"
)

Defines values for IssueMilestoneRefState.

func (IssueMilestoneRefState) Valid

func (e IssueMilestoneRefState) Valid() bool

Valid indicates whether the value is a known member of the IssueMilestoneRefState enum.

type IssueNumberParam

type IssueNumberParam = int64

IssueNumberParam defines model for IssueNumberParam.

type IssueQueryParam

type IssueQueryParam = string

IssueQueryParam defines model for IssueQueryParam.

type IssueReasonFilter

type IssueReasonFilter = IssueCloseReason

IssueReasonFilter Motivo di chiusura (I2). `completed` e' anche quello di `fixes

type IssueSearchResult

type IssueSearchResult struct {
	// Issue Issue negli elenchi: senza testo.
	Issue IssueSummary `json:"issue"`

	// Repo `owner/nome` del repo.
	Repo string `json:"repo"`
}

IssueSearchResult defines model for IssueSearchResult.

type IssueSearchResultList

type IssueSearchResultList struct {
	Items   []IssueSearchResult `json:"items"`
	Page    int                 `json:"page"`
	PerPage int                 `json:"perPage"`
	Total   int                 `json:"total"`
}

IssueSearchResultList defines model for IssueSearchResultList.

type IssueSortParam

type IssueSortParam string

IssueSortParam defines model for IssueSortParam.

const (
	IssueSortParamComments  IssueSortParam = "comments"
	IssueSortParamCreated   IssueSortParam = "created"
	IssueSortParamRelevance IssueSortParam = "relevance"
	IssueSortParamUpdated   IssueSortParam = "updated"
)

Defines values for IssueSortParam.

func (IssueSortParam) Valid

func (e IssueSortParam) Valid() bool

Valid indicates whether the value is a known member of the IssueSortParam enum.

type IssueState

type IssueState string

IssueState defines model for IssueState.

const (
	IssueStateClosed IssueState = "closed"
	IssueStateOpen   IssueState = "open"
)

Defines values for IssueState.

func (IssueState) Valid

func (e IssueState) Valid() bool

Valid indicates whether the value is a known member of the IssueState enum.

type IssueStateFilter

type IssueStateFilter string

IssueStateFilter defines model for IssueStateFilter.

const (
	IssueStateFilterAll    IssueStateFilter = "all"
	IssueStateFilterClosed IssueStateFilter = "closed"
	IssueStateFilterOpen   IssueStateFilter = "open"
)

Defines values for IssueStateFilter.

func (IssueStateFilter) Valid

func (e IssueStateFilter) Valid() bool

Valid indicates whether the value is a known member of the IssueStateFilter enum.

type IssueSubscription

type IssueSubscription struct {
	// Reason Perche' si segue: `author`, `assignee`, `commenter`, `mentioned` (automatico), `manual` (Subscribe), oppure `none` se non si segue (Unsubscribe esplicito o mai coinvolti).
	Reason     IssueSubscriptionReason `json:"reason"`
	Subscribed bool                    `json:"subscribed"`
}

IssueSubscription defines model for IssueSubscription.

type IssueSubscriptionReason

type IssueSubscriptionReason string

IssueSubscriptionReason Perche' si segue: `author`, `assignee`, `commenter`, `mentioned` (automatico), `manual` (Subscribe), oppure `none` se non si segue (Unsubscribe esplicito o mai coinvolti).

const (
	IssueSubscriptionReasonAssignee  IssueSubscriptionReason = "assignee"
	IssueSubscriptionReasonAuthor    IssueSubscriptionReason = "author"
	IssueSubscriptionReasonCommenter IssueSubscriptionReason = "commenter"
	IssueSubscriptionReasonManual    IssueSubscriptionReason = "manual"
	IssueSubscriptionReasonMentioned IssueSubscriptionReason = "mentioned"
	IssueSubscriptionReasonNone      IssueSubscriptionReason = "none"
)

Defines values for IssueSubscriptionReason.

func (IssueSubscriptionReason) Valid

func (e IssueSubscriptionReason) Valid() bool

Valid indicates whether the value is a known member of the IssueSubscriptionReason enum.

type IssueSummary

type IssueSummary struct {
	Assignees    []IssueUser       `json:"assignees"`
	Author       IssueUser         `json:"author"`
	CloseReason  *IssueCloseReason `json:"closeReason,omitempty"`
	CommentCount int               `json:"commentCount"`
	CreatedAt    time.Time         `json:"createdAt"`
	Labels       []IssueLabelRef   `json:"labels"`

	// LinkedCommitCount Commit distinti collegati (commit_linked, closed_by_commit) che il chiamante può vedere.
	LinkedCommitCount int                `json:"linkedCommitCount"`
	Locked            *bool              `json:"locked,omitempty"`
	Milestone         *IssueMilestoneRef `json:"milestone,omitempty"`
	Number            int64              `json:"number"`
	State             IssueState         `json:"state"`
	Title             string             `json:"title"`
	UpdatedAt         time.Time          `json:"updatedAt"`
}

IssueSummary Issue negli elenchi: senza testo.

type IssueTemplate

type IssueTemplate struct {
	About *string `json:"about,omitempty"`

	// Body Testo Markdown iniziale, senza front matter.
	Body   string    `json:"body"`
	Labels *[]string `json:"labels,omitempty"`

	// Name Nome del file senza estensione.
	Name string `json:"name"`

	// Title Titolo proposto (front matter `title`).
	Title *string `json:"title,omitempty"`
}

IssueTemplate defines model for IssueTemplate.

type IssueTemplateList

type IssueTemplateList struct {
	Items []IssueTemplate `json:"items"`
}

IssueTemplateList defines model for IssueTemplateList.

type IssueUser

type IssueUser struct {
	DisplayName *string            `json:"displayName,omitempty"`
	Id          openapi_types.UUID `json:"id"`
	Kind        IssueUserKind      `json:"kind"`

	// Username Nome breve in minuscolo (username, organizzazione, team, provider): lettere minuscole, cifre e trattini, 1-39 caratteri, inizia e finisce con un carattere alfanumerico.
	//
	//
	// Example: alice
	Username Name `json:"username"`
}

IssueUser defines model for IssueUser.

type IssueUserKind

type IssueUserKind string

IssueUserKind defines model for IssueUser.Kind.

const (
	IssueUserKindAgent IssueUserKind = "agent"
	IssueUserKindHuman IssueUserKind = "human"
)

Defines values for IssueUserKind.

func (IssueUserKind) Valid

func (e IssueUserKind) Valid() bool

Valid indicates whether the value is a known member of the IssueUserKind enum.

type IssueViaToken

type IssueViaToken struct {
	Id   openapi_types.UUID `json:"id"`
	Name string             `json:"name"`
}

IssueViaToken Token personale con cui e' stata creata la risorsa (mockup 13, "via token").

type Label

type Label struct {
	// Color Colore esadecimale a sei cifre, senza `#`.
	//
	// Example: d73a4a
	Color       LabelColor         `json:"color"`
	Description string             `json:"description"`
	Id          openapi_types.UUID `json:"id"`
	Name        string             `json:"name"`
	OpenIssues  int                `json:"openIssues"`
}

Label defines model for Label.

type LabelColor

type LabelColor = string

LabelColor Colore esadecimale a sei cifre, senza `#`.

Example: d73a4a

type LabelList

type LabelList struct {
	Items   []Label `json:"items"`
	Page    int     `json:"page"`
	PerPage int     `json:"perPage"`
	Total   int     `json:"total"`
}

LabelList defines model for LabelList.

type LabelNameParam

type LabelNameParam = string

LabelNameParam defines model for LabelNameParam.

type LanguageShare

type LanguageShare struct {
	Bytes   int64   `json:"bytes"`
	Name    string  `json:"name"`
	Percent float32 `json:"percent"`
}

LanguageShare defines model for LanguageShare.

type Languages

type Languages struct {
	Languages  []LanguageShare `json:"languages"`
	TotalBytes int64           `json:"totalBytes"`
}

Languages defines model for Languages.

type LicenseTemplate

type LicenseTemplate string

LicenseTemplate Modello di licenza per il contenuto iniziale (R5).

const (
	Agpl30     LicenseTemplate = "agpl-3.0"
	Apache20   LicenseTemplate = "apache-2.0"
	Bsd2Clause LicenseTemplate = "bsd-2-clause"
	Bsd3Clause LicenseTemplate = "bsd-3-clause"
	Gpl30      LicenseTemplate = "gpl-3.0"
	Lgpl30     LicenseTemplate = "lgpl-3.0"
	Mit        LicenseTemplate = "mit"
	Mpl20      LicenseTemplate = "mpl-2.0"
	Unlicense  LicenseTemplate = "unlicense"
)

Defines values for LicenseTemplate.

func (LicenseTemplate) Valid

func (e LicenseTemplate) Valid() bool

Valid indicates whether the value is a known member of the LicenseTemplate enum.

type ListDeletedRepositoriesParams

type ListDeletedRepositoriesParams struct {
	// Owner Filtra per nome dell'utente o dell'organizzazione proprietaria.
	Owner *RepoOwnerFilter `form:"owner,omitempty" json:"owner,omitempty"`
}

ListDeletedRepositoriesParams defines parameters for ListDeletedRepositories.

type ListDeletedRepositoriesResponse

type ListDeletedRepositoriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *DeletedRepositoryList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListDeletedRepositoriesResponse

func ParseListDeletedRepositoriesResponse(rsp *http.Response) (*ListDeletedRepositoriesResponse, error)

ParseListDeletedRepositoriesResponse parses an HTTP response from a ListDeletedRepositoriesWithResponse call

func (ListDeletedRepositoriesResponse) ContentType

func (r ListDeletedRepositoriesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListDeletedRepositoriesResponse) GetBody

func (r ListDeletedRepositoriesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListDeletedRepositoriesResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListDeletedRepositoriesResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListDeletedRepositoriesResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListDeletedRepositoriesResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListDeletedRepositoriesResponse) GetJSON404

func (r ListDeletedRepositoriesResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListDeletedRepositoriesResponse) GetJSON409

func (r ListDeletedRepositoriesResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (ListDeletedRepositoriesResponse) GetJSONDefault

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListDeletedRepositoriesResponse) Status

Status returns HTTPResponse.Status

func (ListDeletedRepositoriesResponse) StatusCode

func (r ListDeletedRepositoriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListIssueCommentVersionsResponse

type ListIssueCommentVersionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TextVersionList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListIssueCommentVersionsResponse

func ParseListIssueCommentVersionsResponse(rsp *http.Response) (*ListIssueCommentVersionsResponse, error)

ParseListIssueCommentVersionsResponse parses an HTTP response from a ListIssueCommentVersionsWithResponse call

func (ListIssueCommentVersionsResponse) ContentType

func (r ListIssueCommentVersionsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListIssueCommentVersionsResponse) GetBody

func (r ListIssueCommentVersionsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListIssueCommentVersionsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListIssueCommentVersionsResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListIssueCommentVersionsResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListIssueCommentVersionsResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListIssueCommentVersionsResponse) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListIssueCommentVersionsResponse) GetJSONDefault

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListIssueCommentVersionsResponse) Status

Status returns HTTPResponse.Status

func (ListIssueCommentVersionsResponse) StatusCode

func (r ListIssueCommentVersionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListIssueCommentsParams

type ListIssueCommentsParams struct {
	Page    *PageParam    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
}

ListIssueCommentsParams defines parameters for ListIssueComments.

type ListIssueCommentsResponse

type ListIssueCommentsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *IssueCommentList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListIssueCommentsResponse

func ParseListIssueCommentsResponse(rsp *http.Response) (*ListIssueCommentsResponse, error)

ParseListIssueCommentsResponse parses an HTTP response from a ListIssueCommentsWithResponse call

func (ListIssueCommentsResponse) ContentType

func (r ListIssueCommentsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListIssueCommentsResponse) GetBody

func (r ListIssueCommentsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListIssueCommentsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListIssueCommentsResponse) GetJSON400

func (r ListIssueCommentsResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListIssueCommentsResponse) GetJSON401

func (r ListIssueCommentsResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListIssueCommentsResponse) GetJSON403

func (r ListIssueCommentsResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListIssueCommentsResponse) GetJSON404

func (r ListIssueCommentsResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListIssueCommentsResponse) GetJSONDefault

func (r ListIssueCommentsResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListIssueCommentsResponse) Status

func (r ListIssueCommentsResponse) Status() string

Status returns HTTPResponse.Status

func (ListIssueCommentsResponse) StatusCode

func (r ListIssueCommentsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListIssueEventsParams

type ListIssueEventsParams struct {
	Page    *PageParam    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
}

ListIssueEventsParams defines parameters for ListIssueEvents.

type ListIssueEventsResponse

type ListIssueEventsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *IssueEventList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListIssueEventsResponse

func ParseListIssueEventsResponse(rsp *http.Response) (*ListIssueEventsResponse, error)

ParseListIssueEventsResponse parses an HTTP response from a ListIssueEventsWithResponse call

func (ListIssueEventsResponse) ContentType

func (r ListIssueEventsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListIssueEventsResponse) GetBody

func (r ListIssueEventsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListIssueEventsResponse) GetJSON200

func (r ListIssueEventsResponse) GetJSON200() *IssueEventList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListIssueEventsResponse) GetJSON400

func (r ListIssueEventsResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListIssueEventsResponse) GetJSON401

func (r ListIssueEventsResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListIssueEventsResponse) GetJSON403

func (r ListIssueEventsResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListIssueEventsResponse) GetJSON404

func (r ListIssueEventsResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListIssueEventsResponse) GetJSONDefault

func (r ListIssueEventsResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListIssueEventsResponse) Status

func (r ListIssueEventsResponse) Status() string

Status returns HTTPResponse.Status

func (ListIssueEventsResponse) StatusCode

func (r ListIssueEventsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListIssueTemplatesResponse

type ListIssueTemplatesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *IssueTemplateList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListIssueTemplatesResponse

func ParseListIssueTemplatesResponse(rsp *http.Response) (*ListIssueTemplatesResponse, error)

ParseListIssueTemplatesResponse parses an HTTP response from a ListIssueTemplatesWithResponse call

func (ListIssueTemplatesResponse) ContentType

func (r ListIssueTemplatesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListIssueTemplatesResponse) GetBody

func (r ListIssueTemplatesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListIssueTemplatesResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListIssueTemplatesResponse) GetJSON400

func (r ListIssueTemplatesResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListIssueTemplatesResponse) GetJSON401

func (r ListIssueTemplatesResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListIssueTemplatesResponse) GetJSON403

func (r ListIssueTemplatesResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListIssueTemplatesResponse) GetJSON404

func (r ListIssueTemplatesResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListIssueTemplatesResponse) GetJSONDefault

func (r ListIssueTemplatesResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListIssueTemplatesResponse) Status

Status returns HTTPResponse.Status

func (ListIssueTemplatesResponse) StatusCode

func (r ListIssueTemplatesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListIssueVersionsResponse

type ListIssueVersionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TextVersionList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListIssueVersionsResponse

func ParseListIssueVersionsResponse(rsp *http.Response) (*ListIssueVersionsResponse, error)

ParseListIssueVersionsResponse parses an HTTP response from a ListIssueVersionsWithResponse call

func (ListIssueVersionsResponse) ContentType

func (r ListIssueVersionsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListIssueVersionsResponse) GetBody

func (r ListIssueVersionsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListIssueVersionsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListIssueVersionsResponse) GetJSON400

func (r ListIssueVersionsResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListIssueVersionsResponse) GetJSON401

func (r ListIssueVersionsResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListIssueVersionsResponse) GetJSON403

func (r ListIssueVersionsResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListIssueVersionsResponse) GetJSON404

func (r ListIssueVersionsResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListIssueVersionsResponse) GetJSONDefault

func (r ListIssueVersionsResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListIssueVersionsResponse) Status

func (r ListIssueVersionsResponse) Status() string

Status returns HTTPResponse.Status

func (ListIssueVersionsResponse) StatusCode

func (r ListIssueVersionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListIssuesParams

type ListIssuesParams struct {
	// Q Ricerca con la sintassi di I10: `is:open|closed`, `reason:completed|not_planned|duplicate`, `label:"nome"`, `assignee:utente|@me|@agents`, `author:`, `milestone:`, `no:label|assignee|milestone`, `repo:owner/nome`, `org:`, piu' testo libero.
	Q      *IssueQueryParam       `form:"q,omitempty" json:"q,omitempty"`
	State  *ListIssuesParamsState `form:"state,omitempty" json:"state,omitempty"`
	Reason *IssueReasonFilter     `form:"reason,omitempty" json:"reason,omitempty"`

	// Labels Nomi di etichette separati da virgola; la issue le ha tutte.
	Labels *IssueLabelsFilter `form:"labels,omitempty" json:"labels,omitempty"`

	// Assignee Nome utente, `@me`, `@agents` (assegnata a un agente) o `none`.
	Assignee *IssueAssigneeFilter `form:"assignee,omitempty" json:"assignee,omitempty"`
	Author   *IssueAuthorFilter   `form:"author,omitempty" json:"author,omitempty"`

	// Milestone Numero della milestone, o `none`.
	Milestone *IssueMilestoneFilter `form:"milestone,omitempty" json:"milestone,omitempty"`

	// Sort Ordinamento decrescente; `relevance` solo con testo libero in `q` (altrimenti 422).
	Sort    *ListIssuesParamsSort `form:"sort,omitempty" json:"sort,omitempty"`
	Page    *PageParam            `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageParam         `form:"perPage,omitempty" json:"perPage,omitempty"`
}

ListIssuesParams defines parameters for ListIssues.

type ListIssuesParamsSort

type ListIssuesParamsSort string

ListIssuesParamsSort defines parameters for ListIssues.

const (
	ListIssuesParamsSortComments  ListIssuesParamsSort = "comments"
	ListIssuesParamsSortCreated   ListIssuesParamsSort = "created"
	ListIssuesParamsSortRelevance ListIssuesParamsSort = "relevance"
	ListIssuesParamsSortUpdated   ListIssuesParamsSort = "updated"
)

Defines values for ListIssuesParamsSort.

func (ListIssuesParamsSort) Valid

func (e ListIssuesParamsSort) Valid() bool

Valid indicates whether the value is a known member of the ListIssuesParamsSort enum.

type ListIssuesParamsState

type ListIssuesParamsState string

ListIssuesParamsState defines parameters for ListIssues.

const (
	ListIssuesParamsStateAll    ListIssuesParamsState = "all"
	ListIssuesParamsStateClosed ListIssuesParamsState = "closed"
	ListIssuesParamsStateOpen   ListIssuesParamsState = "open"
)

Defines values for ListIssuesParamsState.

func (ListIssuesParamsState) Valid

func (e ListIssuesParamsState) Valid() bool

Valid indicates whether the value is a known member of the ListIssuesParamsState enum.

type ListIssuesResponse

type ListIssuesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *IssueList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListIssuesResponse

func ParseListIssuesResponse(rsp *http.Response) (*ListIssuesResponse, error)

ParseListIssuesResponse parses an HTTP response from a ListIssuesWithResponse call

func (ListIssuesResponse) ContentType

func (r ListIssuesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListIssuesResponse) GetBody

func (r ListIssuesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListIssuesResponse) GetJSON200

func (r ListIssuesResponse) GetJSON200() *IssueList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListIssuesResponse) GetJSON400

func (r ListIssuesResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListIssuesResponse) GetJSON401

func (r ListIssuesResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListIssuesResponse) GetJSON403

func (r ListIssuesResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListIssuesResponse) GetJSON404

func (r ListIssuesResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListIssuesResponse) GetJSON422

func (r ListIssuesResponse) GetJSON422() *UnprocessableEntity

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (ListIssuesResponse) GetJSONDefault

func (r ListIssuesResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListIssuesResponse) Status

func (r ListIssuesResponse) Status() string

Status returns HTTPResponse.Status

func (ListIssuesResponse) StatusCode

func (r ListIssuesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListLabelsParams

type ListLabelsParams struct {
	Page    *PageParam    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
}

ListLabelsParams defines parameters for ListLabels.

type ListLabelsResponse

type ListLabelsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *LabelList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListLabelsResponse

func ParseListLabelsResponse(rsp *http.Response) (*ListLabelsResponse, error)

ParseListLabelsResponse parses an HTTP response from a ListLabelsWithResponse call

func (ListLabelsResponse) ContentType

func (r ListLabelsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListLabelsResponse) GetBody

func (r ListLabelsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListLabelsResponse) GetJSON200

func (r ListLabelsResponse) GetJSON200() *LabelList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListLabelsResponse) GetJSON400

func (r ListLabelsResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListLabelsResponse) GetJSON401

func (r ListLabelsResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListLabelsResponse) GetJSON403

func (r ListLabelsResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListLabelsResponse) GetJSON404

func (r ListLabelsResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListLabelsResponse) GetJSONDefault

func (r ListLabelsResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListLabelsResponse) Status

func (r ListLabelsResponse) Status() string

Status returns HTTPResponse.Status

func (ListLabelsResponse) StatusCode

func (r ListLabelsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListMilestonesParams

type ListMilestonesParams struct {
	State   *ListMilestonesParamsState `form:"state,omitempty" json:"state,omitempty"`
	Page    *PageParam                 `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageParam              `form:"perPage,omitempty" json:"perPage,omitempty"`
}

ListMilestonesParams defines parameters for ListMilestones.

type ListMilestonesParamsState

type ListMilestonesParamsState string

ListMilestonesParamsState defines parameters for ListMilestones.

const (
	ListMilestonesParamsStateAll    ListMilestonesParamsState = "all"
	ListMilestonesParamsStateClosed ListMilestonesParamsState = "closed"
	ListMilestonesParamsStateOpen   ListMilestonesParamsState = "open"
)

Defines values for ListMilestonesParamsState.

func (ListMilestonesParamsState) Valid

func (e ListMilestonesParamsState) Valid() bool

Valid indicates whether the value is a known member of the ListMilestonesParamsState enum.

type ListMilestonesResponse

type ListMilestonesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *MilestoneList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListMilestonesResponse

func ParseListMilestonesResponse(rsp *http.Response) (*ListMilestonesResponse, error)

ParseListMilestonesResponse parses an HTTP response from a ListMilestonesWithResponse call

func (ListMilestonesResponse) ContentType

func (r ListMilestonesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListMilestonesResponse) GetBody

func (r ListMilestonesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListMilestonesResponse) GetJSON200

func (r ListMilestonesResponse) GetJSON200() *MilestoneList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListMilestonesResponse) GetJSON400

func (r ListMilestonesResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListMilestonesResponse) GetJSON401

func (r ListMilestonesResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListMilestonesResponse) GetJSON403

func (r ListMilestonesResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListMilestonesResponse) GetJSON404

func (r ListMilestonesResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListMilestonesResponse) GetJSONDefault

func (r ListMilestonesResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListMilestonesResponse) Status

func (r ListMilestonesResponse) Status() string

Status returns HTTPResponse.Status

func (ListMilestonesResponse) StatusCode

func (r ListMilestonesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListNotificationsParams

type ListNotificationsParams struct {
	// Reason Uno o piu' motivi (`NotificationReason`) separati da virgola, es. `assigned,mentioned`. Un motivo sconosciuto: 400.
	Reason *NotificationReasonFilter     `form:"reason,omitempty" json:"reason,omitempty"`
	State  *ListNotificationsParamsState `form:"state,omitempty" json:"state,omitempty"`

	// Repo Solo le notifiche di un repo, `owner/repo`.
	Repo    *NotificationRepoFilter `form:"repo,omitempty" json:"repo,omitempty"`
	Page    *PageParam              `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageParam           `form:"perPage,omitempty" json:"perPage,omitempty"`
}

ListNotificationsParams defines parameters for ListNotifications.

type ListNotificationsParamsState

type ListNotificationsParamsState string

ListNotificationsParamsState defines parameters for ListNotifications.

const (
	ListNotificationsParamsStateAll      ListNotificationsParamsState = "all"
	ListNotificationsParamsStateArchived ListNotificationsParamsState = "archived"
	ListNotificationsParamsStateRead     ListNotificationsParamsState = "read"
	ListNotificationsParamsStateUnread   ListNotificationsParamsState = "unread"
)

Defines values for ListNotificationsParamsState.

func (ListNotificationsParamsState) Valid

Valid indicates whether the value is a known member of the ListNotificationsParamsState enum.

type ListNotificationsResponse

type ListNotificationsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *NotificationList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListNotificationsResponse

func ParseListNotificationsResponse(rsp *http.Response) (*ListNotificationsResponse, error)

ParseListNotificationsResponse parses an HTTP response from a ListNotificationsWithResponse call

func (ListNotificationsResponse) ContentType

func (r ListNotificationsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListNotificationsResponse) GetBody

func (r ListNotificationsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListNotificationsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListNotificationsResponse) GetJSON400

func (r ListNotificationsResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListNotificationsResponse) GetJSON401

func (r ListNotificationsResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListNotificationsResponse) GetJSON403

func (r ListNotificationsResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListNotificationsResponse) GetJSONDefault

func (r ListNotificationsResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListNotificationsResponse) Status

func (r ListNotificationsResponse) Status() string

Status returns HTTPResponse.Status

func (ListNotificationsResponse) StatusCode

func (r ListNotificationsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListOidcProvidersResponse

type ListOidcProvidersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *OidcProviderList
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListOidcProvidersResponse

func ParseListOidcProvidersResponse(rsp *http.Response) (*ListOidcProvidersResponse, error)

ParseListOidcProvidersResponse parses an HTTP response from a ListOidcProvidersWithResponse call

func (ListOidcProvidersResponse) ContentType

func (r ListOidcProvidersResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListOidcProvidersResponse) GetBody

func (r ListOidcProvidersResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListOidcProvidersResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListOidcProvidersResponse) GetJSONDefault

func (r ListOidcProvidersResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListOidcProvidersResponse) Status

func (r ListOidcProvidersResponse) Status() string

Status returns HTTPResponse.Status

func (ListOidcProvidersResponse) StatusCode

func (r ListOidcProvidersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListOrgMembersParams

type ListOrgMembersParams struct {
	Page    *PageParam    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
}

ListOrgMembersParams defines parameters for ListOrgMembers.

type ListOrgMembersResponse

type ListOrgMembersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *OrgMemberList
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListOrgMembersResponse

func ParseListOrgMembersResponse(rsp *http.Response) (*ListOrgMembersResponse, error)

ParseListOrgMembersResponse parses an HTTP response from a ListOrgMembersWithResponse call

func (ListOrgMembersResponse) ContentType

func (r ListOrgMembersResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListOrgMembersResponse) GetBody

func (r ListOrgMembersResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListOrgMembersResponse) GetJSON200

func (r ListOrgMembersResponse) GetJSON200() *OrgMemberList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListOrgMembersResponse) GetJSON401

func (r ListOrgMembersResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListOrgMembersResponse) GetJSON403

func (r ListOrgMembersResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListOrgMembersResponse) GetJSON404

func (r ListOrgMembersResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListOrgMembersResponse) GetJSONDefault

func (r ListOrgMembersResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListOrgMembersResponse) Status

func (r ListOrgMembersResponse) Status() string

Status returns HTTPResponse.Status

func (ListOrgMembersResponse) StatusCode

func (r ListOrgMembersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListOrgOwnersResponse

type ListOrgOwnersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *OrgOwnersResult
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListOrgOwnersResponse

func ParseListOrgOwnersResponse(rsp *http.Response) (*ListOrgOwnersResponse, error)

ParseListOrgOwnersResponse parses an HTTP response from a ListOrgOwnersWithResponse call

func (ListOrgOwnersResponse) ContentType

func (r ListOrgOwnersResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListOrgOwnersResponse) GetBody

func (r ListOrgOwnersResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListOrgOwnersResponse) GetJSON200

func (r ListOrgOwnersResponse) GetJSON200() *OrgOwnersResult

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListOrgOwnersResponse) GetJSON401

func (r ListOrgOwnersResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListOrgOwnersResponse) GetJSON404

func (r ListOrgOwnersResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListOrgOwnersResponse) GetJSONDefault

func (r ListOrgOwnersResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListOrgOwnersResponse) Status

func (r ListOrgOwnersResponse) Status() string

Status returns HTTPResponse.Status

func (ListOrgOwnersResponse) StatusCode

func (r ListOrgOwnersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListOrgWebhookDeliveriesParams

type ListOrgWebhookDeliveriesParams struct {
	Status  *WebhookDeliveryStatus `form:"status,omitempty" json:"status,omitempty"`
	Page    *PageParam             `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageParam          `form:"perPage,omitempty" json:"perPage,omitempty"`
}

ListOrgWebhookDeliveriesParams defines parameters for ListOrgWebhookDeliveries.

type ListOrgWebhookDeliveriesResponse

type ListOrgWebhookDeliveriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WebhookDeliveryList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListOrgWebhookDeliveriesResponse

func ParseListOrgWebhookDeliveriesResponse(rsp *http.Response) (*ListOrgWebhookDeliveriesResponse, error)

ParseListOrgWebhookDeliveriesResponse parses an HTTP response from a ListOrgWebhookDeliveriesWithResponse call

func (ListOrgWebhookDeliveriesResponse) ContentType

func (r ListOrgWebhookDeliveriesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListOrgWebhookDeliveriesResponse) GetBody

func (r ListOrgWebhookDeliveriesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListOrgWebhookDeliveriesResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListOrgWebhookDeliveriesResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListOrgWebhookDeliveriesResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListOrgWebhookDeliveriesResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListOrgWebhookDeliveriesResponse) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListOrgWebhookDeliveriesResponse) GetJSONDefault

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListOrgWebhookDeliveriesResponse) Status

Status returns HTTPResponse.Status

func (ListOrgWebhookDeliveriesResponse) StatusCode

func (r ListOrgWebhookDeliveriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListOrgWebhooksParams

type ListOrgWebhooksParams struct {
	Page    *PageParam    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
}

ListOrgWebhooksParams defines parameters for ListOrgWebhooks.

type ListOrgWebhooksResponse

type ListOrgWebhooksResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WebhookList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListOrgWebhooksResponse

func ParseListOrgWebhooksResponse(rsp *http.Response) (*ListOrgWebhooksResponse, error)

ParseListOrgWebhooksResponse parses an HTTP response from a ListOrgWebhooksWithResponse call

func (ListOrgWebhooksResponse) ContentType

func (r ListOrgWebhooksResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListOrgWebhooksResponse) GetBody

func (r ListOrgWebhooksResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListOrgWebhooksResponse) GetJSON200

func (r ListOrgWebhooksResponse) GetJSON200() *WebhookList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListOrgWebhooksResponse) GetJSON400

func (r ListOrgWebhooksResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListOrgWebhooksResponse) GetJSON401

func (r ListOrgWebhooksResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListOrgWebhooksResponse) GetJSON403

func (r ListOrgWebhooksResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListOrgWebhooksResponse) GetJSON404

func (r ListOrgWebhooksResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListOrgWebhooksResponse) GetJSONDefault

func (r ListOrgWebhooksResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListOrgWebhooksResponse) Status

func (r ListOrgWebhooksResponse) Status() string

Status returns HTTPResponse.Status

func (ListOrgWebhooksResponse) StatusCode

func (r ListOrgWebhooksResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListOrganizationsParams

type ListOrganizationsParams struct {
	Page    *PageParam    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
}

ListOrganizationsParams defines parameters for ListOrganizations.

type ListOrganizationsResponse

type ListOrganizationsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *OrganizationList
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListOrganizationsResponse

func ParseListOrganizationsResponse(rsp *http.Response) (*ListOrganizationsResponse, error)

ParseListOrganizationsResponse parses an HTTP response from a ListOrganizationsWithResponse call

func (ListOrganizationsResponse) ContentType

func (r ListOrganizationsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListOrganizationsResponse) GetBody

func (r ListOrganizationsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListOrganizationsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListOrganizationsResponse) GetJSON401

func (r ListOrganizationsResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListOrganizationsResponse) GetJSON403

func (r ListOrganizationsResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListOrganizationsResponse) GetJSONDefault

func (r ListOrganizationsResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListOrganizationsResponse) Status

func (r ListOrganizationsResponse) Status() string

Status returns HTTPResponse.Status

func (ListOrganizationsResponse) StatusCode

func (r ListOrganizationsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListReadableResourcesJSONRequestBody

type ListReadableResourcesJSONRequestBody = ReadableResourcesInput

ListReadableResourcesJSONRequestBody defines body for ListReadableResources for application/json ContentType.

type ListReadableResourcesResponse

type ListReadableResourcesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ReadableResourcesResult
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListReadableResourcesResponse

func ParseListReadableResourcesResponse(rsp *http.Response) (*ListReadableResourcesResponse, error)

ParseListReadableResourcesResponse parses an HTTP response from a ListReadableResourcesWithResponse call

func (ListReadableResourcesResponse) ContentType

func (r ListReadableResourcesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListReadableResourcesResponse) GetBody

func (r ListReadableResourcesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListReadableResourcesResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListReadableResourcesResponse) GetJSON400

func (r ListReadableResourcesResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListReadableResourcesResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListReadableResourcesResponse) GetJSONDefault

func (r ListReadableResourcesResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListReadableResourcesResponse) Status

Status returns HTTPResponse.Status

func (ListReadableResourcesResponse) StatusCode

func (r ListReadableResourcesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListRepoMirrorRunsParams

type ListRepoMirrorRunsParams struct {
	Page    *PageParam    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
}

ListRepoMirrorRunsParams defines parameters for ListRepoMirrorRuns.

type ListRepoMirrorRunsResponse

type ListRepoMirrorRunsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *RepoMirrorRunList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListRepoMirrorRunsResponse

func ParseListRepoMirrorRunsResponse(rsp *http.Response) (*ListRepoMirrorRunsResponse, error)

ParseListRepoMirrorRunsResponse parses an HTTP response from a ListRepoMirrorRunsWithResponse call

func (ListRepoMirrorRunsResponse) ContentType

func (r ListRepoMirrorRunsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListRepoMirrorRunsResponse) GetBody

func (r ListRepoMirrorRunsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListRepoMirrorRunsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListRepoMirrorRunsResponse) GetJSON400

func (r ListRepoMirrorRunsResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListRepoMirrorRunsResponse) GetJSON401

func (r ListRepoMirrorRunsResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListRepoMirrorRunsResponse) GetJSON403

func (r ListRepoMirrorRunsResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListRepoMirrorRunsResponse) GetJSON404

func (r ListRepoMirrorRunsResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListRepoMirrorRunsResponse) GetJSONDefault

func (r ListRepoMirrorRunsResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListRepoMirrorRunsResponse) Status

Status returns HTTPResponse.Status

func (ListRepoMirrorRunsResponse) StatusCode

func (r ListRepoMirrorRunsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListRepoMirrorsParams

type ListRepoMirrorsParams struct {
	Page    *PageParam    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
}

ListRepoMirrorsParams defines parameters for ListRepoMirrors.

type ListRepoMirrorsResponse

type ListRepoMirrorsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *RepoMirrorList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListRepoMirrorsResponse

func ParseListRepoMirrorsResponse(rsp *http.Response) (*ListRepoMirrorsResponse, error)

ParseListRepoMirrorsResponse parses an HTTP response from a ListRepoMirrorsWithResponse call

func (ListRepoMirrorsResponse) ContentType

func (r ListRepoMirrorsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListRepoMirrorsResponse) GetBody

func (r ListRepoMirrorsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListRepoMirrorsResponse) GetJSON200

func (r ListRepoMirrorsResponse) GetJSON200() *RepoMirrorList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListRepoMirrorsResponse) GetJSON400

func (r ListRepoMirrorsResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListRepoMirrorsResponse) GetJSON401

func (r ListRepoMirrorsResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListRepoMirrorsResponse) GetJSON403

func (r ListRepoMirrorsResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListRepoMirrorsResponse) GetJSON404

func (r ListRepoMirrorsResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListRepoMirrorsResponse) GetJSONDefault

func (r ListRepoMirrorsResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListRepoMirrorsResponse) Status

func (r ListRepoMirrorsResponse) Status() string

Status returns HTTPResponse.Status

func (ListRepoMirrorsResponse) StatusCode

func (r ListRepoMirrorsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListRepoWebhookDeliveriesParams

type ListRepoWebhookDeliveriesParams struct {
	Status  *WebhookDeliveryStatus `form:"status,omitempty" json:"status,omitempty"`
	Page    *PageParam             `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageParam          `form:"perPage,omitempty" json:"perPage,omitempty"`
}

ListRepoWebhookDeliveriesParams defines parameters for ListRepoWebhookDeliveries.

type ListRepoWebhookDeliveriesResponse

type ListRepoWebhookDeliveriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WebhookDeliveryList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListRepoWebhookDeliveriesResponse

func ParseListRepoWebhookDeliveriesResponse(rsp *http.Response) (*ListRepoWebhookDeliveriesResponse, error)

ParseListRepoWebhookDeliveriesResponse parses an HTTP response from a ListRepoWebhookDeliveriesWithResponse call

func (ListRepoWebhookDeliveriesResponse) ContentType

func (r ListRepoWebhookDeliveriesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListRepoWebhookDeliveriesResponse) GetBody

GetBody returns the raw response body bytes

func (ListRepoWebhookDeliveriesResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListRepoWebhookDeliveriesResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListRepoWebhookDeliveriesResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListRepoWebhookDeliveriesResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListRepoWebhookDeliveriesResponse) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListRepoWebhookDeliveriesResponse) GetJSONDefault

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListRepoWebhookDeliveriesResponse) Status

Status returns HTTPResponse.Status

func (ListRepoWebhookDeliveriesResponse) StatusCode

func (r ListRepoWebhookDeliveriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListRepoWebhooksParams

type ListRepoWebhooksParams struct {
	Page    *PageParam    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
}

ListRepoWebhooksParams defines parameters for ListRepoWebhooks.

type ListRepoWebhooksResponse

type ListRepoWebhooksResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WebhookList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListRepoWebhooksResponse

func ParseListRepoWebhooksResponse(rsp *http.Response) (*ListRepoWebhooksResponse, error)

ParseListRepoWebhooksResponse parses an HTTP response from a ListRepoWebhooksWithResponse call

func (ListRepoWebhooksResponse) ContentType

func (r ListRepoWebhooksResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListRepoWebhooksResponse) GetBody

func (r ListRepoWebhooksResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListRepoWebhooksResponse) GetJSON200

func (r ListRepoWebhooksResponse) GetJSON200() *WebhookList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListRepoWebhooksResponse) GetJSON400

func (r ListRepoWebhooksResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListRepoWebhooksResponse) GetJSON401

func (r ListRepoWebhooksResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListRepoWebhooksResponse) GetJSON403

func (r ListRepoWebhooksResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListRepoWebhooksResponse) GetJSON404

func (r ListRepoWebhooksResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListRepoWebhooksResponse) GetJSONDefault

func (r ListRepoWebhooksResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListRepoWebhooksResponse) Status

func (r ListRepoWebhooksResponse) Status() string

Status returns HTTPResponse.Status

func (ListRepoWebhooksResponse) StatusCode

func (r ListRepoWebhooksResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListRepositoriesParams

type ListRepositoriesParams struct {
	// Owner Filtra per nome dell'utente o dell'organizzazione proprietaria.
	Owner   *RepoOwnerFilter `form:"owner,omitempty" json:"owner,omitempty"`
	Page    *PageParam       `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageParam    `form:"perPage,omitempty" json:"perPage,omitempty"`
}

ListRepositoriesParams defines parameters for ListRepositories.

type ListRepositoriesResponse

type ListRepositoriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *RepositoryList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListRepositoriesResponse

func ParseListRepositoriesResponse(rsp *http.Response) (*ListRepositoriesResponse, error)

ParseListRepositoriesResponse parses an HTTP response from a ListRepositoriesWithResponse call

func (ListRepositoriesResponse) ContentType

func (r ListRepositoriesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListRepositoriesResponse) GetBody

func (r ListRepositoriesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListRepositoriesResponse) GetJSON200

func (r ListRepositoriesResponse) GetJSON200() *RepositoryList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListRepositoriesResponse) GetJSON400

func (r ListRepositoriesResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListRepositoriesResponse) GetJSON401

func (r ListRepositoriesResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListRepositoriesResponse) GetJSON403

func (r ListRepositoriesResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListRepositoriesResponse) GetJSON404

func (r ListRepositoriesResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListRepositoriesResponse) GetJSON409

func (r ListRepositoriesResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (ListRepositoriesResponse) GetJSONDefault

func (r ListRepositoriesResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListRepositoriesResponse) Status

func (r ListRepositoriesResponse) Status() string

Status returns HTTPResponse.Status

func (ListRepositoriesResponse) StatusCode

func (r ListRepositoriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListRepositoryFilesParams

type ListRepositoryFilesParams struct {
	// Ref Branch, tag o sha (completo o prefisso di almeno 7 caratteri). Se manca vale il branch principale del repo (R4). Un nome non valido (vuoto, con `..`, spazi, caratteri di controllo o oltre 255 caratteri) risponde 400 `invalid_ref`; uno valido ma inesistente 404 `ref_not_found`. Se un nome e' sia branch sia tag vince il branch.
	Ref *RefParam `form:"ref,omitempty" json:"ref,omitempty"`
}

ListRepositoryFilesParams defines parameters for ListRepositoryFiles.

type ListRepositoryFilesResponse

type ListRepositoryFilesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *FileList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListRepositoryFilesResponse

func ParseListRepositoryFilesResponse(rsp *http.Response) (*ListRepositoryFilesResponse, error)

ParseListRepositoryFilesResponse parses an HTTP response from a ListRepositoryFilesWithResponse call

func (ListRepositoryFilesResponse) ContentType

func (r ListRepositoryFilesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListRepositoryFilesResponse) GetBody

func (r ListRepositoryFilesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListRepositoryFilesResponse) GetJSON200

func (r ListRepositoryFilesResponse) GetJSON200() *FileList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListRepositoryFilesResponse) GetJSON400

func (r ListRepositoryFilesResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListRepositoryFilesResponse) GetJSON401

func (r ListRepositoryFilesResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListRepositoryFilesResponse) GetJSON403

func (r ListRepositoryFilesResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListRepositoryFilesResponse) GetJSON404

func (r ListRepositoryFilesResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListRepositoryFilesResponse) GetJSONDefault

func (r ListRepositoryFilesResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListRepositoryFilesResponse) Status

Status returns HTTPResponse.Status

func (ListRepositoryFilesResponse) StatusCode

func (r ListRepositoryFilesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListResourceGrantsParams

type ListResourceGrantsParams struct {
	Page    *PageParam    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
}

ListResourceGrantsParams defines parameters for ListResourceGrants.

type ListResourceGrantsResponse

type ListResourceGrantsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GrantList
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListResourceGrantsResponse

func ParseListResourceGrantsResponse(rsp *http.Response) (*ListResourceGrantsResponse, error)

ParseListResourceGrantsResponse parses an HTTP response from a ListResourceGrantsWithResponse call

func (ListResourceGrantsResponse) ContentType

func (r ListResourceGrantsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListResourceGrantsResponse) GetBody

func (r ListResourceGrantsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListResourceGrantsResponse) GetJSON200

func (r ListResourceGrantsResponse) GetJSON200() *GrantList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListResourceGrantsResponse) GetJSON401

func (r ListResourceGrantsResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListResourceGrantsResponse) GetJSON403

func (r ListResourceGrantsResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListResourceGrantsResponse) GetJSON404

func (r ListResourceGrantsResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListResourceGrantsResponse) GetJSONDefault

func (r ListResourceGrantsResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListResourceGrantsResponse) Status

Status returns HTTPResponse.Status

func (ListResourceGrantsResponse) StatusCode

func (r ListResourceGrantsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListResourcesParams

type ListResourcesParams struct {
	// Type Filtra per tipo di risorsa (es. `repo`).
	Type    *ResourceTypeFilter `form:"type,omitempty" json:"type,omitempty"`
	Page    *PageParam          `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageParam       `form:"perPage,omitempty" json:"perPage,omitempty"`
}

ListResourcesParams defines parameters for ListResources.

type ListResourcesResponse

type ListResourcesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ResourceList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListResourcesResponse

func ParseListResourcesResponse(rsp *http.Response) (*ListResourcesResponse, error)

ParseListResourcesResponse parses an HTTP response from a ListResourcesWithResponse call

func (ListResourcesResponse) ContentType

func (r ListResourcesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListResourcesResponse) GetBody

func (r ListResourcesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListResourcesResponse) GetJSON200

func (r ListResourcesResponse) GetJSON200() *ResourceList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListResourcesResponse) GetJSON400

func (r ListResourcesResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListResourcesResponse) GetJSON401

func (r ListResourcesResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListResourcesResponse) GetJSONDefault

func (r ListResourcesResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListResourcesResponse) Status

func (r ListResourcesResponse) Status() string

Status returns HTTPResponse.Status

func (ListResourcesResponse) StatusCode

func (r ListResourcesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSshKeysParams

type ListSshKeysParams struct {
	Page    *PageParam    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
}

ListSshKeysParams defines parameters for ListSshKeys.

type ListSshKeysResponse

type ListSshKeysResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SshKeyList
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListSshKeysResponse

func ParseListSshKeysResponse(rsp *http.Response) (*ListSshKeysResponse, error)

ParseListSshKeysResponse parses an HTTP response from a ListSshKeysWithResponse call

func (ListSshKeysResponse) ContentType

func (r ListSshKeysResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListSshKeysResponse) GetBody

func (r ListSshKeysResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListSshKeysResponse) GetJSON200

func (r ListSshKeysResponse) GetJSON200() *SshKeyList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListSshKeysResponse) GetJSON401

func (r ListSshKeysResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListSshKeysResponse) GetJSON403

func (r ListSshKeysResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListSshKeysResponse) GetJSONDefault

func (r ListSshKeysResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListSshKeysResponse) Status

func (r ListSshKeysResponse) Status() string

Status returns HTTPResponse.Status

func (ListSshKeysResponse) StatusCode

func (r ListSshKeysResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListTeamMembersParams

type ListTeamMembersParams struct {
	Page    *PageParam    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
}

ListTeamMembersParams defines parameters for ListTeamMembers.

type ListTeamMembersResponse

type ListTeamMembersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TeamMemberList
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListTeamMembersResponse

func ParseListTeamMembersResponse(rsp *http.Response) (*ListTeamMembersResponse, error)

ParseListTeamMembersResponse parses an HTTP response from a ListTeamMembersWithResponse call

func (ListTeamMembersResponse) ContentType

func (r ListTeamMembersResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListTeamMembersResponse) GetBody

func (r ListTeamMembersResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListTeamMembersResponse) GetJSON200

func (r ListTeamMembersResponse) GetJSON200() *TeamMemberList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListTeamMembersResponse) GetJSON401

func (r ListTeamMembersResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListTeamMembersResponse) GetJSON403

func (r ListTeamMembersResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListTeamMembersResponse) GetJSON404

func (r ListTeamMembersResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListTeamMembersResponse) GetJSONDefault

func (r ListTeamMembersResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListTeamMembersResponse) Status

func (r ListTeamMembersResponse) Status() string

Status returns HTTPResponse.Status

func (ListTeamMembersResponse) StatusCode

func (r ListTeamMembersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListTeamsParams

type ListTeamsParams struct {
	Page    *PageParam    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
}

ListTeamsParams defines parameters for ListTeams.

type ListTeamsResponse

type ListTeamsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TeamList
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListTeamsResponse

func ParseListTeamsResponse(rsp *http.Response) (*ListTeamsResponse, error)

ParseListTeamsResponse parses an HTTP response from a ListTeamsWithResponse call

func (ListTeamsResponse) ContentType

func (r ListTeamsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListTeamsResponse) GetBody

func (r ListTeamsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListTeamsResponse) GetJSON200

func (r ListTeamsResponse) GetJSON200() *TeamList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListTeamsResponse) GetJSON401

func (r ListTeamsResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListTeamsResponse) GetJSON403

func (r ListTeamsResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListTeamsResponse) GetJSON404

func (r ListTeamsResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListTeamsResponse) GetJSONDefault

func (r ListTeamsResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListTeamsResponse) Status

func (r ListTeamsResponse) Status() string

Status returns HTTPResponse.Status

func (ListTeamsResponse) StatusCode

func (r ListTeamsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListTokensParams

type ListTokensParams struct {
	Page    *PageParam    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
}

ListTokensParams defines parameters for ListTokens.

type ListTokensResponse

type ListTokensResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TokenList
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListTokensResponse

func ParseListTokensResponse(rsp *http.Response) (*ListTokensResponse, error)

ParseListTokensResponse parses an HTTP response from a ListTokensWithResponse call

func (ListTokensResponse) ContentType

func (r ListTokensResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListTokensResponse) GetBody

func (r ListTokensResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListTokensResponse) GetJSON200

func (r ListTokensResponse) GetJSON200() *TokenList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListTokensResponse) GetJSON401

func (r ListTokensResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListTokensResponse) GetJSON403

func (r ListTokensResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListTokensResponse) GetJSONDefault

func (r ListTokensResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListTokensResponse) Status

func (r ListTokensResponse) Status() string

Status returns HTTPResponse.Status

func (ListTokensResponse) StatusCode

func (r ListTokensResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListUserTokensParams

type ListUserTokensParams struct {
	Page    *PageParam    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
}

ListUserTokensParams defines parameters for ListUserTokens.

type ListUserTokensResponse

type ListUserTokensResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TokenList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListUserTokensResponse

func ParseListUserTokensResponse(rsp *http.Response) (*ListUserTokensResponse, error)

ParseListUserTokensResponse parses an HTTP response from a ListUserTokensWithResponse call

func (ListUserTokensResponse) ContentType

func (r ListUserTokensResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListUserTokensResponse) GetBody

func (r ListUserTokensResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListUserTokensResponse) GetJSON200

func (r ListUserTokensResponse) GetJSON200() *TokenList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListUserTokensResponse) GetJSON400

func (r ListUserTokensResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListUserTokensResponse) GetJSON401

func (r ListUserTokensResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListUserTokensResponse) GetJSON403

func (r ListUserTokensResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListUserTokensResponse) GetJSON404

func (r ListUserTokensResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListUserTokensResponse) GetJSON409

func (r ListUserTokensResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (ListUserTokensResponse) GetJSONDefault

func (r ListUserTokensResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListUserTokensResponse) Status

func (r ListUserTokensResponse) Status() string

Status returns HTTPResponse.Status

func (ListUserTokensResponse) StatusCode

func (r ListUserTokensResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListUsersParams

type ListUsersParams struct {
	// Q Prefisso di username o nome visualizzato.
	Q       *string       `form:"q,omitempty" json:"q,omitempty"`
	Page    *PageParam    `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageParam `form:"perPage,omitempty" json:"perPage,omitempty"`
}

ListUsersParams defines parameters for ListUsers.

type ListUsersResponse

type ListUsersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *UserList
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseListUsersResponse

func ParseListUsersResponse(rsp *http.Response) (*ListUsersResponse, error)

ParseListUsersResponse parses an HTTP response from a ListUsersWithResponse call

func (ListUsersResponse) ContentType

func (r ListUsersResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListUsersResponse) GetBody

func (r ListUsersResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListUsersResponse) GetJSON200

func (r ListUsersResponse) GetJSON200() *UserList

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListUsersResponse) GetJSON401

func (r ListUsersResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListUsersResponse) GetJSON403

func (r ListUsersResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListUsersResponse) GetJSONDefault

func (r ListUsersResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListUsersResponse) Status

func (r ListUsersResponse) Status() string

Status returns HTTPResponse.Status

func (ListUsersResponse) StatusCode

func (r ListUsersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LockIssueInput

type LockIssueInput struct {
	// Reason Motivo facoltativo, mostrato nella cronologia.
	Reason *string `json:"reason,omitempty"`
}

LockIssueInput defines model for LockIssueInput.

type LockIssueJSONRequestBody

type LockIssueJSONRequestBody = LockIssueInput

LockIssueJSONRequestBody defines body for LockIssue for application/json ContentType.

type LockIssueResponse

type LockIssueResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Issue
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseLockIssueResponse

func ParseLockIssueResponse(rsp *http.Response) (*LockIssueResponse, error)

ParseLockIssueResponse parses an HTTP response from a LockIssueWithResponse call

func (LockIssueResponse) ContentType

func (r LockIssueResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (LockIssueResponse) GetBody

func (r LockIssueResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (LockIssueResponse) GetJSON200

func (r LockIssueResponse) GetJSON200() *Issue

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (LockIssueResponse) GetJSON400

func (r LockIssueResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (LockIssueResponse) GetJSON401

func (r LockIssueResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (LockIssueResponse) GetJSON403

func (r LockIssueResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (LockIssueResponse) GetJSON404

func (r LockIssueResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (LockIssueResponse) GetJSON409

func (r LockIssueResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (LockIssueResponse) GetJSON422

func (r LockIssueResponse) GetJSON422() *UnprocessableEntity

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (LockIssueResponse) GetJSONDefault

func (r LockIssueResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (LockIssueResponse) Status

func (r LockIssueResponse) Status() string

Status returns HTTPResponse.Status

func (LockIssueResponse) StatusCode

func (r LockIssueResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LoginInput

type LoginInput struct {
	Password *string `json:"password,omitempty"`

	// Username Username oppure email.
	Username string `json:"username"`
}

LoginInput defines model for LoginInput.

type LoginJSONRequestBody

type LoginJSONRequestBody = LoginInput

LoginJSONRequestBody defines body for Login for application/json ContentType.

type LoginResponse

type LoginResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CurrentSession
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *TooManyRequests
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *LoginResponse200Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *LoginResponse429Headers
}

func ParseLoginResponse

func ParseLoginResponse(rsp *http.Response) (*LoginResponse, error)

ParseLoginResponse parses an HTTP response from a LoginWithResponse call

func (LoginResponse) ContentType

func (r LoginResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (LoginResponse) GetBody

func (r LoginResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (LoginResponse) GetJSON200

func (r LoginResponse) GetJSON200() *CurrentSession

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (LoginResponse) GetJSON400

func (r LoginResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (LoginResponse) GetJSON401

func (r LoginResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (LoginResponse) GetJSON422

func (r LoginResponse) GetJSON422() *UnprocessableEntity

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (LoginResponse) GetJSON429

func (r LoginResponse) GetJSON429() *TooManyRequests

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (LoginResponse) GetJSONDefault

func (r LoginResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (LoginResponse) Status

func (r LoginResponse) Status() string

Status returns HTTPResponse.Status

func (LoginResponse) StatusCode

func (r LoginResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LoginResponse200Headers

type LoginResponse200Headers struct {
	SetCookie *string
}

LoginResponse200Headers the declared response headers of an HTTP 200 response for Login

type LoginResponse429Headers

type LoginResponse429Headers struct {
	RetryAfter *int
}

LoginResponse429Headers the declared response headers of an HTTP 429 response for Login

type LogoutResponse

type LogoutResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseLogoutResponse

func ParseLogoutResponse(rsp *http.Response) (*LogoutResponse, error)

ParseLogoutResponse parses an HTTP response from a LogoutWithResponse call

func (LogoutResponse) ContentType

func (r LogoutResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (LogoutResponse) GetBody

func (r LogoutResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (LogoutResponse) GetJSON401

func (r LogoutResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (LogoutResponse) GetJSONDefault

func (r LogoutResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (LogoutResponse) Status

func (r LogoutResponse) Status() string

Status returns HTTPResponse.Status

func (LogoutResponse) StatusCode

func (r LogoutResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LookupEmailsInput

type LookupEmailsInput struct {
	Emails []string `json:"emails"`
}

LookupEmailsInput defines model for LookupEmailsInput.

type LookupEmailsResult

type LookupEmailsResult struct {
	// Users Solo le email che corrispondono a un utente; le altre mancano.
	Users []struct {
		AvatarUrl *string                     `json:"avatarUrl"`
		Email     string                      `json:"email"`
		Id        openapi_types.UUID          `json:"id"`
		Kind      LookupEmailsResultUsersKind `json:"kind"`

		// Username Nome breve in minuscolo (username, organizzazione, team, provider): lettere minuscole, cifre e trattini, 1-39 caratteri, inizia e finisce con un carattere alfanumerico.
		//
		//
		// Example: alice
		Username Name `json:"username"`
	} `json:"users"`
}

LookupEmailsResult defines model for LookupEmailsResult.

type LookupEmailsResultUsersKind

type LookupEmailsResultUsersKind string

LookupEmailsResultUsersKind defines model for LookupEmailsResult.Users.Kind.

const (
	LookupEmailsResultUsersKindAgent LookupEmailsResultUsersKind = "agent"
	LookupEmailsResultUsersKindHuman LookupEmailsResultUsersKind = "human"
)

Defines values for LookupEmailsResultUsersKind.

func (LookupEmailsResultUsersKind) Valid

Valid indicates whether the value is a known member of the LookupEmailsResultUsersKind enum.

type LookupIdsInput

type LookupIdsInput struct {
	Ids []openapi_types.UUID `json:"ids"`
}

LookupIdsInput defines model for LookupIdsInput.

type LookupIdsResult

type LookupIdsResult struct {
	Users []struct {
		// Email Email dell'utente, se ne ha una (M-06/F, C5: core la usa per le notifiche email, mai per gli agenti). Assente senza email.
		Email *string                  `json:"email,omitempty"`
		Id    openapi_types.UUID       `json:"id"`
		Kind  LookupIdsResultUsersKind `json:"kind"`

		// Username Nome breve in minuscolo (username, organizzazione, team, provider): lettere minuscole, cifre e trattini, 1-39 caratteri, inizia e finisce con un carattere alfanumerico.
		//
		//
		// Example: alice
		Username Name `json:"username"`
	} `json:"users"`
}

LookupIdsResult defines model for LookupIdsResult.

type LookupIdsResultUsersKind

type LookupIdsResultUsersKind string

LookupIdsResultUsersKind defines model for LookupIdsResult.Users.Kind.

const (
	LookupIdsResultUsersKindAgent LookupIdsResultUsersKind = "agent"
	LookupIdsResultUsersKindHuman LookupIdsResultUsersKind = "human"
)

Defines values for LookupIdsResultUsersKind.

func (LookupIdsResultUsersKind) Valid

func (e LookupIdsResultUsersKind) Valid() bool

Valid indicates whether the value is a known member of the LookupIdsResultUsersKind enum.

type LookupSshKeyResponse

type LookupSshKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SshKeyLookup
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseLookupSshKeyResponse

func ParseLookupSshKeyResponse(rsp *http.Response) (*LookupSshKeyResponse, error)

ParseLookupSshKeyResponse parses an HTTP response from a LookupSshKeyWithResponse call

func (LookupSshKeyResponse) ContentType

func (r LookupSshKeyResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (LookupSshKeyResponse) GetBody

func (r LookupSshKeyResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (LookupSshKeyResponse) GetJSON200

func (r LookupSshKeyResponse) GetJSON200() *SshKeyLookup

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (LookupSshKeyResponse) GetJSON401

func (r LookupSshKeyResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (LookupSshKeyResponse) GetJSON404

func (r LookupSshKeyResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (LookupSshKeyResponse) GetJSONDefault

func (r LookupSshKeyResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (LookupSshKeyResponse) Status

func (r LookupSshKeyResponse) Status() string

Status returns HTTPResponse.Status

func (LookupSshKeyResponse) StatusCode

func (r LookupSshKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LookupUsersByEmailJSONRequestBody

type LookupUsersByEmailJSONRequestBody = LookupEmailsInput

LookupUsersByEmailJSONRequestBody defines body for LookupUsersByEmail for application/json ContentType.

type LookupUsersByEmailResponse

type LookupUsersByEmailResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *LookupEmailsResult
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseLookupUsersByEmailResponse

func ParseLookupUsersByEmailResponse(rsp *http.Response) (*LookupUsersByEmailResponse, error)

ParseLookupUsersByEmailResponse parses an HTTP response from a LookupUsersByEmailWithResponse call

func (LookupUsersByEmailResponse) ContentType

func (r LookupUsersByEmailResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (LookupUsersByEmailResponse) GetBody

func (r LookupUsersByEmailResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (LookupUsersByEmailResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (LookupUsersByEmailResponse) GetJSON400

func (r LookupUsersByEmailResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (LookupUsersByEmailResponse) GetJSON401

func (r LookupUsersByEmailResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (LookupUsersByEmailResponse) GetJSONDefault

func (r LookupUsersByEmailResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (LookupUsersByEmailResponse) Status

Status returns HTTPResponse.Status

func (LookupUsersByEmailResponse) StatusCode

func (r LookupUsersByEmailResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LookupUsersByIdsJSONRequestBody

type LookupUsersByIdsJSONRequestBody = LookupIdsInput

LookupUsersByIdsJSONRequestBody defines body for LookupUsersByIds for application/json ContentType.

type LookupUsersByIdsResponse

type LookupUsersByIdsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *LookupIdsResult
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseLookupUsersByIdsResponse

func ParseLookupUsersByIdsResponse(rsp *http.Response) (*LookupUsersByIdsResponse, error)

ParseLookupUsersByIdsResponse parses an HTTP response from a LookupUsersByIdsWithResponse call

func (LookupUsersByIdsResponse) ContentType

func (r LookupUsersByIdsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (LookupUsersByIdsResponse) GetBody

func (r LookupUsersByIdsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (LookupUsersByIdsResponse) GetJSON200

func (r LookupUsersByIdsResponse) GetJSON200() *LookupIdsResult

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (LookupUsersByIdsResponse) GetJSON400

func (r LookupUsersByIdsResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (LookupUsersByIdsResponse) GetJSON401

func (r LookupUsersByIdsResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (LookupUsersByIdsResponse) GetJSONDefault

func (r LookupUsersByIdsResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (LookupUsersByIdsResponse) Status

func (r LookupUsersByIdsResponse) Status() string

Status returns HTTPResponse.Status

func (LookupUsersByIdsResponse) StatusCode

func (r LookupUsersByIdsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MarkAllNotificationsReadParams

type MarkAllNotificationsReadParams struct {
	// Reason Uno o piu' motivi (`NotificationReason`) separati da virgola, es. `assigned,mentioned`. Un motivo sconosciuto: 400.
	Reason *NotificationReasonFilter `form:"reason,omitempty" json:"reason,omitempty"`

	// Repo Solo le notifiche di un repo, `owner/repo`.
	Repo *NotificationRepoFilter `form:"repo,omitempty" json:"repo,omitempty"`
}

MarkAllNotificationsReadParams defines parameters for MarkAllNotificationsRead.

type MarkAllNotificationsReadResponse

type MarkAllNotificationsReadResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *MarkedNotifications
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseMarkAllNotificationsReadResponse

func ParseMarkAllNotificationsReadResponse(rsp *http.Response) (*MarkAllNotificationsReadResponse, error)

ParseMarkAllNotificationsReadResponse parses an HTTP response from a MarkAllNotificationsReadWithResponse call

func (MarkAllNotificationsReadResponse) ContentType

func (r MarkAllNotificationsReadResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (MarkAllNotificationsReadResponse) GetBody

func (r MarkAllNotificationsReadResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (MarkAllNotificationsReadResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (MarkAllNotificationsReadResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (MarkAllNotificationsReadResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (MarkAllNotificationsReadResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (MarkAllNotificationsReadResponse) GetJSONDefault

GetJSONDefault returns the response for an HTTP default `application/json` response

func (MarkAllNotificationsReadResponse) Status

Status returns HTTPResponse.Status

func (MarkAllNotificationsReadResponse) StatusCode

func (r MarkAllNotificationsReadResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MarkedNotifications

type MarkedNotifications struct {
	// Marked Quante notifiche sono passate da non letta a letta.
	Marked int `json:"marked"`
}

MarkedNotifications defines model for MarkedNotifications.

type Meta

type Meta struct {
	// ApiVersion Versione del contratto API (`info.version`).
	ApiVersion string `json:"api_version"`

	// ServerVersion Versione dell'installazione (tag dell'immagine del gateway).
	ServerVersion string `json:"server_version"`
}

Meta defines model for Meta.

type Milestone

type Milestone struct {
	ClosedAt *time.Time `json:"closedAt,omitempty"`

	// ClosedIssues Issues chiuse come `completed` (I2); le altre chiusure non contano.
	ClosedIssues int                 `json:"closedIssues"`
	CreatedAt    time.Time           `json:"createdAt"`
	Description  string              `json:"description"`
	DueOn        *openapi_types.Date `json:"dueOn,omitempty"`
	Number       int64               `json:"number"`

	// OpenIssues Issues aperte.
	OpenIssues int            `json:"openIssues"`
	State      MilestoneState `json:"state"`
	Title      string         `json:"title"`
	UpdatedAt  time.Time      `json:"updatedAt"`
}

Milestone defines model for Milestone.

type MilestoneList

type MilestoneList struct {
	Items   []Milestone `json:"items"`
	Page    int         `json:"page"`
	PerPage int         `json:"perPage"`
	Total   int         `json:"total"`
}

MilestoneList defines model for MilestoneList.

type MilestoneNumberParam

type MilestoneNumberParam = int64

MilestoneNumberParam defines model for MilestoneNumberParam.

type MilestoneState

type MilestoneState string

MilestoneState defines model for Milestone.State.

const (
	MilestoneStateClosed MilestoneState = "closed"
	MilestoneStateOpen   MilestoneState = "open"
)

Defines values for MilestoneState.

func (MilestoneState) Valid

func (e MilestoneState) Valid() bool

Valid indicates whether the value is a known member of the MilestoneState enum.

type MilestoneStateFilter

type MilestoneStateFilter string

MilestoneStateFilter defines model for MilestoneStateFilter.

const (
	MilestoneStateFilterAll    MilestoneStateFilter = "all"
	MilestoneStateFilterClosed MilestoneStateFilter = "closed"
	MilestoneStateFilterOpen   MilestoneStateFilter = "open"
)

Defines values for MilestoneStateFilter.

func (MilestoneStateFilter) Valid

func (e MilestoneStateFilter) Valid() bool

Valid indicates whether the value is a known member of the MilestoneStateFilter enum.

type MirrorIdParam

type MirrorIdParam = openapi_types.UUID

MirrorIdParam defines model for MirrorIdParam.

type Name

type Name = string

Name Nome breve in minuscolo (username, organizzazione, team, provider): lettere minuscole, cifre e trattini, 1-39 caratteri, inizia e finisce con un carattere alfanumerico.

Example: alice

type NotFound

type NotFound = Error

NotFound Formato unico degli errori per tutta l'API pubblica. Codici comuni per stato: 400 `bad_request`; 401 `unauthenticated`, `invalid_credentials`; 403 `forbidden`, `insufficient_scope`, `password_change_required`; 429 `too_many_attempts`; 404 `not_found`; 409 `conflict` e varianti specifiche (`already_exists`, `last_admin`, `last_owner`, `ssh_key_in_use`, `oidc_identity_unlinked`); 422 `validation_failed` (`details.fields`). Le risposte 401 non distinguono mai "utente inesistente" da "password errata".

type Notification

type Notification struct {
	// Actor Chi ha causato la notifica; assente per gli eventi di sistema (es. chiusura da commit).
	Actor    *IssueUser `json:"actor,omitempty"`
	Archived bool       `json:"archived"`

	// CommentId Il commento che ha causato la notifica, se c'e'.
	CommentId *openapi_types.UUID `json:"commentId,omitempty"`
	CreatedAt time.Time           `json:"createdAt"`

	// Event Nome dell'evento di dominio da cui nasce (es. `issue.closed`, docs/events.md).
	//
	// Example: issue.closed
	Event  string             `json:"event"`
	Id     openapi_types.UUID `json:"id"`
	Issue  *NotificationIssue `json:"issue,omitempty"`
	Read   bool               `json:"read"`
	ReadAt *time.Time         `json:"readAt,omitempty"`

	// Reason Motivo (= tipo) di una notifica, usato dal filtro della casella e dalle preferenze email (C3, C5). `assigned`: la issue e' stata assegnata all'utente; `mentioned`: `@utente` in una issue o in un commento; `participating`: attivita' su una issue in cui l'utente e' autore o commentatore, o che gli e' assegnata; `subscribed`: attivita' su una issue seguita con Subscribe o su un repo in Watch `all`; `commit_linked`: un commit cita una issue seguita; `state_change`: chiusura o riapertura di una issue seguita (anche da commit); `webhook`: un webhook gestito dall'utente e' stato disattivato dai fallimenti (C7); `mirror`: un mirror in push di un repo di cui l'utente e' admin si e' fermato perche' la destinazione ha una storia diversa (V8).
	Reason     NotificationReason `json:"reason"`
	Repository *NotificationRepo  `json:"repository,omitempty"`

	// Summary Testo breve leggibile da persone, non contrattuale.
	Summary string               `json:"summary"`
	Webhook *NotificationWebhook `json:"webhook,omitempty"`
}

Notification defines model for Notification.

type NotificationIdParam

type NotificationIdParam = openapi_types.UUID

NotificationIdParam defines model for NotificationIdParam.

type NotificationIssue

type NotificationIssue struct {
	Number int64                  `json:"number"`
	State  NotificationIssueState `json:"state"`
	Title  string                 `json:"title"`
}

NotificationIssue defines model for NotificationIssue.

type NotificationIssueState

type NotificationIssueState string

NotificationIssueState defines model for NotificationIssue.State.

const (
	NotificationIssueStateClosed NotificationIssueState = "closed"
	NotificationIssueStateOpen   NotificationIssueState = "open"
)

Defines values for NotificationIssueState.

func (NotificationIssueState) Valid

func (e NotificationIssueState) Valid() bool

Valid indicates whether the value is a known member of the NotificationIssueState enum.

type NotificationList

type NotificationList struct {
	Items   []Notification `json:"items"`
	Page    int            `json:"page"`
	PerPage int            `json:"perPage"`
	Total   int            `json:"total"`

	// UnreadCount Notifiche non lette e non archiviate dell'utente (filtri `reason` e `repo` compresi).
	UnreadCount int `json:"unreadCount"`
}

NotificationList defines model for NotificationList.

type NotificationPreferences

type NotificationPreferences struct {
	// Email Per ogni tipo (`NotificationReason`) se arriva anche una email. Sono sempre presenti tutti i tipi.
	//
	// Example: {"assigned":true,"commit_linked":false,"mentioned":true,"mirror":false,"participating":false,"state_change":false,"subscribed":false,"webhook":false}
	Email map[string]bool `json:"email"`

	// EmailAvailable `false` senza SMTP configurato o per un agente: le email non partono (C4, C5).
	EmailAvailable bool `json:"emailAvailable"`
}

NotificationPreferences defines model for NotificationPreferences.

type NotificationReason

type NotificationReason string

NotificationReason Motivo (= tipo) di una notifica, usato dal filtro della casella e dalle preferenze email (C3, C5). `assigned`: la issue e' stata assegnata all'utente; `mentioned`: `@utente` in una issue o in un commento; `participating`: attivita' su una issue in cui l'utente e' autore o commentatore, o che gli e' assegnata; `subscribed`: attivita' su una issue seguita con Subscribe o su un repo in Watch `all`; `commit_linked`: un commit cita una issue seguita; `state_change`: chiusura o riapertura di una issue seguita (anche da commit); `webhook`: un webhook gestito dall'utente e' stato disattivato dai fallimenti (C7); `mirror`: un mirror in push di un repo di cui l'utente e' admin si e' fermato perche' la destinazione ha una storia diversa (V8).

const (
	NotificationReasonAssigned      NotificationReason = "assigned"
	NotificationReasonCommitLinked  NotificationReason = "commit_linked"
	NotificationReasonMentioned     NotificationReason = "mentioned"
	NotificationReasonMirror        NotificationReason = "mirror"
	NotificationReasonParticipating NotificationReason = "participating"
	NotificationReasonStateChange   NotificationReason = "state_change"
	NotificationReasonSubscribed    NotificationReason = "subscribed"
	NotificationReasonWebhook       NotificationReason = "webhook"
)

Defines values for NotificationReason.

func (NotificationReason) Valid

func (e NotificationReason) Valid() bool

Valid indicates whether the value is a known member of the NotificationReason enum.

type NotificationReasonFilter

type NotificationReasonFilter = string

NotificationReasonFilter Example: assigned,mentioned

type NotificationRepo

type NotificationRepo struct {
	// FullName `owner/repo`.
	FullName string             `json:"fullName"`
	Id       openapi_types.UUID `json:"id"`
}

NotificationRepo defines model for NotificationRepo.

type NotificationRepoFilter

type NotificationRepoFilter = string

NotificationRepoFilter defines model for NotificationRepoFilter.

type NotificationStateFilter

type NotificationStateFilter string

NotificationStateFilter defines model for NotificationStateFilter.

const (
	NotificationStateFilterAll      NotificationStateFilter = "all"
	NotificationStateFilterArchived NotificationStateFilter = "archived"
	NotificationStateFilterRead     NotificationStateFilter = "read"
	NotificationStateFilterUnread   NotificationStateFilter = "unread"
)

Defines values for NotificationStateFilter.

func (NotificationStateFilter) Valid

func (e NotificationStateFilter) Valid() bool

Valid indicates whether the value is a known member of the NotificationStateFilter enum.

type NotificationWebhook

type NotificationWebhook struct {
	Id    openapi_types.UUID `json:"id"`
	Scope WebhookScope       `json:"scope"`
	Url   string             `json:"url"`
}

NotificationWebhook Il webhook di una notifica `webhook`; assente se e' stato eliminato nel frattempo (la notifica sparisce con lui).

type OidcProvider

type OidcProvider struct {
	DisplayName string `json:"displayName"`

	// Slug Nome breve in minuscolo (username, organizzazione, team, provider): lettere minuscole, cifre e trattini, 1-39 caratteri, inizia e finisce con un carattere alfanumerico.
	//
	//
	// Example: alice
	Slug Name `json:"slug"`
}

OidcProvider defines model for OidcProvider.

type OidcProviderList

type OidcProviderList struct {
	Items []OidcProvider `json:"items"`
}

OidcProviderList defines model for OidcProviderList.

type OidcProviderParam

type OidcProviderParam = Name

OidcProviderParam Nome breve in minuscolo (username, organizzazione, team, provider): lettere minuscole, cifre e trattini, 1-39 caratteri, inizia e finisce con un carattere alfanumerico.

Example: alice

type OrgMember

type OrgMember struct {
	CreatedAt time.Time `json:"createdAt"`

	// Role `owner` gestisce organizzazione, team e membri; `member` no.
	Role OrgRole `json:"role"`

	// User Profilo utente. `email`, `isAdmin`, `isActive`, `createdAt` sono presenti solo per l'utente stesso e per gli amministratori.
	User User `json:"user"`
}

OrgMember defines model for OrgMember.

type OrgMemberList

type OrgMemberList struct {
	Items   []OrgMember `json:"items"`
	Page    int         `json:"page"`
	PerPage int         `json:"perPage"`
	Total   int         `json:"total"`
}

OrgMemberList defines model for OrgMemberList.

type OrgOwnersResult

type OrgOwnersResult struct {
	Owners []openapi_types.UUID `json:"owners"`
}

OrgOwnersResult defines model for OrgOwnersResult.

type OrgParam

type OrgParam = Name

OrgParam Nome breve in minuscolo (username, organizzazione, team, provider): lettere minuscole, cifre e trattini, 1-39 caratteri, inizia e finisce con un carattere alfanumerico.

Example: alice

type OrgRole

type OrgRole string

OrgRole `owner` gestisce organizzazione, team e membri; `member` no.

const (
	OrgRoleMember OrgRole = "member"
	OrgRoleOwner  OrgRole = "owner"
)

Defines values for OrgRole.

func (OrgRole) Valid

func (e OrgRole) Valid() bool

Valid indicates whether the value is a known member of the OrgRole enum.

type Organization

type Organization struct {
	CreatedAt   *time.Time          `json:"createdAt,omitempty"`
	Description *string             `json:"description,omitempty"`
	DisplayName *string             `json:"displayName,omitempty"`
	Id          *openapi_types.UUID `json:"id,omitempty"`

	// Name Nome breve in minuscolo (username, organizzazione, team, provider): lettere minuscole, cifre e trattini, 1-39 caratteri, inizia e finisce con un carattere alfanumerico.
	//
	//
	// Example: alice
	Name Name `json:"name"`
}

Organization defines model for Organization.

type OrganizationList

type OrganizationList struct {
	Items   []Organization `json:"items"`
	Page    int            `json:"page"`
	PerPage int            `json:"perPage"`
	Total   int            `json:"total"`
}

OrganizationList defines model for OrganizationList.

type OwnerRef

type OwnerRef struct {
	Id openapi_types.UUID `json:"id"`

	// Name Nome breve in minuscolo (username, organizzazione, team, provider): lettere minuscole, cifre e trattini, 1-39 caratteri, inizia e finisce con un carattere alfanumerico.
	//
	//
	// Example: alice
	Name Name      `json:"name"`
	Type OwnerType `json:"type"`
}

OwnerRef defines model for OwnerRef.

type OwnerType

type OwnerType string

OwnerType defines model for OwnerType.

const (
	OwnerTypeOrganization OwnerType = "organization"
	OwnerTypeUser         OwnerType = "user"
)

Defines values for OwnerType.

func (OwnerType) Valid

func (e OwnerType) Valid() bool

Valid indicates whether the value is a known member of the OwnerType enum.

type PageParam

type PageParam = int

PageParam defines model for PageParam.

type PatchFormatParam

type PatchFormatParam string

PatchFormatParam defines model for PatchFormatParam.

const (
	PatchFormatParamDiff  PatchFormatParam = "diff"
	PatchFormatParamPatch PatchFormatParam = "patch"
)

Defines values for PatchFormatParam.

func (PatchFormatParam) Valid

func (e PatchFormatParam) Valid() bool

Valid indicates whether the value is a known member of the PatchFormatParam enum.

type PathParam

type PathParam = string

PathParam defines model for PathParam.

type PayloadTooLarge

type PayloadTooLarge = Error

PayloadTooLarge Formato unico degli errori per tutta l'API pubblica. Codici comuni per stato: 400 `bad_request`; 401 `unauthenticated`, `invalid_credentials`; 403 `forbidden`, `insufficient_scope`, `password_change_required`; 429 `too_many_attempts`; 404 `not_found`; 409 `conflict` e varianti specifiche (`already_exists`, `last_admin`, `last_owner`, `ssh_key_in_use`, `oidc_identity_unlinked`); 422 `validation_failed` (`details.fields`). Le risposte 401 non distinguono mai "utente inesistente" da "password errata".

type PerPageParam

type PerPageParam = int

PerPageParam defines model for PerPageParam.

type Principal

type Principal struct {
	AuthMethod PrincipalAuthMethod `json:"authMethod"`

	// CredentialId Id della sessione o del token (per audit).
	CredentialId *openapi_types.UUID `json:"credentialId,omitempty"`
	ExpiresAt    *time.Time          `json:"expiresAt,omitempty"`
	IsAdmin      bool                `json:"isAdmin"`
	Kind         PrincipalKind       `json:"kind"`

	// MustChangePassword Vero per una sessione la cui password iniziale non e' ancora stata cambiata (vedi `CurrentSession.mustChangePassword`). `/internal/verify` risponde comunque `active` true: il gateway risponde 403 `password_change_required` a ogni rotta tranne `GET /auth/session`, `POST /auth/logout` e `PUT /users/{username}/password` sulla propria utenza. Assente equivale a falso.
	MustChangePassword *bool `json:"mustChangePassword,omitempty"`

	// Scopes Solo per i token; assenti per le sessioni.
	Scopes *[]TokenScope `json:"scopes,omitempty"`

	// TokenName Nome del token; presente solo con `authMethod` token.
	TokenName *string            `json:"tokenName,omitempty"`
	UserId    openapi_types.UUID `json:"userId"`

	// Username Nome breve in minuscolo (username, organizzazione, team, provider): lettere minuscole, cifre e trattini, 1-39 caratteri, inizia e finisce con un carattere alfanumerico.
	//
	//
	// Example: alice
	Username Name `json:"username"`
}

Principal Chi ha presentato la credenziale.

type PrincipalAuthMethod

type PrincipalAuthMethod string

PrincipalAuthMethod defines model for Principal.AuthMethod.

const (
	PrincipalAuthMethodOidc     PrincipalAuthMethod = "oidc"
	PrincipalAuthMethodPassword PrincipalAuthMethod = "password"
	PrincipalAuthMethodToken    PrincipalAuthMethod = "token"
)

Defines values for PrincipalAuthMethod.

func (PrincipalAuthMethod) Valid

func (e PrincipalAuthMethod) Valid() bool

Valid indicates whether the value is a known member of the PrincipalAuthMethod enum.

type PrincipalKind

type PrincipalKind string

PrincipalKind defines model for Principal.Kind.

const (
	PrincipalKindAgent PrincipalKind = "agent"
	PrincipalKindHuman PrincipalKind = "human"
)

Defines values for PrincipalKind.

func (PrincipalKind) Valid

func (e PrincipalKind) Valid() bool

Valid indicates whether the value is a known member of the PrincipalKind enum.

type PurgeResourceAccessResponse

type PurgeResourceAccessResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParsePurgeResourceAccessResponse

func ParsePurgeResourceAccessResponse(rsp *http.Response) (*PurgeResourceAccessResponse, error)

ParsePurgeResourceAccessResponse parses an HTTP response from a PurgeResourceAccessWithResponse call

func (PurgeResourceAccessResponse) ContentType

func (r PurgeResourceAccessResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PurgeResourceAccessResponse) GetBody

func (r PurgeResourceAccessResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (PurgeResourceAccessResponse) GetJSON400

func (r PurgeResourceAccessResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (PurgeResourceAccessResponse) GetJSON401

func (r PurgeResourceAccessResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (PurgeResourceAccessResponse) GetJSONDefault

func (r PurgeResourceAccessResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (PurgeResourceAccessResponse) Status

Status returns HTTPResponse.Status

func (PurgeResourceAccessResponse) StatusCode

func (r PurgeResourceAccessResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReactivateOrgWebhookResponse

type ReactivateOrgWebhookResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Webhook
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseReactivateOrgWebhookResponse

func ParseReactivateOrgWebhookResponse(rsp *http.Response) (*ReactivateOrgWebhookResponse, error)

ParseReactivateOrgWebhookResponse parses an HTTP response from a ReactivateOrgWebhookWithResponse call

func (ReactivateOrgWebhookResponse) ContentType

func (r ReactivateOrgWebhookResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ReactivateOrgWebhookResponse) GetBody

func (r ReactivateOrgWebhookResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ReactivateOrgWebhookResponse) GetJSON200

func (r ReactivateOrgWebhookResponse) GetJSON200() *Webhook

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ReactivateOrgWebhookResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ReactivateOrgWebhookResponse) GetJSON403

func (r ReactivateOrgWebhookResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ReactivateOrgWebhookResponse) GetJSON404

func (r ReactivateOrgWebhookResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ReactivateOrgWebhookResponse) GetJSON409

func (r ReactivateOrgWebhookResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (ReactivateOrgWebhookResponse) GetJSONDefault

func (r ReactivateOrgWebhookResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ReactivateOrgWebhookResponse) Status

Status returns HTTPResponse.Status

func (ReactivateOrgWebhookResponse) StatusCode

func (r ReactivateOrgWebhookResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReactivateRepoWebhookResponse

type ReactivateRepoWebhookResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Webhook
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseReactivateRepoWebhookResponse

func ParseReactivateRepoWebhookResponse(rsp *http.Response) (*ReactivateRepoWebhookResponse, error)

ParseReactivateRepoWebhookResponse parses an HTTP response from a ReactivateRepoWebhookWithResponse call

func (ReactivateRepoWebhookResponse) ContentType

func (r ReactivateRepoWebhookResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ReactivateRepoWebhookResponse) GetBody

func (r ReactivateRepoWebhookResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ReactivateRepoWebhookResponse) GetJSON200

func (r ReactivateRepoWebhookResponse) GetJSON200() *Webhook

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ReactivateRepoWebhookResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ReactivateRepoWebhookResponse) GetJSON403

func (r ReactivateRepoWebhookResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ReactivateRepoWebhookResponse) GetJSON404

func (r ReactivateRepoWebhookResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ReactivateRepoWebhookResponse) GetJSON409

func (r ReactivateRepoWebhookResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (ReactivateRepoWebhookResponse) GetJSONDefault

func (r ReactivateRepoWebhookResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ReactivateRepoWebhookResponse) Status

Status returns HTTPResponse.Status

func (ReactivateRepoWebhookResponse) StatusCode

func (r ReactivateRepoWebhookResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReadableResourcesInput

type ReadableResourcesInput struct {
	UserId openapi_types.UUID `json:"userId"`
}

ReadableResourcesInput defines model for ReadableResourcesInput.

type ReadableResourcesResult

type ReadableResourcesResult struct {
	All         bool                 `json:"all"`
	ResourceIds []openapi_types.UUID `json:"resourceIds"`
}

ReadableResourcesResult defines model for ReadableResourcesResult.

type RedeliverOrgWebhookDeliveryResponse

type RedeliverOrgWebhookDeliveryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *WebhookDelivery
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseRedeliverOrgWebhookDeliveryResponse

func ParseRedeliverOrgWebhookDeliveryResponse(rsp *http.Response) (*RedeliverOrgWebhookDeliveryResponse, error)

ParseRedeliverOrgWebhookDeliveryResponse parses an HTTP response from a RedeliverOrgWebhookDeliveryWithResponse call

func (RedeliverOrgWebhookDeliveryResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RedeliverOrgWebhookDeliveryResponse) GetBody

GetBody returns the raw response body bytes

func (RedeliverOrgWebhookDeliveryResponse) GetJSON202

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (RedeliverOrgWebhookDeliveryResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (RedeliverOrgWebhookDeliveryResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (RedeliverOrgWebhookDeliveryResponse) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (RedeliverOrgWebhookDeliveryResponse) GetJSONDefault

GetJSONDefault returns the response for an HTTP default `application/json` response

func (RedeliverOrgWebhookDeliveryResponse) Status

Status returns HTTPResponse.Status

func (RedeliverOrgWebhookDeliveryResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type RedeliverRepoWebhookDeliveryResponse

type RedeliverRepoWebhookDeliveryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *WebhookDelivery
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseRedeliverRepoWebhookDeliveryResponse

func ParseRedeliverRepoWebhookDeliveryResponse(rsp *http.Response) (*RedeliverRepoWebhookDeliveryResponse, error)

ParseRedeliverRepoWebhookDeliveryResponse parses an HTTP response from a RedeliverRepoWebhookDeliveryWithResponse call

func (RedeliverRepoWebhookDeliveryResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RedeliverRepoWebhookDeliveryResponse) GetBody

GetBody returns the raw response body bytes

func (RedeliverRepoWebhookDeliveryResponse) GetJSON202

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (RedeliverRepoWebhookDeliveryResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (RedeliverRepoWebhookDeliveryResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (RedeliverRepoWebhookDeliveryResponse) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (RedeliverRepoWebhookDeliveryResponse) GetJSONDefault

GetJSONDefault returns the response for an HTTP default `application/json` response

func (RedeliverRepoWebhookDeliveryResponse) Status

Status returns HTTPResponse.Status

func (RedeliverRepoWebhookDeliveryResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type RefAndPathParam

type RefAndPathParam = string

RefAndPathParam defines model for RefAndPathParam.

type RefParam

type RefParam = string

RefParam defines model for RefParam.

type RemoveOrgMemberResponse

type RemoveOrgMemberResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseRemoveOrgMemberResponse

func ParseRemoveOrgMemberResponse(rsp *http.Response) (*RemoveOrgMemberResponse, error)

ParseRemoveOrgMemberResponse parses an HTTP response from a RemoveOrgMemberWithResponse call

func (RemoveOrgMemberResponse) ContentType

func (r RemoveOrgMemberResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RemoveOrgMemberResponse) GetBody

func (r RemoveOrgMemberResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (RemoveOrgMemberResponse) GetJSON401

func (r RemoveOrgMemberResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (RemoveOrgMemberResponse) GetJSON403

func (r RemoveOrgMemberResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (RemoveOrgMemberResponse) GetJSON404

func (r RemoveOrgMemberResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (RemoveOrgMemberResponse) GetJSON409

func (r RemoveOrgMemberResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (RemoveOrgMemberResponse) GetJSONDefault

func (r RemoveOrgMemberResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (RemoveOrgMemberResponse) Status

func (r RemoveOrgMemberResponse) Status() string

Status returns HTTPResponse.Status

func (RemoveOrgMemberResponse) StatusCode

func (r RemoveOrgMemberResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RemoveTeamMemberResponse

type RemoveTeamMemberResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseRemoveTeamMemberResponse

func ParseRemoveTeamMemberResponse(rsp *http.Response) (*RemoveTeamMemberResponse, error)

ParseRemoveTeamMemberResponse parses an HTTP response from a RemoveTeamMemberWithResponse call

func (RemoveTeamMemberResponse) ContentType

func (r RemoveTeamMemberResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RemoveTeamMemberResponse) GetBody

func (r RemoveTeamMemberResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (RemoveTeamMemberResponse) GetJSON401

func (r RemoveTeamMemberResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (RemoveTeamMemberResponse) GetJSON403

func (r RemoveTeamMemberResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (RemoveTeamMemberResponse) GetJSON404

func (r RemoveTeamMemberResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (RemoveTeamMemberResponse) GetJSONDefault

func (r RemoveTeamMemberResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (RemoveTeamMemberResponse) Status

func (r RemoveTeamMemberResponse) Status() string

Status returns HTTPResponse.Status

func (RemoveTeamMemberResponse) StatusCode

func (r RemoveTeamMemberResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReopenIssueResponse

type ReopenIssueResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Issue
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseReopenIssueResponse

func ParseReopenIssueResponse(rsp *http.Response) (*ReopenIssueResponse, error)

ParseReopenIssueResponse parses an HTTP response from a ReopenIssueWithResponse call

func (ReopenIssueResponse) ContentType

func (r ReopenIssueResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ReopenIssueResponse) GetBody

func (r ReopenIssueResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ReopenIssueResponse) GetJSON200

func (r ReopenIssueResponse) GetJSON200() *Issue

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ReopenIssueResponse) GetJSON400

func (r ReopenIssueResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ReopenIssueResponse) GetJSON401

func (r ReopenIssueResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ReopenIssueResponse) GetJSON403

func (r ReopenIssueResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ReopenIssueResponse) GetJSON404

func (r ReopenIssueResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ReopenIssueResponse) GetJSON409

func (r ReopenIssueResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (ReopenIssueResponse) GetJSONDefault

func (r ReopenIssueResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ReopenIssueResponse) Status

func (r ReopenIssueResponse) Status() string

Status returns HTTPResponse.Status

func (ReopenIssueResponse) StatusCode

func (r ReopenIssueResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RepoCloneUrls

type RepoCloneUrls struct {
	// Https Example: https://git.example.com/alice/my-app.git
	Https string `json:"https"`

	// Ssh Assente quando il server SSH dell'installazione e' spento.
	//
	//
	// Example: ssh://git@git.example.com:2222/alice/my-app.git
	Ssh *string `json:"ssh,omitempty"`

	// SshShort Forma corta `git@<host>:<owner>/<repo>.git` (R7): presente solo quando la porta SSH dell'installazione e' 22.
	//
	//
	// Example: git@git.example.com:alice/my-app.git
	SshShort *string `json:"sshShort,omitempty"`
}

RepoCloneUrls Indirizzi di clone dell'installazione (R1, R7). L'indirizzo SSH e' sempre quello completo `ssh://git@<host>:<porta>/<owner>/<repo>.git`.

type RepoMirror

type RepoMirror struct {
	// Attempts Tentativi falliti consecutivi dall'ultimo successo.
	Attempts  int        `json:"attempts"`
	CreatedAt time.Time  `json:"createdAt"`
	CreatedBy *IssueUser `json:"createdBy,omitempty"`
	Enabled   bool       `json:"enabled"`

	// HasToken Sempre `true`: il token non torna mai nelle risposte.
	HasToken      bool               `json:"hasToken"`
	Id            openapi_types.UUID `json:"id"`
	LastAttemptAt *time.Time         `json:"lastAttemptAt,omitempty"`

	// LastError Motivo dell'ultimo errore o della divergenza, senza credenziali; `null` dopo un successo.
	LastError *string `json:"lastError,omitempty"`

	// LastPushed Ref → SHA dell'ultimo push riuscito.
	//
	// Example: {"refs/heads/main":"4f1c2a9e0b7d3c5a6e8f1b2c3d4e5f60718293a4","refs/tags/v1.0.0":"9a8b7c6d5e4f30211203f4e5d6c7b8a998877665"}
	LastPushed    map[string]string `json:"lastPushed"`
	LastSuccessAt *time.Time        `json:"lastSuccessAt,omitempty"`

	// NextAttemptAt Quando e' previsto il prossimo tentativo; `null` se non c'e' niente in coda.
	NextAttemptAt *time.Time `json:"nextAttemptAt,omitempty"`

	// State Stato di un mirror in push. `pending`: in coda (mai spinto, o un push nuovo da fare); `syncing`: un worker lo sta spingendo; `in_sync`: la destinazione ha lo stato dell'ultimo push riuscito; `error`: l'ultimo tentativo e' fallito (rete, credenziale, destinazione non ammessa...), si ritenta con attesa crescente 30 s, 2 min, 10 min, 1 ora fino a 6 ore, tranne un blocco egress (C8) che non si ritenta; `diverged`: la destinazione ha una storia diversa (non fast-forward, o un tag gia' presente con un altro commit): fermo, nessun tentativo automatico e nessuna sovrascrittura, gli admin del repo ricevono una notifica `mirror`; riparte solo con `syncRepoMirror`.
	State     RepoMirrorState `json:"state"`
	UpdatedAt time.Time       `json:"updatedAt"`

	// Url Destinazione, `https://` senza credenziali.
	Url      string `json:"url"`
	Username string `json:"username"`
}

RepoMirror Example: {"attempts":0,"createdAt":"2026-10-01T08:00:00Z","enabled":true,"hasToken":true,"id":"0b9d2c1e-6f7a-4c3d-9e8f-1a2b3c4d5e6f","lastAttemptAt":"2026-10-06T19:30:12Z","lastError":"refs/heads/main: rifiutato (non-fast-forward): la destinazione ha una storia diversa","lastPushed":{"refs/heads/main":"4f1c2a9e0b7d3c5a6e8f1b2c3d4e5f60718293a4"},"lastSuccessAt":"2026-10-06T18:02:44Z","nextAttemptAt":null,"state":"diverged","updatedAt":"2026-10-06T19:30:12Z","url":"https://github.com/example/gitstack.git","username":"gitstack-mirror"}

type RepoMirrorList

type RepoMirrorList struct {
	Items   []RepoMirror `json:"items"`
	Page    int          `json:"page"`
	PerPage int          `json:"perPage"`
	Total   int          `json:"total"`
}

RepoMirrorList defines model for RepoMirrorList.

type RepoMirrorRun

type RepoMirrorRun struct {
	// Attempt Numero del tentativo (1 = il primo dopo un successo o una richiesta).
	Attempt    int `json:"attempt"`
	DurationMs int `json:"durationMs"`

	// Error Senza credenziali.
	Error      *string            `json:"error,omitempty"`
	FinishedAt time.Time          `json:"finishedAt"`
	Id         openapi_types.UUID `json:"id"`

	// Outcome `success`: push riuscito (anche se tutto era gia' aggiornato); `error`: fallito, si ritenta; `diverged`: la destinazione ha una storia diversa, fermo; `blocked`: destinazione non ammessa dalla policy di uscita (C8), non si ritenta.
	Outcome   RepoMirrorRunOutcome `json:"outcome"`
	Refs      []RepoMirrorRunRef   `json:"refs"`
	StartedAt time.Time            `json:"startedAt"`
}

RepoMirrorRun defines model for RepoMirrorRun.

type RepoMirrorRunList

type RepoMirrorRunList struct {
	Items   []RepoMirrorRun `json:"items"`
	Page    int             `json:"page"`
	PerPage int             `json:"perPage"`
	Total   int             `json:"total"`
}

RepoMirrorRunList defines model for RepoMirrorRunList.

type RepoMirrorRunOutcome

type RepoMirrorRunOutcome string

RepoMirrorRunOutcome `success`: push riuscito (anche se tutto era gia' aggiornato); `error`: fallito, si ritenta; `diverged`: la destinazione ha una storia diversa, fermo; `blocked`: destinazione non ammessa dalla policy di uscita (C8), non si ritenta.

const (
	RepoMirrorRunOutcomeBlocked  RepoMirrorRunOutcome = "blocked"
	RepoMirrorRunOutcomeDiverged RepoMirrorRunOutcome = "diverged"
	RepoMirrorRunOutcomeError    RepoMirrorRunOutcome = "error"
	RepoMirrorRunOutcomeSuccess  RepoMirrorRunOutcome = "success"
)

Defines values for RepoMirrorRunOutcome.

func (RepoMirrorRunOutcome) Valid

func (e RepoMirrorRunOutcome) Valid() bool

Valid indicates whether the value is a known member of the RepoMirrorRunOutcome enum.

type RepoMirrorRunRef

type RepoMirrorRunRef struct {
	// Reason Motivo del rifiuto o dell'errore, es. `non-fast-forward`, `fetch first`, `already exists`.
	Reason *string `json:"reason,omitempty"`

	// Ref Example: refs/heads/main
	Ref string `json:"ref"`

	// Sha SHA locale del ref, per `pushed` e `up-to-date`.
	Sha    *string                `json:"sha,omitempty"`
	Status RepoMirrorRunRefStatus `json:"status"`
}

RepoMirrorRunRef defines model for RepoMirrorRunRef.

type RepoMirrorRunRefStatus

type RepoMirrorRunRefStatus string

RepoMirrorRunRefStatus defines model for RepoMirrorRunRef.Status.

const (
	RepoMirrorRunRefStatusError    RepoMirrorRunRefStatus = "error"
	RepoMirrorRunRefStatusPushed   RepoMirrorRunRefStatus = "pushed"
	RepoMirrorRunRefStatusRejected RepoMirrorRunRefStatus = "rejected"
	RepoMirrorRunRefStatusUpToDate RepoMirrorRunRefStatus = "up-to-date"
)

Defines values for RepoMirrorRunRefStatus.

func (RepoMirrorRunRefStatus) Valid

func (e RepoMirrorRunRefStatus) Valid() bool

Valid indicates whether the value is a known member of the RepoMirrorRunRefStatus enum.

type RepoMirrorState

type RepoMirrorState string

RepoMirrorState Stato di un mirror in push. `pending`: in coda (mai spinto, o un push nuovo da fare); `syncing`: un worker lo sta spingendo; `in_sync`: la destinazione ha lo stato dell'ultimo push riuscito; `error`: l'ultimo tentativo e' fallito (rete, credenziale, destinazione non ammessa...), si ritenta con attesa crescente 30 s, 2 min, 10 min, 1 ora fino a 6 ore, tranne un blocco egress (C8) che non si ritenta; `diverged`: la destinazione ha una storia diversa (non fast-forward, o un tag gia' presente con un altro commit): fermo, nessun tentativo automatico e nessuna sovrascrittura, gli admin del repo ricevono una notifica `mirror`; riparte solo con `syncRepoMirror`.

const (
	RepoMirrorStateDiverged RepoMirrorState = "diverged"
	RepoMirrorStateError    RepoMirrorState = "error"
	RepoMirrorStateInSync   RepoMirrorState = "in_sync"
	RepoMirrorStatePending  RepoMirrorState = "pending"
	RepoMirrorStateSyncing  RepoMirrorState = "syncing"
)

Defines values for RepoMirrorState.

func (RepoMirrorState) Valid

func (e RepoMirrorState) Valid() bool

Valid indicates whether the value is a known member of the RepoMirrorState enum.

type RepoName

type RepoName = string

RepoName Nome di un repo (R11): lettere maiuscole e minuscole, cifre, `-`, `_`, `.`; 1-100 caratteri; non inizia con `.`; non finisce con `.git` (regola applicata dal servizio, non esprimibile nel pattern). Le maiuscole sono conservate come scritte; l'unicita' per owner e il lookup non distinguono maiuscole e minuscole (`GitStack` e `gitstack` sono lo stesso repo).

Example: my-app

type RepoNameParam

type RepoNameParam = RepoName

RepoNameParam Nome di un repo (R11): lettere maiuscole e minuscole, cifre, `-`, `_`, `.`; 1-100 caratteri; non inizia con `.`; non finisce con `.git` (regola applicata dal servizio, non esprimibile nel pattern). Le maiuscole sono conservate come scritte; l'unicita' per owner e il lookup non distinguono maiuscole e minuscole (`GitStack` e `gitstack` sono lo stesso repo).

Example: my-app

type RepoOwner

type RepoOwner struct {
	// Name Nome breve in minuscolo (username, organizzazione, team, provider): lettere minuscole, cifre e trattini, 1-39 caratteri, inizia e finisce con un carattere alfanumerico.
	//
	//
	// Example: alice
	Name Name      `json:"name"`
	Type OwnerType `json:"type"`
}

RepoOwner defines model for RepoOwner.

type RepoOwnerFilter

type RepoOwnerFilter = Name

RepoOwnerFilter Nome breve in minuscolo (username, organizzazione, team, provider): lettere minuscole, cifre e trattini, 1-39 caratteri, inizia e finisce con un carattere alfanumerico.

Example: alice

type RepoOwnerParam

type RepoOwnerParam = Name

RepoOwnerParam Nome breve in minuscolo (username, organizzazione, team, provider): lettere minuscole, cifre e trattini, 1-39 caratteri, inizia e finisce con un carattere alfanumerico.

Example: alice

type RepoVisibility

type RepoVisibility string

RepoVisibility Visibilita' (P7): `private` (solo chi ha un grant) o `internal` (tutti gli utenti dell'installazione). Nessun accesso anonimo.

const (
	RepoVisibilityInternal RepoVisibility = "internal"
	RepoVisibilityPrivate  RepoVisibility = "private"
)

Defines values for RepoVisibility.

func (RepoVisibility) Valid

func (e RepoVisibility) Valid() bool

Valid indicates whether the value is a known member of the RepoVisibility enum.

type RepoWatch

type RepoWatch struct {
	Mode RepoWatchMode `json:"mode"`

	// UpdatedAt Assente finche' l'utente non ha mai scelto (default `participating`).
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}

RepoWatch defines model for RepoWatch.

type RepoWatchMode

type RepoWatchMode string

RepoWatchMode defines model for RepoWatchMode.

const (
	RepoWatchModeAll           RepoWatchMode = "all"
	RepoWatchModeIgnore        RepoWatchMode = "ignore"
	RepoWatchModeParticipating RepoWatchMode = "participating"
)

Defines values for RepoWatchMode.

func (RepoWatchMode) Valid

func (e RepoWatchMode) Valid() bool

Valid indicates whether the value is a known member of the RepoWatchMode enum.

type Repository

type Repository struct {
	Archived   bool       `json:"archived"`
	ArchivedAt *time.Time `json:"archivedAt,omitempty"`

	// CloneUrls Indirizzi di clone dell'installazione (R1, R7). L'indirizzo SSH e' sempre quello completo `ssh://git@<host>:<porta>/<owner>/<repo>.git`.
	CloneUrls RepoCloneUrls `json:"cloneUrls"`
	CreatedAt *time.Time    `json:"createdAt,omitempty"`

	// DefaultBranch Example: main
	DefaultBranch string `json:"defaultBranch"`
	Description   string `json:"description"`

	// Empty Il repo non ha ancora nessun commit.
	Empty bool `json:"empty"`

	// FullName `owner/name`.
	//
	// Example: alice/my-app
	FullName string `json:"fullName"`

	// Id Id della risorsa (`type=repo`) in core.
	Id *openapi_types.UUID `json:"id,omitempty"`

	// Name Nome di un repo (R11): lettere maiuscole e minuscole, cifre, `-`, `_`, `.`; 1-100 caratteri; non inizia con `.`; non finisce con `.git` (regola applicata dal servizio, non esprimibile nel pattern). Le maiuscole sono conservate come scritte; l'unicita' per owner e il lookup non distinguono maiuscole e minuscole (`GitStack` e `gitstack` sono lo stesso repo).
	//
	//
	// Example: my-app
	Name  RepoName  `json:"name"`
	Owner RepoOwner `json:"owner"`

	// ProtectDefaultBranch Force-push ed eliminazione del branch principale rifiutati (R9).
	ProtectDefaultBranch bool       `json:"protectDefaultBranch"`
	UpdatedAt            *time.Time `json:"updatedAt,omitempty"`

	// Visibility Visibilita' (P7): `private` (solo chi ha un grant) o `internal` (tutti gli utenti dell'installazione). Nessun accesso anonimo.
	Visibility RepoVisibility `json:"visibility"`
}

Repository defines model for Repository.

type RepositoryList

type RepositoryList struct {
	Items   []Repository `json:"items"`
	Page    int          `json:"page"`
	PerPage int          `json:"perPage"`
	Total   int          `json:"total"`
}

RepositoryList defines model for RepositoryList.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ResetRepoWatchResponse

type ResetRepoWatchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseResetRepoWatchResponse

func ParseResetRepoWatchResponse(rsp *http.Response) (*ResetRepoWatchResponse, error)

ParseResetRepoWatchResponse parses an HTTP response from a ResetRepoWatchWithResponse call

func (ResetRepoWatchResponse) ContentType

func (r ResetRepoWatchResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ResetRepoWatchResponse) GetBody

func (r ResetRepoWatchResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ResetRepoWatchResponse) GetJSON401

func (r ResetRepoWatchResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ResetRepoWatchResponse) GetJSON403

func (r ResetRepoWatchResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ResetRepoWatchResponse) GetJSON404

func (r ResetRepoWatchResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ResetRepoWatchResponse) GetJSONDefault

func (r ResetRepoWatchResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ResetRepoWatchResponse) Status

func (r ResetRepoWatchResponse) Status() string

Status returns HTTPResponse.Status

func (ResetRepoWatchResponse) StatusCode

func (r ResetRepoWatchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ResolveMentionsInput

type ResolveMentionsInput struct {
	Names []string `json:"names"`
}

ResolveMentionsInput defines model for ResolveMentionsInput.

type ResolveMentionsJSONRequestBody

type ResolveMentionsJSONRequestBody = ResolveMentionsInput

ResolveMentionsJSONRequestBody defines body for ResolveMentions for application/json ContentType.

type ResolveMentionsResponse

type ResolveMentionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ResolveMentionsResult
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseResolveMentionsResponse

func ParseResolveMentionsResponse(rsp *http.Response) (*ResolveMentionsResponse, error)

ParseResolveMentionsResponse parses an HTTP response from a ResolveMentionsWithResponse call

func (ResolveMentionsResponse) ContentType

func (r ResolveMentionsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ResolveMentionsResponse) GetBody

func (r ResolveMentionsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ResolveMentionsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ResolveMentionsResponse) GetJSON400

func (r ResolveMentionsResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ResolveMentionsResponse) GetJSON401

func (r ResolveMentionsResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ResolveMentionsResponse) GetJSONDefault

func (r ResolveMentionsResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ResolveMentionsResponse) Status

func (r ResolveMentionsResponse) Status() string

Status returns HTTPResponse.Status

func (ResolveMentionsResponse) StatusCode

func (r ResolveMentionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ResolveMentionsResult

type ResolveMentionsResult struct {
	Teams []struct {
		Members []struct {
			Id   openapi_types.UUID                    `json:"id"`
			Kind ResolveMentionsResultTeamsMembersKind `json:"kind"`

			// Username Nome breve in minuscolo (username, organizzazione, team, provider): lettere minuscole, cifre e trattini, 1-39 caratteri, inizia e finisce con un carattere alfanumerico.
			//
			//
			// Example: alice
			Username Name `json:"username"`
		} `json:"members"`

		// Name Il nome `org/team` cosi' come e' stato chiesto.
		Name string `json:"name"`
	} `json:"teams"`
	Users []struct {
		Id   openapi_types.UUID             `json:"id"`
		Kind ResolveMentionsResultUsersKind `json:"kind"`

		// Name Il nome cosi' come e' stato chiesto.
		Name string `json:"name"`

		// Username Nome breve in minuscolo (username, organizzazione, team, provider): lettere minuscole, cifre e trattini, 1-39 caratteri, inizia e finisce con un carattere alfanumerico.
		//
		//
		// Example: alice
		Username Name `json:"username"`
	} `json:"users"`
}

ResolveMentionsResult defines model for ResolveMentionsResult.

type ResolveMentionsResultTeamsMembersKind

type ResolveMentionsResultTeamsMembersKind string

ResolveMentionsResultTeamsMembersKind defines model for ResolveMentionsResult.Teams.Members.Kind.

const (
	ResolveMentionsResultTeamsMembersKindAgent ResolveMentionsResultTeamsMembersKind = "agent"
	ResolveMentionsResultTeamsMembersKindHuman ResolveMentionsResultTeamsMembersKind = "human"
)

Defines values for ResolveMentionsResultTeamsMembersKind.

func (ResolveMentionsResultTeamsMembersKind) Valid

Valid indicates whether the value is a known member of the ResolveMentionsResultTeamsMembersKind enum.

type ResolveMentionsResultUsersKind

type ResolveMentionsResultUsersKind string

ResolveMentionsResultUsersKind defines model for ResolveMentionsResult.Users.Kind.

const (
	ResolveMentionsResultUsersKindAgent ResolveMentionsResultUsersKind = "agent"
	ResolveMentionsResultUsersKindHuman ResolveMentionsResultUsersKind = "human"
)

Defines values for ResolveMentionsResultUsersKind.

func (ResolveMentionsResultUsersKind) Valid

Valid indicates whether the value is a known member of the ResolveMentionsResultUsersKind enum.

type ResolveOwnerResponse

type ResolveOwnerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *OwnerRef
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseResolveOwnerResponse

func ParseResolveOwnerResponse(rsp *http.Response) (*ResolveOwnerResponse, error)

ParseResolveOwnerResponse parses an HTTP response from a ResolveOwnerWithResponse call

func (ResolveOwnerResponse) ContentType

func (r ResolveOwnerResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ResolveOwnerResponse) GetBody

func (r ResolveOwnerResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ResolveOwnerResponse) GetJSON200

func (r ResolveOwnerResponse) GetJSON200() *OwnerRef

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ResolveOwnerResponse) GetJSON401

func (r ResolveOwnerResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ResolveOwnerResponse) GetJSON404

func (r ResolveOwnerResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ResolveOwnerResponse) GetJSONDefault

func (r ResolveOwnerResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ResolveOwnerResponse) Status

func (r ResolveOwnerResponse) Status() string

Status returns HTTPResponse.Status

func (ResolveOwnerResponse) StatusCode

func (r ResolveOwnerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Resource

type Resource struct {
	// Attributes Attributi specifici del tipo di risorsa, a forma libera.
	Attributes *map[string]interface{} `json:"attributes,omitempty"`
	CreatedAt  *time.Time              `json:"createdAt,omitempty"`
	Id         *openapi_types.UUID     `json:"id,omitempty"`
	Name       string                  `json:"name"`

	// Type Tipo di risorsa, aperto: non un enum fisso (D15).
	//
	// Example: repo
	Type      string     `json:"type"`
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}

Resource Risorsa generica (D15): oggi usata dalla prova end-to-end, in futuro anche per repository, applicazioni e database, senza cambiare forma.

type ResourceAttributesInput

type ResourceAttributesInput struct {
	OwnerId   openapi_types.UUID `json:"ownerId"`
	OwnerType OwnerType          `json:"ownerType"`

	// Visibility Visibilita' (P7): `private` (solo chi ha un grant) o `internal` (tutti gli utenti dell'installazione). Nessun accesso anonimo.
	Visibility RepoVisibility `json:"visibility"`
}

ResourceAttributesInput defines model for ResourceAttributesInput.

type ResourceIdParam

type ResourceIdParam = openapi_types.UUID

ResourceIdParam defines model for ResourceIdParam.

type ResourceList

type ResourceList struct {
	Items   []Resource `json:"items"`
	Page    int        `json:"page"`
	PerPage int        `json:"perPage"`
	Total   int        `json:"total"`
}

ResourceList defines model for ResourceList.

type ResourceRole

type ResourceRole string

ResourceRole Ruolo su una risorsa, in ordine crescente di potere.

const (
	ResourceRoleAdmin ResourceRole = "admin"
	ResourceRoleRead  ResourceRole = "read"
	ResourceRoleWrite ResourceRole = "write"
)

Defines values for ResourceRole.

func (ResourceRole) Valid

func (e ResourceRole) Valid() bool

Valid indicates whether the value is a known member of the ResourceRole enum.

type ResourceTypeFilter

type ResourceTypeFilter = string

ResourceTypeFilter defines model for ResourceTypeFilter.

type RestoreRepositoryResponse

type RestoreRepositoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Repository
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseRestoreRepositoryResponse

func ParseRestoreRepositoryResponse(rsp *http.Response) (*RestoreRepositoryResponse, error)

ParseRestoreRepositoryResponse parses an HTTP response from a RestoreRepositoryWithResponse call

func (RestoreRepositoryResponse) ContentType

func (r RestoreRepositoryResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RestoreRepositoryResponse) GetBody

func (r RestoreRepositoryResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (RestoreRepositoryResponse) GetJSON200

func (r RestoreRepositoryResponse) GetJSON200() *Repository

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (RestoreRepositoryResponse) GetJSON400

func (r RestoreRepositoryResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (RestoreRepositoryResponse) GetJSON401

func (r RestoreRepositoryResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (RestoreRepositoryResponse) GetJSON403

func (r RestoreRepositoryResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (RestoreRepositoryResponse) GetJSON404

func (r RestoreRepositoryResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (RestoreRepositoryResponse) GetJSON409

func (r RestoreRepositoryResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (RestoreRepositoryResponse) GetJSONDefault

func (r RestoreRepositoryResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (RestoreRepositoryResponse) Status

func (r RestoreRepositoryResponse) Status() string

Status returns HTTPResponse.Status

func (RestoreRepositoryResponse) StatusCode

func (r RestoreRepositoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RevokeTokenResponse

type RevokeTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseRevokeTokenResponse

func ParseRevokeTokenResponse(rsp *http.Response) (*RevokeTokenResponse, error)

ParseRevokeTokenResponse parses an HTTP response from a RevokeTokenWithResponse call

func (RevokeTokenResponse) ContentType

func (r RevokeTokenResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RevokeTokenResponse) GetBody

func (r RevokeTokenResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (RevokeTokenResponse) GetJSON401

func (r RevokeTokenResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (RevokeTokenResponse) GetJSON403

func (r RevokeTokenResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (RevokeTokenResponse) GetJSON404

func (r RevokeTokenResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (RevokeTokenResponse) GetJSONDefault

func (r RevokeTokenResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (RevokeTokenResponse) Status

func (r RevokeTokenResponse) Status() string

Status returns HTTPResponse.Status

func (RevokeTokenResponse) StatusCode

func (r RevokeTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RevokeUserTokenResponse

type RevokeUserTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseRevokeUserTokenResponse

func ParseRevokeUserTokenResponse(rsp *http.Response) (*RevokeUserTokenResponse, error)

ParseRevokeUserTokenResponse parses an HTTP response from a RevokeUserTokenWithResponse call

func (RevokeUserTokenResponse) ContentType

func (r RevokeUserTokenResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RevokeUserTokenResponse) GetBody

func (r RevokeUserTokenResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (RevokeUserTokenResponse) GetJSON400

func (r RevokeUserTokenResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (RevokeUserTokenResponse) GetJSON401

func (r RevokeUserTokenResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (RevokeUserTokenResponse) GetJSON403

func (r RevokeUserTokenResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (RevokeUserTokenResponse) GetJSON404

func (r RevokeUserTokenResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (RevokeUserTokenResponse) GetJSON409

func (r RevokeUserTokenResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (RevokeUserTokenResponse) GetJSONDefault

func (r RevokeUserTokenResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (RevokeUserTokenResponse) Status

func (r RevokeUserTokenResponse) Status() string

Status returns HTTPResponse.Status

func (RevokeUserTokenResponse) StatusCode

func (r RevokeUserTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SearchIssuesParams

type SearchIssuesParams struct {
	// Q Ricerca con la sintassi di I10: `is:open|closed`, `reason:completed|not_planned|duplicate`, `label:"nome"`, `assignee:utente|@me|@agents`, `author:`, `milestone:`, `no:label|assignee|milestone`, `repo:owner/nome`, `org:`, piu' testo libero.
	Q *IssueQueryParam `form:"q,omitempty" json:"q,omitempty"`

	// Sort Ordinamento decrescente; `relevance` solo con testo libero in `q` (altrimenti 422).
	Sort    *SearchIssuesParamsSort `form:"sort,omitempty" json:"sort,omitempty"`
	Page    *PageParam              `form:"page,omitempty" json:"page,omitempty"`
	PerPage *PerPageParam           `form:"perPage,omitempty" json:"perPage,omitempty"`
}

SearchIssuesParams defines parameters for SearchIssues.

type SearchIssuesParamsSort

type SearchIssuesParamsSort string

SearchIssuesParamsSort defines parameters for SearchIssues.

const (
	SearchIssuesParamsSortComments  SearchIssuesParamsSort = "comments"
	SearchIssuesParamsSortCreated   SearchIssuesParamsSort = "created"
	SearchIssuesParamsSortRelevance SearchIssuesParamsSort = "relevance"
	SearchIssuesParamsSortUpdated   SearchIssuesParamsSort = "updated"
)

Defines values for SearchIssuesParamsSort.

func (SearchIssuesParamsSort) Valid

func (e SearchIssuesParamsSort) Valid() bool

Valid indicates whether the value is a known member of the SearchIssuesParamsSort enum.

type SearchIssuesResponse

type SearchIssuesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *IssueSearchResultList
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseSearchIssuesResponse

func ParseSearchIssuesResponse(rsp *http.Response) (*SearchIssuesResponse, error)

ParseSearchIssuesResponse parses an HTTP response from a SearchIssuesWithResponse call

func (SearchIssuesResponse) ContentType

func (r SearchIssuesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SearchIssuesResponse) GetBody

func (r SearchIssuesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SearchIssuesResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SearchIssuesResponse) GetJSON400

func (r SearchIssuesResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (SearchIssuesResponse) GetJSON401

func (r SearchIssuesResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (SearchIssuesResponse) GetJSON403

func (r SearchIssuesResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (SearchIssuesResponse) GetJSON422

func (r SearchIssuesResponse) GetJSON422() *UnprocessableEntity

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (SearchIssuesResponse) GetJSONDefault

func (r SearchIssuesResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (SearchIssuesResponse) Status

func (r SearchIssuesResponse) Status() string

Status returns HTTPResponse.Status

func (SearchIssuesResponse) StatusCode

func (r SearchIssuesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SearchRepositoryCodeParams

type SearchRepositoryCodeParams struct {
	// Q Testo da cercare (sottostringa letterale, senza distinguere maiuscole), da 2 a 256 caratteri.
	Q CodeSearchQueryParam `form:"q" json:"q"`

	// Ref Branch, tag o sha (completo o prefisso di almeno 7 caratteri). Se manca vale il branch principale del repo (R4). Un nome non valido (vuoto, con `..`, spazi, caratteri di controllo o oltre 255 caratteri) risponde 400 `invalid_ref`; uno valido ma inesistente 404 `ref_not_found`. Se un nome e' sia branch sia tag vince il branch.
	Ref *RefParam `form:"ref,omitempty" json:"ref,omitempty"`
}

SearchRepositoryCodeParams defines parameters for SearchRepositoryCode.

type SearchRepositoryCodeResponse

type SearchRepositoryCodeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CodeSearchResult
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseSearchRepositoryCodeResponse

func ParseSearchRepositoryCodeResponse(rsp *http.Response) (*SearchRepositoryCodeResponse, error)

ParseSearchRepositoryCodeResponse parses an HTTP response from a SearchRepositoryCodeWithResponse call

func (SearchRepositoryCodeResponse) ContentType

func (r SearchRepositoryCodeResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SearchRepositoryCodeResponse) GetBody

func (r SearchRepositoryCodeResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SearchRepositoryCodeResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SearchRepositoryCodeResponse) GetJSON400

func (r SearchRepositoryCodeResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (SearchRepositoryCodeResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (SearchRepositoryCodeResponse) GetJSON403

func (r SearchRepositoryCodeResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (SearchRepositoryCodeResponse) GetJSON404

func (r SearchRepositoryCodeResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (SearchRepositoryCodeResponse) GetJSONDefault

func (r SearchRepositoryCodeResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (SearchRepositoryCodeResponse) Status

Status returns HTTPResponse.Status

func (SearchRepositoryCodeResponse) StatusCode

func (r SearchRepositoryCodeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SetIssueAssigneesInput

type SetIssueAssigneesInput struct {
	Assignees []Name `json:"assignees"`
}

SetIssueAssigneesInput defines model for SetIssueAssigneesInput.

type SetIssueAssigneesJSONRequestBody

type SetIssueAssigneesJSONRequestBody = SetIssueAssigneesInput

SetIssueAssigneesJSONRequestBody defines body for SetIssueAssignees for application/json ContentType.

type SetIssueAssigneesResponse

type SetIssueAssigneesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Issue
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseSetIssueAssigneesResponse

func ParseSetIssueAssigneesResponse(rsp *http.Response) (*SetIssueAssigneesResponse, error)

ParseSetIssueAssigneesResponse parses an HTTP response from a SetIssueAssigneesWithResponse call

func (SetIssueAssigneesResponse) ContentType

func (r SetIssueAssigneesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SetIssueAssigneesResponse) GetBody

func (r SetIssueAssigneesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SetIssueAssigneesResponse) GetJSON200

func (r SetIssueAssigneesResponse) GetJSON200() *Issue

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SetIssueAssigneesResponse) GetJSON400

func (r SetIssueAssigneesResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (SetIssueAssigneesResponse) GetJSON401

func (r SetIssueAssigneesResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (SetIssueAssigneesResponse) GetJSON403

func (r SetIssueAssigneesResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (SetIssueAssigneesResponse) GetJSON404

func (r SetIssueAssigneesResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (SetIssueAssigneesResponse) GetJSON409

func (r SetIssueAssigneesResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (SetIssueAssigneesResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (SetIssueAssigneesResponse) GetJSONDefault

func (r SetIssueAssigneesResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (SetIssueAssigneesResponse) Status

func (r SetIssueAssigneesResponse) Status() string

Status returns HTTPResponse.Status

func (SetIssueAssigneesResponse) StatusCode

func (r SetIssueAssigneesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SetIssueHiddenInput

type SetIssueHiddenInput struct {
	Hidden bool `json:"hidden"`
}

SetIssueHiddenInput defines model for SetIssueHiddenInput.

type SetIssueHiddenJSONRequestBody

type SetIssueHiddenJSONRequestBody = SetIssueHiddenInput

SetIssueHiddenJSONRequestBody defines body for SetIssueHidden for application/json ContentType.

type SetIssueHiddenResponse

type SetIssueHiddenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Issue
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseSetIssueHiddenResponse

func ParseSetIssueHiddenResponse(rsp *http.Response) (*SetIssueHiddenResponse, error)

ParseSetIssueHiddenResponse parses an HTTP response from a SetIssueHiddenWithResponse call

func (SetIssueHiddenResponse) ContentType

func (r SetIssueHiddenResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SetIssueHiddenResponse) GetBody

func (r SetIssueHiddenResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SetIssueHiddenResponse) GetJSON200

func (r SetIssueHiddenResponse) GetJSON200() *Issue

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SetIssueHiddenResponse) GetJSON400

func (r SetIssueHiddenResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (SetIssueHiddenResponse) GetJSON401

func (r SetIssueHiddenResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (SetIssueHiddenResponse) GetJSON403

func (r SetIssueHiddenResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (SetIssueHiddenResponse) GetJSON404

func (r SetIssueHiddenResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (SetIssueHiddenResponse) GetJSON409

func (r SetIssueHiddenResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (SetIssueHiddenResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (SetIssueHiddenResponse) GetJSONDefault

func (r SetIssueHiddenResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (SetIssueHiddenResponse) Status

func (r SetIssueHiddenResponse) Status() string

Status returns HTTPResponse.Status

func (SetIssueHiddenResponse) StatusCode

func (r SetIssueHiddenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SetIssueLabelsInput

type SetIssueLabelsInput struct {
	Labels []string `json:"labels"`
}

SetIssueLabelsInput defines model for SetIssueLabelsInput.

type SetIssueLabelsJSONRequestBody

type SetIssueLabelsJSONRequestBody = SetIssueLabelsInput

SetIssueLabelsJSONRequestBody defines body for SetIssueLabels for application/json ContentType.

type SetIssueLabelsResponse

type SetIssueLabelsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Issue
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseSetIssueLabelsResponse

func ParseSetIssueLabelsResponse(rsp *http.Response) (*SetIssueLabelsResponse, error)

ParseSetIssueLabelsResponse parses an HTTP response from a SetIssueLabelsWithResponse call

func (SetIssueLabelsResponse) ContentType

func (r SetIssueLabelsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SetIssueLabelsResponse) GetBody

func (r SetIssueLabelsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SetIssueLabelsResponse) GetJSON200

func (r SetIssueLabelsResponse) GetJSON200() *Issue

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SetIssueLabelsResponse) GetJSON400

func (r SetIssueLabelsResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (SetIssueLabelsResponse) GetJSON401

func (r SetIssueLabelsResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (SetIssueLabelsResponse) GetJSON403

func (r SetIssueLabelsResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (SetIssueLabelsResponse) GetJSON404

func (r SetIssueLabelsResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (SetIssueLabelsResponse) GetJSON409

func (r SetIssueLabelsResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (SetIssueLabelsResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (SetIssueLabelsResponse) GetJSONDefault

func (r SetIssueLabelsResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (SetIssueLabelsResponse) Status

func (r SetIssueLabelsResponse) Status() string

Status returns HTTPResponse.Status

func (SetIssueLabelsResponse) StatusCode

func (r SetIssueLabelsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SetIssueMilestoneInput

type SetIssueMilestoneInput struct {
	// Milestone Numero della milestone, o `null` per toglierla.
	Milestone *int64 `json:"milestone"`
}

SetIssueMilestoneInput defines model for SetIssueMilestoneInput.

type SetIssueMilestoneJSONRequestBody

type SetIssueMilestoneJSONRequestBody = SetIssueMilestoneInput

SetIssueMilestoneJSONRequestBody defines body for SetIssueMilestone for application/json ContentType.

type SetIssueMilestoneResponse

type SetIssueMilestoneResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Issue
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseSetIssueMilestoneResponse

func ParseSetIssueMilestoneResponse(rsp *http.Response) (*SetIssueMilestoneResponse, error)

ParseSetIssueMilestoneResponse parses an HTTP response from a SetIssueMilestoneWithResponse call

func (SetIssueMilestoneResponse) ContentType

func (r SetIssueMilestoneResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SetIssueMilestoneResponse) GetBody

func (r SetIssueMilestoneResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SetIssueMilestoneResponse) GetJSON200

func (r SetIssueMilestoneResponse) GetJSON200() *Issue

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SetIssueMilestoneResponse) GetJSON400

func (r SetIssueMilestoneResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (SetIssueMilestoneResponse) GetJSON401

func (r SetIssueMilestoneResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (SetIssueMilestoneResponse) GetJSON403

func (r SetIssueMilestoneResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (SetIssueMilestoneResponse) GetJSON404

func (r SetIssueMilestoneResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (SetIssueMilestoneResponse) GetJSON409

func (r SetIssueMilestoneResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (SetIssueMilestoneResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (SetIssueMilestoneResponse) GetJSONDefault

func (r SetIssueMilestoneResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (SetIssueMilestoneResponse) Status

func (r SetIssueMilestoneResponse) Status() string

Status returns HTTPResponse.Status

func (SetIssueMilestoneResponse) StatusCode

func (r SetIssueMilestoneResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SetOrgMemberInput

type SetOrgMemberInput struct {
	// Role `owner` gestisce organizzazione, team e membri; `member` no.
	Role OrgRole `json:"role"`
}

SetOrgMemberInput defines model for SetOrgMemberInput.

type SetOrgMemberJSONRequestBody

type SetOrgMemberJSONRequestBody = SetOrgMemberInput

SetOrgMemberJSONRequestBody defines body for SetOrgMember for application/json ContentType.

type SetOrgMemberResponse

type SetOrgMemberResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *OrgMember
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseSetOrgMemberResponse

func ParseSetOrgMemberResponse(rsp *http.Response) (*SetOrgMemberResponse, error)

ParseSetOrgMemberResponse parses an HTTP response from a SetOrgMemberWithResponse call

func (SetOrgMemberResponse) ContentType

func (r SetOrgMemberResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SetOrgMemberResponse) GetBody

func (r SetOrgMemberResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SetOrgMemberResponse) GetJSON200

func (r SetOrgMemberResponse) GetJSON200() *OrgMember

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SetOrgMemberResponse) GetJSON400

func (r SetOrgMemberResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (SetOrgMemberResponse) GetJSON401

func (r SetOrgMemberResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (SetOrgMemberResponse) GetJSON403

func (r SetOrgMemberResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (SetOrgMemberResponse) GetJSON404

func (r SetOrgMemberResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (SetOrgMemberResponse) GetJSON409

func (r SetOrgMemberResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (SetOrgMemberResponse) GetJSON422

func (r SetOrgMemberResponse) GetJSON422() *UnprocessableEntity

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (SetOrgMemberResponse) GetJSONDefault

func (r SetOrgMemberResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (SetOrgMemberResponse) Status

func (r SetOrgMemberResponse) Status() string

Status returns HTTPResponse.Status

func (SetOrgMemberResponse) StatusCode

func (r SetOrgMemberResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SetRepoWatchInput

type SetRepoWatchInput struct {
	Mode RepoWatchMode `json:"mode"`
}

SetRepoWatchInput defines model for SetRepoWatchInput.

type SetRepoWatchJSONRequestBody

type SetRepoWatchJSONRequestBody = SetRepoWatchInput

SetRepoWatchJSONRequestBody defines body for SetRepoWatch for application/json ContentType.

type SetRepoWatchResponse

type SetRepoWatchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *RepoWatch
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseSetRepoWatchResponse

func ParseSetRepoWatchResponse(rsp *http.Response) (*SetRepoWatchResponse, error)

ParseSetRepoWatchResponse parses an HTTP response from a SetRepoWatchWithResponse call

func (SetRepoWatchResponse) ContentType

func (r SetRepoWatchResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SetRepoWatchResponse) GetBody

func (r SetRepoWatchResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SetRepoWatchResponse) GetJSON200

func (r SetRepoWatchResponse) GetJSON200() *RepoWatch

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SetRepoWatchResponse) GetJSON400

func (r SetRepoWatchResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (SetRepoWatchResponse) GetJSON401

func (r SetRepoWatchResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (SetRepoWatchResponse) GetJSON403

func (r SetRepoWatchResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (SetRepoWatchResponse) GetJSON404

func (r SetRepoWatchResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (SetRepoWatchResponse) GetJSON422

func (r SetRepoWatchResponse) GetJSON422() *UnprocessableEntity

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (SetRepoWatchResponse) GetJSONDefault

func (r SetRepoWatchResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (SetRepoWatchResponse) Status

func (r SetRepoWatchResponse) Status() string

Status returns HTTPResponse.Status

func (SetRepoWatchResponse) StatusCode

func (r SetRepoWatchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SetResourceAttributesJSONRequestBody

type SetResourceAttributesJSONRequestBody = ResourceAttributesInput

SetResourceAttributesJSONRequestBody defines body for SetResourceAttributes for application/json ContentType.

type SetResourceAttributesResponse

type SetResourceAttributesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseSetResourceAttributesResponse

func ParseSetResourceAttributesResponse(rsp *http.Response) (*SetResourceAttributesResponse, error)

ParseSetResourceAttributesResponse parses an HTTP response from a SetResourceAttributesWithResponse call

func (SetResourceAttributesResponse) ContentType

func (r SetResourceAttributesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SetResourceAttributesResponse) GetBody

func (r SetResourceAttributesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SetResourceAttributesResponse) GetJSON400

func (r SetResourceAttributesResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (SetResourceAttributesResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (SetResourceAttributesResponse) GetJSON404

func (r SetResourceAttributesResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (SetResourceAttributesResponse) GetJSON409

func (r SetResourceAttributesResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (SetResourceAttributesResponse) GetJSONDefault

func (r SetResourceAttributesResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (SetResourceAttributesResponse) Status

Status returns HTTPResponse.Status

func (SetResourceAttributesResponse) StatusCode

func (r SetResourceAttributesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SetTeamMemberInput

type SetTeamMemberInput struct {
	// Role `maintainer` gestisce i membri del team.
	Role *TeamRole `json:"role,omitempty"`
}

SetTeamMemberInput defines model for SetTeamMemberInput.

type SetTeamMemberJSONRequestBody

type SetTeamMemberJSONRequestBody = SetTeamMemberInput

SetTeamMemberJSONRequestBody defines body for SetTeamMember for application/json ContentType.

type SetTeamMemberResponse

type SetTeamMemberResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TeamMember
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseSetTeamMemberResponse

func ParseSetTeamMemberResponse(rsp *http.Response) (*SetTeamMemberResponse, error)

ParseSetTeamMemberResponse parses an HTTP response from a SetTeamMemberWithResponse call

func (SetTeamMemberResponse) ContentType

func (r SetTeamMemberResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SetTeamMemberResponse) GetBody

func (r SetTeamMemberResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SetTeamMemberResponse) GetJSON200

func (r SetTeamMemberResponse) GetJSON200() *TeamMember

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SetTeamMemberResponse) GetJSON400

func (r SetTeamMemberResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (SetTeamMemberResponse) GetJSON401

func (r SetTeamMemberResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (SetTeamMemberResponse) GetJSON403

func (r SetTeamMemberResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (SetTeamMemberResponse) GetJSON404

func (r SetTeamMemberResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (SetTeamMemberResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (SetTeamMemberResponse) GetJSONDefault

func (r SetTeamMemberResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (SetTeamMemberResponse) Status

func (r SetTeamMemberResponse) Status() string

Status returns HTTPResponse.Status

func (SetTeamMemberResponse) StatusCode

func (r SetTeamMemberResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SshKey

type SshKey struct {
	CreatedAt   time.Time           `json:"createdAt"`
	Fingerprint string              `json:"fingerprint"`
	Id          *openapi_types.UUID `json:"id,omitempty"`

	// KeyType Example: ssh-ed25519
	KeyType    string     `json:"keyType"`
	LastUsedAt *time.Time `json:"lastUsedAt,omitempty"`
	Title      string     `json:"title"`
}

SshKey defines model for SshKey.

type SshKeyIdParam

type SshKeyIdParam = openapi_types.UUID

SshKeyIdParam defines model for SshKeyIdParam.

type SshKeyList

type SshKeyList struct {
	Items   []SshKey `json:"items"`
	Page    int      `json:"page"`
	PerPage int      `json:"perPage"`
	Total   int      `json:"total"`
}

SshKeyList defines model for SshKeyList.

type SshKeyLookup

type SshKeyLookup struct {
	Key SshKey `json:"key"`

	// User Profilo utente. `email`, `isAdmin`, `isActive`, `createdAt` sono presenti solo per l'utente stesso e per gli amministratori.
	User User `json:"user"`
}

SshKeyLookup defines model for SshKeyLookup.

type StartOidcLoginParams

type StartOidcLoginParams struct {
	RedirectTo *string `form:"redirectTo,omitempty" json:"redirectTo,omitempty"`
}

StartOidcLoginParams defines parameters for StartOidcLogin.

type StartOidcLoginResponse

type StartOidcLoginResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
	// Headers302 the parsed response headers for an HTTP 302 response
	Headers302 *StartOidcLoginResponse302Headers
}

func ParseStartOidcLoginResponse

func ParseStartOidcLoginResponse(rsp *http.Response) (*StartOidcLoginResponse, error)

ParseStartOidcLoginResponse parses an HTTP response from a StartOidcLoginWithResponse call

func (StartOidcLoginResponse) ContentType

func (r StartOidcLoginResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (StartOidcLoginResponse) GetBody

func (r StartOidcLoginResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (StartOidcLoginResponse) GetJSON404

func (r StartOidcLoginResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (StartOidcLoginResponse) GetJSONDefault

func (r StartOidcLoginResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (StartOidcLoginResponse) Status

func (r StartOidcLoginResponse) Status() string

Status returns HTTPResponse.Status

func (StartOidcLoginResponse) StatusCode

func (r StartOidcLoginResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StartOidcLoginResponse302Headers

type StartOidcLoginResponse302Headers struct {
	Location *string
}

StartOidcLoginResponse302Headers the declared response headers of an HTTP 302 response for StartOidcLogin

type SubscribeIssueResponse

type SubscribeIssueResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *IssueSubscription
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseSubscribeIssueResponse

func ParseSubscribeIssueResponse(rsp *http.Response) (*SubscribeIssueResponse, error)

ParseSubscribeIssueResponse parses an HTTP response from a SubscribeIssueWithResponse call

func (SubscribeIssueResponse) ContentType

func (r SubscribeIssueResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SubscribeIssueResponse) GetBody

func (r SubscribeIssueResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SubscribeIssueResponse) GetJSON200

func (r SubscribeIssueResponse) GetJSON200() *IssueSubscription

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (SubscribeIssueResponse) GetJSON401

func (r SubscribeIssueResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (SubscribeIssueResponse) GetJSON403

func (r SubscribeIssueResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (SubscribeIssueResponse) GetJSON404

func (r SubscribeIssueResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (SubscribeIssueResponse) GetJSONDefault

func (r SubscribeIssueResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (SubscribeIssueResponse) Status

func (r SubscribeIssueResponse) Status() string

Status returns HTTPResponse.Status

func (SubscribeIssueResponse) StatusCode

func (r SubscribeIssueResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SyncRepoMirrorResponse

type SyncRepoMirrorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *RepoMirror
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseSyncRepoMirrorResponse

func ParseSyncRepoMirrorResponse(rsp *http.Response) (*SyncRepoMirrorResponse, error)

ParseSyncRepoMirrorResponse parses an HTTP response from a SyncRepoMirrorWithResponse call

func (SyncRepoMirrorResponse) ContentType

func (r SyncRepoMirrorResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (SyncRepoMirrorResponse) GetBody

func (r SyncRepoMirrorResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (SyncRepoMirrorResponse) GetJSON202

func (r SyncRepoMirrorResponse) GetJSON202() *RepoMirror

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (SyncRepoMirrorResponse) GetJSON401

func (r SyncRepoMirrorResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (SyncRepoMirrorResponse) GetJSON403

func (r SyncRepoMirrorResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (SyncRepoMirrorResponse) GetJSON404

func (r SyncRepoMirrorResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (SyncRepoMirrorResponse) GetJSON409

func (r SyncRepoMirrorResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (SyncRepoMirrorResponse) GetJSONDefault

func (r SyncRepoMirrorResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (SyncRepoMirrorResponse) Status

func (r SyncRepoMirrorResponse) Status() string

Status returns HTTPResponse.Status

func (SyncRepoMirrorResponse) StatusCode

func (r SyncRepoMirrorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Tag

type Tag struct {
	Annotated bool          `json:"annotated"`
	Commit    CommitSummary `json:"commit"`

	// Message Messaggio del tag; solo se `annotated`.
	Message *string `json:"message,omitempty"`
	Name    string  `json:"name"`

	// TaggedAt Data del tag; per un tag leggero quella del commit (regola B7).
	TaggedAt time.Time `json:"taggedAt"`

	// TarGzUrl Come `zipUrl`, per il tar.gz.
	TarGzUrl *string `json:"tarGzUrl,omitempty"`

	// ZipUrl Indirizzo di scaricamento ZIP (`getRepositoryArchive` con `ref` il nome del tag, relativo a `/v1`). Lo aggiunge core: il servizio git non conosce owner e nome, quindi nella sua risposta manca; sempre presente in quella pubblica.
	ZipUrl *string `json:"zipUrl,omitempty"`
}

Tag defines model for Tag.

type TagList

type TagList struct {
	Items []Tag `json:"items"`
	Total int   `json:"total"`
}

TagList defines model for TagList.

type Team

type Team struct {
	CreatedAt   *time.Time          `json:"createdAt,omitempty"`
	Description *string             `json:"description,omitempty"`
	Id          *openapi_types.UUID `json:"id,omitempty"`

	// Name Nome breve in minuscolo (username, organizzazione, team, provider): lettere minuscole, cifre e trattini, 1-39 caratteri, inizia e finisce con un carattere alfanumerico.
	//
	//
	// Example: alice
	Name  Name               `json:"name"`
	OrgId openapi_types.UUID `json:"orgId"`
}

Team defines model for Team.

type TeamList

type TeamList struct {
	Items   []Team `json:"items"`
	Page    int    `json:"page"`
	PerPage int    `json:"perPage"`
	Total   int    `json:"total"`
}

TeamList defines model for TeamList.

type TeamMember

type TeamMember struct {
	CreatedAt time.Time `json:"createdAt"`

	// Role `maintainer` gestisce i membri del team.
	Role TeamRole `json:"role"`

	// User Profilo utente. `email`, `isAdmin`, `isActive`, `createdAt` sono presenti solo per l'utente stesso e per gli amministratori.
	User User `json:"user"`
}

TeamMember defines model for TeamMember.

type TeamMemberList

type TeamMemberList struct {
	Items   []TeamMember `json:"items"`
	Page    int          `json:"page"`
	PerPage int          `json:"perPage"`
	Total   int          `json:"total"`
}

TeamMemberList defines model for TeamMemberList.

type TeamParam

type TeamParam = Name

TeamParam Nome breve in minuscolo (username, organizzazione, team, provider): lettere minuscole, cifre e trattini, 1-39 caratteri, inizia e finisce con un carattere alfanumerico.

Example: alice

type TeamRole

type TeamRole string

TeamRole `maintainer` gestisce i membri del team.

const (
	TeamRoleMaintainer TeamRole = "maintainer"
	TeamRoleMember     TeamRole = "member"
)

Defines values for TeamRole.

func (TeamRole) Valid

func (e TeamRole) Valid() bool

Valid indicates whether the value is a known member of the TeamRole enum.

type TextVersion

type TextVersion struct {
	Body string `json:"body"`

	// CreatedAt Quando questa versione e' stata sostituita.
	CreatedAt time.Time `json:"createdAt"`
	Editor    IssueUser `json:"editor"`

	// Title Solo per le versioni della issue.
	Title *string `json:"title,omitempty"`

	// Version 1 e' il testo originale.
	Version int `json:"version"`
}

TextVersion defines model for TextVersion.

type TextVersionList

type TextVersionList struct {
	Items []TextVersion `json:"items"`
}

TextVersionList defines model for TextVersionList.

type Token

type Token struct {
	CreatedAt time.Time  `json:"createdAt"`
	ExpiresAt *time.Time `json:"expiresAt,omitempty"`

	// Hint Ultimi 4 caratteri del token, per riconoscerlo.
	Hint       string              `json:"hint"`
	Id         *openapi_types.UUID `json:"id,omitempty"`
	LastUsedAt *time.Time          `json:"lastUsedAt,omitempty"`
	Name       string              `json:"name"`
	Scopes     []TokenScope        `json:"scopes"`
}

Token Token personale, senza il valore (che non e' recuperabile).

type TokenIdParam

type TokenIdParam = openapi_types.UUID

TokenIdParam defines model for TokenIdParam.

type TokenList

type TokenList struct {
	Items   []Token `json:"items"`
	Page    int     `json:"page"`
	PerPage int     `json:"perPage"`
	Total   int     `json:"total"`
}

TokenList defines model for TokenList.

type TokenScope

type TokenScope string

TokenScope Catalogo degli scope dei token personali (unico, condiviso da tutti i servizi). Le sessioni web non hanno scope: valgono i permessi dell'utente. `write:*` include `read:*` dello stesso ambito; `admin:org` include `write:org`.

const (
	AdminOrg      TokenScope = "admin:org"
	ReadOrg       TokenScope = "read:org"
	ReadResource  TokenScope = "read:resource"
	ReadUser      TokenScope = "read:user"
	WriteOrg      TokenScope = "write:org"
	WriteResource TokenScope = "write:resource"
	WriteUser     TokenScope = "write:user"
)

Defines values for TokenScope.

func (TokenScope) Valid

func (e TokenScope) Valid() bool

Valid indicates whether the value is a known member of the TokenScope enum.

type TooManyRequests

type TooManyRequests = Error

TooManyRequests Formato unico degli errori per tutta l'API pubblica. Codici comuni per stato: 400 `bad_request`; 401 `unauthenticated`, `invalid_credentials`; 403 `forbidden`, `insufficient_scope`, `password_change_required`; 429 `too_many_attempts`; 404 `not_found`; 409 `conflict` e varianti specifiche (`already_exists`, `last_admin`, `last_owner`, `ssh_key_in_use`, `oidc_identity_unlinked`); 422 `validation_failed` (`details.fields`). Le risposte 401 non distinguono mai "utente inesistente" da "password errata".

type Tree

type Tree struct {
	CommitSha string      `json:"commitSha"`
	Entries   []TreeEntry `json:"entries"`
	Path      string      `json:"path"`

	// Ref Il `ref` risolto (il branch principale se non indicato).
	Ref string `json:"ref"`

	// Truncated True se la cartella ha piu' di 1 000 voci e queste sono le prime 1 000.
	Truncated bool `json:"truncated"`
}

Tree defines model for Tree.

type TreeEntry

type TreeEntry struct {
	LastCommit CommitSummary `json:"lastCommit"`

	// Mode Modo Git in ottale, es. `100644`.
	Mode string `json:"mode"`
	Name string `json:"name"`
	Path string `json:"path"`

	// Size Byte, solo per i file.
	Size *int64        `json:"size,omitempty"`
	Type TreeEntryType `json:"type"`
}

TreeEntry defines model for TreeEntry.

type TreeEntryType

type TreeEntryType string

TreeEntryType defines model for TreeEntry.Type.

const (
	Dir       TreeEntryType = "dir"
	File      TreeEntryType = "file"
	Submodule TreeEntryType = "submodule"
	Symlink   TreeEntryType = "symlink"
)

Defines values for TreeEntryType.

func (TreeEntryType) Valid

func (e TreeEntryType) Valid() bool

Valid indicates whether the value is a known member of the TreeEntryType enum.

type Unauthorized

type Unauthorized = Error

Unauthorized Formato unico degli errori per tutta l'API pubblica. Codici comuni per stato: 400 `bad_request`; 401 `unauthenticated`, `invalid_credentials`; 403 `forbidden`, `insufficient_scope`, `password_change_required`; 429 `too_many_attempts`; 404 `not_found`; 409 `conflict` e varianti specifiche (`already_exists`, `last_admin`, `last_owner`, `ssh_key_in_use`, `oidc_identity_unlinked`); 422 `validation_failed` (`details.fields`). Le risposte 401 non distinguono mai "utente inesistente" da "password errata".

type UnexpectedError

type UnexpectedError = Error

UnexpectedError Formato unico degli errori per tutta l'API pubblica. Codici comuni per stato: 400 `bad_request`; 401 `unauthenticated`, `invalid_credentials`; 403 `forbidden`, `insufficient_scope`, `password_change_required`; 429 `too_many_attempts`; 404 `not_found`; 409 `conflict` e varianti specifiche (`already_exists`, `last_admin`, `last_owner`, `ssh_key_in_use`, `oidc_identity_unlinked`); 422 `validation_failed` (`details.fields`). Le risposte 401 non distinguono mai "utente inesistente" da "password errata".

type UnlockIssueResponse

type UnlockIssueResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Issue
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseUnlockIssueResponse

func ParseUnlockIssueResponse(rsp *http.Response) (*UnlockIssueResponse, error)

ParseUnlockIssueResponse parses an HTTP response from a UnlockIssueWithResponse call

func (UnlockIssueResponse) ContentType

func (r UnlockIssueResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UnlockIssueResponse) GetBody

func (r UnlockIssueResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UnlockIssueResponse) GetJSON200

func (r UnlockIssueResponse) GetJSON200() *Issue

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UnlockIssueResponse) GetJSON400

func (r UnlockIssueResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UnlockIssueResponse) GetJSON401

func (r UnlockIssueResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UnlockIssueResponse) GetJSON403

func (r UnlockIssueResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UnlockIssueResponse) GetJSON404

func (r UnlockIssueResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UnlockIssueResponse) GetJSON409

func (r UnlockIssueResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (UnlockIssueResponse) GetJSONDefault

func (r UnlockIssueResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (UnlockIssueResponse) Status

func (r UnlockIssueResponse) Status() string

Status returns HTTPResponse.Status

func (UnlockIssueResponse) StatusCode

func (r UnlockIssueResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UnprocessableEntity

type UnprocessableEntity = Error

UnprocessableEntity Formato unico degli errori per tutta l'API pubblica. Codici comuni per stato: 400 `bad_request`; 401 `unauthenticated`, `invalid_credentials`; 403 `forbidden`, `insufficient_scope`, `password_change_required`; 429 `too_many_attempts`; 404 `not_found`; 409 `conflict` e varianti specifiche (`already_exists`, `last_admin`, `last_owner`, `ssh_key_in_use`, `oidc_identity_unlinked`); 422 `validation_failed` (`details.fields`). Le risposte 401 non distinguono mai "utente inesistente" da "password errata".

type UnsubscribeIssueResponse

type UnsubscribeIssueResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *IssueSubscription
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseUnsubscribeIssueResponse

func ParseUnsubscribeIssueResponse(rsp *http.Response) (*UnsubscribeIssueResponse, error)

ParseUnsubscribeIssueResponse parses an HTTP response from a UnsubscribeIssueWithResponse call

func (UnsubscribeIssueResponse) ContentType

func (r UnsubscribeIssueResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UnsubscribeIssueResponse) GetBody

func (r UnsubscribeIssueResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UnsubscribeIssueResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UnsubscribeIssueResponse) GetJSON401

func (r UnsubscribeIssueResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UnsubscribeIssueResponse) GetJSON403

func (r UnsubscribeIssueResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UnsubscribeIssueResponse) GetJSON404

func (r UnsubscribeIssueResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UnsubscribeIssueResponse) GetJSONDefault

func (r UnsubscribeIssueResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (UnsubscribeIssueResponse) Status

func (r UnsubscribeIssueResponse) Status() string

Status returns HTTPResponse.Status

func (UnsubscribeIssueResponse) StatusCode

func (r UnsubscribeIssueResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateGrantInput

type UpdateGrantInput struct {
	// Role Ruolo su una risorsa, in ordine crescente di potere.
	Role ResourceRole `json:"role"`
}

UpdateGrantInput defines model for UpdateGrantInput.

type UpdateIssueCommentInput

type UpdateIssueCommentInput struct {
	Body string `json:"body"`
}

UpdateIssueCommentInput defines model for UpdateIssueCommentInput.

type UpdateIssueCommentJSONRequestBody

type UpdateIssueCommentJSONRequestBody = UpdateIssueCommentInput

UpdateIssueCommentJSONRequestBody defines body for UpdateIssueComment for application/json ContentType.

type UpdateIssueCommentResponse

type UpdateIssueCommentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *IssueComment
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON413 the response for an HTTP 413 `application/json` response
	JSON413 *PayloadTooLarge
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseUpdateIssueCommentResponse

func ParseUpdateIssueCommentResponse(rsp *http.Response) (*UpdateIssueCommentResponse, error)

ParseUpdateIssueCommentResponse parses an HTTP response from a UpdateIssueCommentWithResponse call

func (UpdateIssueCommentResponse) ContentType

func (r UpdateIssueCommentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateIssueCommentResponse) GetBody

func (r UpdateIssueCommentResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateIssueCommentResponse) GetJSON200

func (r UpdateIssueCommentResponse) GetJSON200() *IssueComment

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateIssueCommentResponse) GetJSON400

func (r UpdateIssueCommentResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UpdateIssueCommentResponse) GetJSON401

func (r UpdateIssueCommentResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UpdateIssueCommentResponse) GetJSON403

func (r UpdateIssueCommentResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UpdateIssueCommentResponse) GetJSON404

func (r UpdateIssueCommentResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UpdateIssueCommentResponse) GetJSON409

func (r UpdateIssueCommentResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (UpdateIssueCommentResponse) GetJSON413

GetJSON413 returns the response for an HTTP 413 `application/json` response

func (UpdateIssueCommentResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (UpdateIssueCommentResponse) GetJSONDefault

func (r UpdateIssueCommentResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (UpdateIssueCommentResponse) Status

Status returns HTTPResponse.Status

func (UpdateIssueCommentResponse) StatusCode

func (r UpdateIssueCommentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateIssueInput

type UpdateIssueInput struct {
	// AttachmentIds Allegati gia' caricati dall'autore, da collegare alla issue (I9). Anche da soli, senza `title` o `body`.
	AttachmentIds *[]openapi_types.UUID `json:"attachmentIds,omitempty"`
	Body          *string               `json:"body,omitempty"`
	Title         *string               `json:"title,omitempty"`
}

UpdateIssueInput defines model for UpdateIssueInput.

type UpdateIssueJSONRequestBody

type UpdateIssueJSONRequestBody = UpdateIssueInput

UpdateIssueJSONRequestBody defines body for UpdateIssue for application/json ContentType.

type UpdateIssueResponse

type UpdateIssueResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Issue
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON413 the response for an HTTP 413 `application/json` response
	JSON413 *PayloadTooLarge
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseUpdateIssueResponse

func ParseUpdateIssueResponse(rsp *http.Response) (*UpdateIssueResponse, error)

ParseUpdateIssueResponse parses an HTTP response from a UpdateIssueWithResponse call

func (UpdateIssueResponse) ContentType

func (r UpdateIssueResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateIssueResponse) GetBody

func (r UpdateIssueResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateIssueResponse) GetJSON200

func (r UpdateIssueResponse) GetJSON200() *Issue

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateIssueResponse) GetJSON400

func (r UpdateIssueResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UpdateIssueResponse) GetJSON401

func (r UpdateIssueResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UpdateIssueResponse) GetJSON403

func (r UpdateIssueResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UpdateIssueResponse) GetJSON404

func (r UpdateIssueResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UpdateIssueResponse) GetJSON409

func (r UpdateIssueResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (UpdateIssueResponse) GetJSON413

func (r UpdateIssueResponse) GetJSON413() *PayloadTooLarge

GetJSON413 returns the response for an HTTP 413 `application/json` response

func (UpdateIssueResponse) GetJSON422

func (r UpdateIssueResponse) GetJSON422() *UnprocessableEntity

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (UpdateIssueResponse) GetJSONDefault

func (r UpdateIssueResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (UpdateIssueResponse) Status

func (r UpdateIssueResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateIssueResponse) StatusCode

func (r UpdateIssueResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateLabelInput

type UpdateLabelInput struct {
	// Color Colore esadecimale a sei cifre, senza `#`.
	//
	// Example: d73a4a
	Color       *LabelColor `json:"color,omitempty"`
	Description *string     `json:"description,omitempty"`
	Name        *string     `json:"name,omitempty"`
}

UpdateLabelInput defines model for UpdateLabelInput.

type UpdateLabelJSONRequestBody

type UpdateLabelJSONRequestBody = UpdateLabelInput

UpdateLabelJSONRequestBody defines body for UpdateLabel for application/json ContentType.

type UpdateLabelResponse

type UpdateLabelResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Label
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseUpdateLabelResponse

func ParseUpdateLabelResponse(rsp *http.Response) (*UpdateLabelResponse, error)

ParseUpdateLabelResponse parses an HTTP response from a UpdateLabelWithResponse call

func (UpdateLabelResponse) ContentType

func (r UpdateLabelResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateLabelResponse) GetBody

func (r UpdateLabelResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateLabelResponse) GetJSON200

func (r UpdateLabelResponse) GetJSON200() *Label

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateLabelResponse) GetJSON400

func (r UpdateLabelResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UpdateLabelResponse) GetJSON401

func (r UpdateLabelResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UpdateLabelResponse) GetJSON403

func (r UpdateLabelResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UpdateLabelResponse) GetJSON404

func (r UpdateLabelResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UpdateLabelResponse) GetJSON409

func (r UpdateLabelResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (UpdateLabelResponse) GetJSON422

func (r UpdateLabelResponse) GetJSON422() *UnprocessableEntity

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (UpdateLabelResponse) GetJSONDefault

func (r UpdateLabelResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (UpdateLabelResponse) Status

func (r UpdateLabelResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateLabelResponse) StatusCode

func (r UpdateLabelResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateMilestoneInput

type UpdateMilestoneInput struct {
	Description *string                    `json:"description,omitempty"`
	DueOn       *openapi_types.Date        `json:"dueOn,omitempty"`
	State       *UpdateMilestoneInputState `json:"state,omitempty"`
	Title       *string                    `json:"title,omitempty"`
}

UpdateMilestoneInput defines model for UpdateMilestoneInput.

type UpdateMilestoneInputState

type UpdateMilestoneInputState string

UpdateMilestoneInputState defines model for UpdateMilestoneInput.State.

const (
	UpdateMilestoneInputStateClosed UpdateMilestoneInputState = "closed"
	UpdateMilestoneInputStateOpen   UpdateMilestoneInputState = "open"
)

Defines values for UpdateMilestoneInputState.

func (UpdateMilestoneInputState) Valid

func (e UpdateMilestoneInputState) Valid() bool

Valid indicates whether the value is a known member of the UpdateMilestoneInputState enum.

type UpdateMilestoneJSONRequestBody

type UpdateMilestoneJSONRequestBody = UpdateMilestoneInput

UpdateMilestoneJSONRequestBody defines body for UpdateMilestone for application/json ContentType.

type UpdateMilestoneResponse

type UpdateMilestoneResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Milestone
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseUpdateMilestoneResponse

func ParseUpdateMilestoneResponse(rsp *http.Response) (*UpdateMilestoneResponse, error)

ParseUpdateMilestoneResponse parses an HTTP response from a UpdateMilestoneWithResponse call

func (UpdateMilestoneResponse) ContentType

func (r UpdateMilestoneResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateMilestoneResponse) GetBody

func (r UpdateMilestoneResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateMilestoneResponse) GetJSON200

func (r UpdateMilestoneResponse) GetJSON200() *Milestone

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateMilestoneResponse) GetJSON400

func (r UpdateMilestoneResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UpdateMilestoneResponse) GetJSON401

func (r UpdateMilestoneResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UpdateMilestoneResponse) GetJSON403

func (r UpdateMilestoneResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UpdateMilestoneResponse) GetJSON404

func (r UpdateMilestoneResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UpdateMilestoneResponse) GetJSON409

func (r UpdateMilestoneResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (UpdateMilestoneResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (UpdateMilestoneResponse) GetJSONDefault

func (r UpdateMilestoneResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (UpdateMilestoneResponse) Status

func (r UpdateMilestoneResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateMilestoneResponse) StatusCode

func (r UpdateMilestoneResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateNotificationInput

type UpdateNotificationInput struct {
	// Archived `true` archivia, `false` ripristina.
	Archived *bool `json:"archived,omitempty"`

	// Read `true` segna come letta, `false` di nuovo come non letta.
	Read *bool `json:"read,omitempty"`
}

UpdateNotificationInput defines model for UpdateNotificationInput.

type UpdateNotificationJSONRequestBody

type UpdateNotificationJSONRequestBody = UpdateNotificationInput

UpdateNotificationJSONRequestBody defines body for UpdateNotification for application/json ContentType.

type UpdateNotificationPreferencesInput

type UpdateNotificationPreferencesInput struct {
	// Email Tipo (`NotificationReason`) → email si/no. I tipi omessi non cambiano.
	Email map[string]bool `json:"email"`
}

UpdateNotificationPreferencesInput defines model for UpdateNotificationPreferencesInput.

type UpdateNotificationPreferencesJSONRequestBody

type UpdateNotificationPreferencesJSONRequestBody = UpdateNotificationPreferencesInput

UpdateNotificationPreferencesJSONRequestBody defines body for UpdateNotificationPreferences for application/json ContentType.

type UpdateNotificationPreferencesResponse

type UpdateNotificationPreferencesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *NotificationPreferences
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseUpdateNotificationPreferencesResponse

func ParseUpdateNotificationPreferencesResponse(rsp *http.Response) (*UpdateNotificationPreferencesResponse, error)

ParseUpdateNotificationPreferencesResponse parses an HTTP response from a UpdateNotificationPreferencesWithResponse call

func (UpdateNotificationPreferencesResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateNotificationPreferencesResponse) GetBody

GetBody returns the raw response body bytes

func (UpdateNotificationPreferencesResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateNotificationPreferencesResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UpdateNotificationPreferencesResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UpdateNotificationPreferencesResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UpdateNotificationPreferencesResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (UpdateNotificationPreferencesResponse) GetJSONDefault

GetJSONDefault returns the response for an HTTP default `application/json` response

func (UpdateNotificationPreferencesResponse) Status

Status returns HTTPResponse.Status

func (UpdateNotificationPreferencesResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type UpdateNotificationResponse

type UpdateNotificationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Notification
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseUpdateNotificationResponse

func ParseUpdateNotificationResponse(rsp *http.Response) (*UpdateNotificationResponse, error)

ParseUpdateNotificationResponse parses an HTTP response from a UpdateNotificationWithResponse call

func (UpdateNotificationResponse) ContentType

func (r UpdateNotificationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateNotificationResponse) GetBody

func (r UpdateNotificationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateNotificationResponse) GetJSON200

func (r UpdateNotificationResponse) GetJSON200() *Notification

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateNotificationResponse) GetJSON400

func (r UpdateNotificationResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UpdateNotificationResponse) GetJSON401

func (r UpdateNotificationResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UpdateNotificationResponse) GetJSON403

func (r UpdateNotificationResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UpdateNotificationResponse) GetJSON404

func (r UpdateNotificationResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UpdateNotificationResponse) GetJSONDefault

func (r UpdateNotificationResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (UpdateNotificationResponse) Status

Status returns HTTPResponse.Status

func (UpdateNotificationResponse) StatusCode

func (r UpdateNotificationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateOrgWebhookJSONRequestBody

type UpdateOrgWebhookJSONRequestBody = UpdateWebhookInput

UpdateOrgWebhookJSONRequestBody defines body for UpdateOrgWebhook for application/json ContentType.

type UpdateOrgWebhookResponse

type UpdateOrgWebhookResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Webhook
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseUpdateOrgWebhookResponse

func ParseUpdateOrgWebhookResponse(rsp *http.Response) (*UpdateOrgWebhookResponse, error)

ParseUpdateOrgWebhookResponse parses an HTTP response from a UpdateOrgWebhookWithResponse call

func (UpdateOrgWebhookResponse) ContentType

func (r UpdateOrgWebhookResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateOrgWebhookResponse) GetBody

func (r UpdateOrgWebhookResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateOrgWebhookResponse) GetJSON200

func (r UpdateOrgWebhookResponse) GetJSON200() *Webhook

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateOrgWebhookResponse) GetJSON400

func (r UpdateOrgWebhookResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UpdateOrgWebhookResponse) GetJSON401

func (r UpdateOrgWebhookResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UpdateOrgWebhookResponse) GetJSON403

func (r UpdateOrgWebhookResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UpdateOrgWebhookResponse) GetJSON404

func (r UpdateOrgWebhookResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UpdateOrgWebhookResponse) GetJSON409

func (r UpdateOrgWebhookResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (UpdateOrgWebhookResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (UpdateOrgWebhookResponse) GetJSONDefault

func (r UpdateOrgWebhookResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (UpdateOrgWebhookResponse) Status

func (r UpdateOrgWebhookResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateOrgWebhookResponse) StatusCode

func (r UpdateOrgWebhookResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateOrganizationInput

type UpdateOrganizationInput struct {
	Description *string `json:"description,omitempty"`
	DisplayName *string `json:"displayName,omitempty"`
}

UpdateOrganizationInput defines model for UpdateOrganizationInput.

type UpdateOrganizationJSONRequestBody

type UpdateOrganizationJSONRequestBody = UpdateOrganizationInput

UpdateOrganizationJSONRequestBody defines body for UpdateOrganization for application/json ContentType.

type UpdateOrganizationResponse

type UpdateOrganizationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Organization
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseUpdateOrganizationResponse

func ParseUpdateOrganizationResponse(rsp *http.Response) (*UpdateOrganizationResponse, error)

ParseUpdateOrganizationResponse parses an HTTP response from a UpdateOrganizationWithResponse call

func (UpdateOrganizationResponse) ContentType

func (r UpdateOrganizationResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateOrganizationResponse) GetBody

func (r UpdateOrganizationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateOrganizationResponse) GetJSON200

func (r UpdateOrganizationResponse) GetJSON200() *Organization

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateOrganizationResponse) GetJSON400

func (r UpdateOrganizationResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UpdateOrganizationResponse) GetJSON401

func (r UpdateOrganizationResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UpdateOrganizationResponse) GetJSON403

func (r UpdateOrganizationResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UpdateOrganizationResponse) GetJSON404

func (r UpdateOrganizationResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UpdateOrganizationResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (UpdateOrganizationResponse) GetJSONDefault

func (r UpdateOrganizationResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (UpdateOrganizationResponse) Status

Status returns HTTPResponse.Status

func (UpdateOrganizationResponse) StatusCode

func (r UpdateOrganizationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateRepoMirrorInput

type UpdateRepoMirrorInput struct {
	Enabled *bool `json:"enabled,omitempty"`

	// Token Sostituisce il token; non si puo' togliere.
	Token    *string `json:"token,omitempty"`
	Url      *string `json:"url,omitempty"`
	Username *string `json:"username,omitempty"`
}

UpdateRepoMirrorInput defines model for UpdateRepoMirrorInput.

type UpdateRepoMirrorJSONRequestBody

type UpdateRepoMirrorJSONRequestBody = UpdateRepoMirrorInput

UpdateRepoMirrorJSONRequestBody defines body for UpdateRepoMirror for application/json ContentType.

type UpdateRepoMirrorResponse

type UpdateRepoMirrorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *RepoMirror
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseUpdateRepoMirrorResponse

func ParseUpdateRepoMirrorResponse(rsp *http.Response) (*UpdateRepoMirrorResponse, error)

ParseUpdateRepoMirrorResponse parses an HTTP response from a UpdateRepoMirrorWithResponse call

func (UpdateRepoMirrorResponse) ContentType

func (r UpdateRepoMirrorResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateRepoMirrorResponse) GetBody

func (r UpdateRepoMirrorResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateRepoMirrorResponse) GetJSON200

func (r UpdateRepoMirrorResponse) GetJSON200() *RepoMirror

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateRepoMirrorResponse) GetJSON400

func (r UpdateRepoMirrorResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UpdateRepoMirrorResponse) GetJSON401

func (r UpdateRepoMirrorResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UpdateRepoMirrorResponse) GetJSON403

func (r UpdateRepoMirrorResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UpdateRepoMirrorResponse) GetJSON404

func (r UpdateRepoMirrorResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UpdateRepoMirrorResponse) GetJSON409

func (r UpdateRepoMirrorResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (UpdateRepoMirrorResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (UpdateRepoMirrorResponse) GetJSONDefault

func (r UpdateRepoMirrorResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (UpdateRepoMirrorResponse) Status

func (r UpdateRepoMirrorResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateRepoMirrorResponse) StatusCode

func (r UpdateRepoMirrorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateRepoWebhookJSONRequestBody

type UpdateRepoWebhookJSONRequestBody = UpdateWebhookInput

UpdateRepoWebhookJSONRequestBody defines body for UpdateRepoWebhook for application/json ContentType.

type UpdateRepoWebhookResponse

type UpdateRepoWebhookResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Webhook
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseUpdateRepoWebhookResponse

func ParseUpdateRepoWebhookResponse(rsp *http.Response) (*UpdateRepoWebhookResponse, error)

ParseUpdateRepoWebhookResponse parses an HTTP response from a UpdateRepoWebhookWithResponse call

func (UpdateRepoWebhookResponse) ContentType

func (r UpdateRepoWebhookResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateRepoWebhookResponse) GetBody

func (r UpdateRepoWebhookResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateRepoWebhookResponse) GetJSON200

func (r UpdateRepoWebhookResponse) GetJSON200() *Webhook

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateRepoWebhookResponse) GetJSON400

func (r UpdateRepoWebhookResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UpdateRepoWebhookResponse) GetJSON401

func (r UpdateRepoWebhookResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UpdateRepoWebhookResponse) GetJSON403

func (r UpdateRepoWebhookResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UpdateRepoWebhookResponse) GetJSON404

func (r UpdateRepoWebhookResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UpdateRepoWebhookResponse) GetJSON409

func (r UpdateRepoWebhookResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (UpdateRepoWebhookResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (UpdateRepoWebhookResponse) GetJSONDefault

func (r UpdateRepoWebhookResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (UpdateRepoWebhookResponse) Status

func (r UpdateRepoWebhookResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateRepoWebhookResponse) StatusCode

func (r UpdateRepoWebhookResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateRepositoryInput

type UpdateRepositoryInput struct {
	Archived             *bool   `json:"archived,omitempty"`
	DefaultBranch        *string `json:"defaultBranch,omitempty"`
	Description          *string `json:"description,omitempty"`
	ProtectDefaultBranch *bool   `json:"protectDefaultBranch,omitempty"`

	// Visibility Visibilita' (P7): `private` (solo chi ha un grant) o `internal` (tutti gli utenti dell'installazione). Nessun accesso anonimo.
	Visibility *RepoVisibility `json:"visibility,omitempty"`
}

UpdateRepositoryInput defines model for UpdateRepositoryInput.

type UpdateRepositoryJSONRequestBody

type UpdateRepositoryJSONRequestBody = UpdateRepositoryInput

UpdateRepositoryJSONRequestBody defines body for UpdateRepository for application/json ContentType.

type UpdateRepositoryResponse

type UpdateRepositoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Repository
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseUpdateRepositoryResponse

func ParseUpdateRepositoryResponse(rsp *http.Response) (*UpdateRepositoryResponse, error)

ParseUpdateRepositoryResponse parses an HTTP response from a UpdateRepositoryWithResponse call

func (UpdateRepositoryResponse) ContentType

func (r UpdateRepositoryResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateRepositoryResponse) GetBody

func (r UpdateRepositoryResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateRepositoryResponse) GetJSON200

func (r UpdateRepositoryResponse) GetJSON200() *Repository

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateRepositoryResponse) GetJSON400

func (r UpdateRepositoryResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UpdateRepositoryResponse) GetJSON401

func (r UpdateRepositoryResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UpdateRepositoryResponse) GetJSON403

func (r UpdateRepositoryResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UpdateRepositoryResponse) GetJSON404

func (r UpdateRepositoryResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UpdateRepositoryResponse) GetJSON409

func (r UpdateRepositoryResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (UpdateRepositoryResponse) GetJSONDefault

func (r UpdateRepositoryResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (UpdateRepositoryResponse) Status

func (r UpdateRepositoryResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateRepositoryResponse) StatusCode

func (r UpdateRepositoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateResourceGrantJSONRequestBody

type UpdateResourceGrantJSONRequestBody = UpdateGrantInput

UpdateResourceGrantJSONRequestBody defines body for UpdateResourceGrant for application/json ContentType.

type UpdateResourceGrantResponse

type UpdateResourceGrantResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Grant
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseUpdateResourceGrantResponse

func ParseUpdateResourceGrantResponse(rsp *http.Response) (*UpdateResourceGrantResponse, error)

ParseUpdateResourceGrantResponse parses an HTTP response from a UpdateResourceGrantWithResponse call

func (UpdateResourceGrantResponse) ContentType

func (r UpdateResourceGrantResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateResourceGrantResponse) GetBody

func (r UpdateResourceGrantResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateResourceGrantResponse) GetJSON200

func (r UpdateResourceGrantResponse) GetJSON200() *Grant

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateResourceGrantResponse) GetJSON400

func (r UpdateResourceGrantResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UpdateResourceGrantResponse) GetJSON401

func (r UpdateResourceGrantResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UpdateResourceGrantResponse) GetJSON403

func (r UpdateResourceGrantResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UpdateResourceGrantResponse) GetJSON404

func (r UpdateResourceGrantResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UpdateResourceGrantResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (UpdateResourceGrantResponse) GetJSONDefault

func (r UpdateResourceGrantResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (UpdateResourceGrantResponse) Status

Status returns HTTPResponse.Status

func (UpdateResourceGrantResponse) StatusCode

func (r UpdateResourceGrantResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateResourceInput

type UpdateResourceInput struct {
	Attributes *map[string]interface{} `json:"attributes,omitempty"`
	Name       *string                 `json:"name,omitempty"`
}

UpdateResourceInput defines model for UpdateResourceInput.

type UpdateResourceJSONRequestBody

type UpdateResourceJSONRequestBody = UpdateResourceInput

UpdateResourceJSONRequestBody defines body for UpdateResource for application/json ContentType.

type UpdateResourceResponse

type UpdateResourceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Resource
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseUpdateResourceResponse

func ParseUpdateResourceResponse(rsp *http.Response) (*UpdateResourceResponse, error)

ParseUpdateResourceResponse parses an HTTP response from a UpdateResourceWithResponse call

func (UpdateResourceResponse) ContentType

func (r UpdateResourceResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateResourceResponse) GetBody

func (r UpdateResourceResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateResourceResponse) GetJSON200

func (r UpdateResourceResponse) GetJSON200() *Resource

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateResourceResponse) GetJSON400

func (r UpdateResourceResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UpdateResourceResponse) GetJSON401

func (r UpdateResourceResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UpdateResourceResponse) GetJSON403

func (r UpdateResourceResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UpdateResourceResponse) GetJSON404

func (r UpdateResourceResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UpdateResourceResponse) GetJSONDefault

func (r UpdateResourceResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (UpdateResourceResponse) Status

func (r UpdateResourceResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateResourceResponse) StatusCode

func (r UpdateResourceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateTeamInput

type UpdateTeamInput struct {
	Description *string `json:"description,omitempty"`

	// Name Nome breve in minuscolo (username, organizzazione, team, provider): lettere minuscole, cifre e trattini, 1-39 caratteri, inizia e finisce con un carattere alfanumerico.
	//
	//
	// Example: alice
	Name *Name `json:"name,omitempty"`
}

UpdateTeamInput defines model for UpdateTeamInput.

type UpdateTeamJSONRequestBody

type UpdateTeamJSONRequestBody = UpdateTeamInput

UpdateTeamJSONRequestBody defines body for UpdateTeam for application/json ContentType.

type UpdateTeamResponse

type UpdateTeamResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Team
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseUpdateTeamResponse

func ParseUpdateTeamResponse(rsp *http.Response) (*UpdateTeamResponse, error)

ParseUpdateTeamResponse parses an HTTP response from a UpdateTeamWithResponse call

func (UpdateTeamResponse) ContentType

func (r UpdateTeamResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateTeamResponse) GetBody

func (r UpdateTeamResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateTeamResponse) GetJSON200

func (r UpdateTeamResponse) GetJSON200() *Team

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateTeamResponse) GetJSON400

func (r UpdateTeamResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UpdateTeamResponse) GetJSON401

func (r UpdateTeamResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UpdateTeamResponse) GetJSON403

func (r UpdateTeamResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UpdateTeamResponse) GetJSON404

func (r UpdateTeamResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UpdateTeamResponse) GetJSON409

func (r UpdateTeamResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (UpdateTeamResponse) GetJSON422

func (r UpdateTeamResponse) GetJSON422() *UnprocessableEntity

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (UpdateTeamResponse) GetJSONDefault

func (r UpdateTeamResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (UpdateTeamResponse) Status

func (r UpdateTeamResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateTeamResponse) StatusCode

func (r UpdateTeamResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateUserInput

type UpdateUserInput struct {
	AvatarUrl   *string              `json:"avatarUrl,omitempty"`
	Bio         *string              `json:"bio,omitempty"`
	DisplayName *string              `json:"displayName,omitempty"`
	Email       *openapi_types.Email `json:"email,omitempty"`

	// IsActive Solo amministratori. Disattivare revoca le sessioni e i token.
	IsActive *bool `json:"isActive,omitempty"`

	// IsAdmin Solo amministratori.
	IsAdmin *bool `json:"isAdmin,omitempty"`
}

UpdateUserInput defines model for UpdateUserInput.

type UpdateUserJSONRequestBody

type UpdateUserJSONRequestBody = UpdateUserInput

UpdateUserJSONRequestBody defines body for UpdateUser for application/json ContentType.

type UpdateUserResponse

type UpdateUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *User
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseUpdateUserResponse

func ParseUpdateUserResponse(rsp *http.Response) (*UpdateUserResponse, error)

ParseUpdateUserResponse parses an HTTP response from a UpdateUserWithResponse call

func (UpdateUserResponse) ContentType

func (r UpdateUserResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateUserResponse) GetBody

func (r UpdateUserResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateUserResponse) GetJSON200

func (r UpdateUserResponse) GetJSON200() *User

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateUserResponse) GetJSON400

func (r UpdateUserResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UpdateUserResponse) GetJSON401

func (r UpdateUserResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UpdateUserResponse) GetJSON403

func (r UpdateUserResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UpdateUserResponse) GetJSON404

func (r UpdateUserResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UpdateUserResponse) GetJSON409

func (r UpdateUserResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (UpdateUserResponse) GetJSON422

func (r UpdateUserResponse) GetJSON422() *UnprocessableEntity

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (UpdateUserResponse) GetJSONDefault

func (r UpdateUserResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (UpdateUserResponse) Status

func (r UpdateUserResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateUserResponse) StatusCode

func (r UpdateUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateWebhookInput

type UpdateWebhookInput struct {
	Active *bool           `json:"active,omitempty"`
	Events *[]WebhookEvent `json:"events,omitempty"`

	// Secret Una stringa sostituisce il segreto; la stringa vuota lo toglie.
	Secret *string `json:"secret,omitempty"`
	Url    *string `json:"url,omitempty"`
}

UpdateWebhookInput defines model for UpdateWebhookInput.

type UploadIssueAttachmentInput

type UploadIssueAttachmentInput struct {
	File openapi_types.File `json:"file"`
}

UploadIssueAttachmentInput defines model for UploadIssueAttachmentInput.

type UploadIssueAttachmentMultipartRequestBody

type UploadIssueAttachmentMultipartRequestBody = UploadIssueAttachmentInput

UploadIssueAttachmentMultipartRequestBody defines body for UploadIssueAttachment for multipart/form-data ContentType.

type UploadIssueAttachmentResponse

type UploadIssueAttachmentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *IssueAttachment
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *Forbidden
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *NotFound
	// JSON409 the response for an HTTP 409 `application/json` response
	JSON409 *Conflict
	// JSON413 the response for an HTTP 413 `application/json` response
	JSON413 *PayloadTooLarge
	// JSON422 the response for an HTTP 422 `application/json` response
	JSON422 *UnprocessableEntity
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *UploadIssueAttachmentResponse201Headers
}

func ParseUploadIssueAttachmentResponse

func ParseUploadIssueAttachmentResponse(rsp *http.Response) (*UploadIssueAttachmentResponse, error)

ParseUploadIssueAttachmentResponse parses an HTTP response from a UploadIssueAttachmentWithResponse call

func (UploadIssueAttachmentResponse) ContentType

func (r UploadIssueAttachmentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UploadIssueAttachmentResponse) GetBody

func (r UploadIssueAttachmentResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UploadIssueAttachmentResponse) GetJSON201

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (UploadIssueAttachmentResponse) GetJSON400

func (r UploadIssueAttachmentResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UploadIssueAttachmentResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UploadIssueAttachmentResponse) GetJSON403

func (r UploadIssueAttachmentResponse) GetJSON403() *Forbidden

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UploadIssueAttachmentResponse) GetJSON404

func (r UploadIssueAttachmentResponse) GetJSON404() *NotFound

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UploadIssueAttachmentResponse) GetJSON409

func (r UploadIssueAttachmentResponse) GetJSON409() *Conflict

GetJSON409 returns the response for an HTTP 409 `application/json` response

func (UploadIssueAttachmentResponse) GetJSON413

GetJSON413 returns the response for an HTTP 413 `application/json` response

func (UploadIssueAttachmentResponse) GetJSON422

GetJSON422 returns the response for an HTTP 422 `application/json` response

func (UploadIssueAttachmentResponse) GetJSONDefault

func (r UploadIssueAttachmentResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (UploadIssueAttachmentResponse) Status

Status returns HTTPResponse.Status

func (UploadIssueAttachmentResponse) StatusCode

func (r UploadIssueAttachmentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UploadIssueAttachmentResponse201Headers

type UploadIssueAttachmentResponse201Headers struct {
	Location *string
}

UploadIssueAttachmentResponse201Headers the declared response headers of an HTTP 201 response for UploadIssueAttachment

type User

type User struct {
	AvatarUrl   *string              `json:"avatarUrl,omitempty"`
	Bio         *string              `json:"bio,omitempty"`
	CreatedAt   *time.Time           `json:"createdAt,omitempty"`
	DisplayName string               `json:"displayName"`
	Email       *openapi_types.Email `json:"email,omitempty"`
	Id          *openapi_types.UUID  `json:"id,omitempty"`
	IsActive    *bool                `json:"isActive,omitempty"`
	IsAdmin     *bool                `json:"isAdmin,omitempty"`
	Kind        UserKind             `json:"kind"`

	// Username Nome breve in minuscolo (username, organizzazione, team, provider): lettere minuscole, cifre e trattini, 1-39 caratteri, inizia e finisce con un carattere alfanumerico.
	//
	//
	// Example: alice
	Username Name `json:"username"`
}

User Profilo utente. `email`, `isAdmin`, `isActive`, `createdAt` sono presenti solo per l'utente stesso e per gli amministratori.

type UserAccessItem

type UserAccessItem struct {
	// FullName Example: acme/api
	FullName     string             `json:"fullName"`
	Name         string             `json:"name"`
	Owner        RepoOwner          `json:"owner"`
	RepositoryId openapi_types.UUID `json:"repositoryId"`

	// Role Ruolo su una risorsa, in ordine crescente di potere.
	Role    ResourceRole   `json:"role"`
	Sources []AccessSource `json:"sources"`

	// Visibility Visibilita' (P7): `private` (solo chi ha un grant) o `internal` (tutti gli utenti dell'installazione). Nessun accesso anonimo.
	Visibility *RepoVisibility `json:"visibility,omitempty"`
}

UserAccessItem defines model for UserAccessItem.

type UserAccessList

type UserAccessList struct {
	Items   []UserAccessItem `json:"items"`
	Page    int              `json:"page"`
	PerPage int              `json:"perPage"`
	Total   int              `json:"total"`
}

UserAccessList defines model for UserAccessList.

type UserAccessSources

type UserAccessSources struct {
	Admin bool                    `json:"admin"`
	Items []UserAccessSourcesItem `json:"items"`
}

UserAccessSources defines model for UserAccessSources.

type UserAccessSourcesItem

type UserAccessSourcesItem struct {
	ResourceId openapi_types.UUID `json:"resourceId"`

	// Role Ruolo su una risorsa, in ordine crescente di potere.
	Role    ResourceRole   `json:"role"`
	Sources []AccessSource `json:"sources"`
}

UserAccessSourcesItem defines model for UserAccessSourcesItem.

type UserKind

type UserKind string

UserKind defines model for User.Kind.

const (
	UserKindAgent UserKind = "agent"
	UserKindHuman UserKind = "human"
)

Defines values for UserKind.

func (UserKind) Valid

func (e UserKind) Valid() bool

Valid indicates whether the value is a known member of the UserKind enum.

type UserList

type UserList struct {
	Items   []User `json:"items"`
	Page    int    `json:"page"`
	PerPage int    `json:"perPage"`
	Total   int    `json:"total"`
}

UserList defines model for UserList.

type UsernameParam

type UsernameParam = Name

UsernameParam Nome breve in minuscolo (username, organizzazione, team, provider): lettere minuscole, cifre e trattini, 1-39 caratteri, inizia e finisce con un carattere alfanumerico.

Example: alice

type VerifyCredentialInput

type VerifyCredentialInput struct {
	// Credential Valore grezzo della credenziale (cookie `gst_session` o token `gst_...`).
	Credential *string `json:"credential,omitempty"`

	// Kind Facoltativo, evita l'ambiguita' se il gateway la conosce.
	Kind *VerifyCredentialInputKind `json:"kind,omitempty"`
}

VerifyCredentialInput defines model for VerifyCredentialInput.

type VerifyCredentialInputKind

type VerifyCredentialInputKind string

VerifyCredentialInputKind Facoltativo, evita l'ambiguita' se il gateway la conosce.

const (
	VerifyCredentialInputKindSession VerifyCredentialInputKind = "session"
	VerifyCredentialInputKindToken   VerifyCredentialInputKind = "token"
)

Defines values for VerifyCredentialInputKind.

func (VerifyCredentialInputKind) Valid

func (e VerifyCredentialInputKind) Valid() bool

Valid indicates whether the value is a known member of the VerifyCredentialInputKind enum.

type VerifyCredentialJSONRequestBody

type VerifyCredentialJSONRequestBody = VerifyCredentialInput

VerifyCredentialJSONRequestBody defines body for VerifyCredential for application/json ContentType.

type VerifyCredentialResponse

type VerifyCredentialResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *VerifyCredentialResult
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *BadRequest
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *Unauthorized
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *UnexpectedError
}

func ParseVerifyCredentialResponse

func ParseVerifyCredentialResponse(rsp *http.Response) (*VerifyCredentialResponse, error)

ParseVerifyCredentialResponse parses an HTTP response from a VerifyCredentialWithResponse call

func (VerifyCredentialResponse) ContentType

func (r VerifyCredentialResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (VerifyCredentialResponse) GetBody

func (r VerifyCredentialResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (VerifyCredentialResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (VerifyCredentialResponse) GetJSON400

func (r VerifyCredentialResponse) GetJSON400() *BadRequest

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (VerifyCredentialResponse) GetJSON401

func (r VerifyCredentialResponse) GetJSON401() *Unauthorized

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (VerifyCredentialResponse) GetJSONDefault

func (r VerifyCredentialResponse) GetJSONDefault() *UnexpectedError

GetJSONDefault returns the response for an HTTP default `application/json` response

func (VerifyCredentialResponse) Status

func (r VerifyCredentialResponse) Status() string

Status returns HTTPResponse.Status

func (VerifyCredentialResponse) StatusCode

func (r VerifyCredentialResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type VerifyCredentialResult

type VerifyCredentialResult struct {
	Active bool `json:"active"`

	// CacheTtlSeconds Per quanto tempo il gateway puo' tenere in cache l'esito.
	CacheTtlSeconds *int `json:"cacheTtlSeconds,omitempty"`

	// Principal Chi ha presentato la credenziale.
	Principal *Principal `json:"principal,omitempty"`
}

VerifyCredentialResult defines model for VerifyCredentialResult.

type Webhook

type Webhook struct {
	Active    bool       `json:"active"`
	CreatedAt time.Time  `json:"createdAt"`
	CreatedBy *IssueUser `json:"createdBy,omitempty"`

	// DisabledAt Quando i fallimenti consecutivi lo hanno disattivato (C7); `null` se attivo o messo in pausa a mano.
	DisabledAt     *time.Time             `json:"disabledAt,omitempty"`
	DisabledReason *WebhookDisabledReason `json:"disabledReason,omitempty"`
	Events         []WebhookEvent         `json:"events"`

	// FailingSince Inizio dei fallimenti consecutivi in corso; dopo 3 giorni il webhook si disattiva.
	FailingSince *time.Time `json:"failingSince,omitempty"`

	// HasSecret Il segreto non torna mai nelle risposte; senza segreto la consegna non e' firmata.
	HasSecret    bool                    `json:"hasSecret"`
	Id           openapi_types.UUID      `json:"id"`
	LastDelivery *WebhookDeliverySummary `json:"lastDelivery,omitempty"`

	// Organization Nome dell'organizzazione, per scope `org`.
	Organization *string `json:"organization,omitempty"`

	// Repository Il repo, per scope `repo`.
	Repository *NotificationRepo `json:"repository,omitempty"`
	Scope      WebhookScope      `json:"scope"`
	UpdatedAt  time.Time         `json:"updatedAt"`
	Url        string            `json:"url"`
}

Webhook defines model for Webhook.

type WebhookDelivery

type WebhookDelivery = WebhookDeliverySummary

WebhookDelivery defines model for WebhookDelivery.

type WebhookDeliveryDetail

type WebhookDeliveryDetail struct {
	// Action Azione dell'evento (es. `opened`, `closed`); vuota per `push`.
	Action *string `json:"action,omitempty"`

	// Attempt Tentativi fatti, al massimo 8 (C7).
	Attempt     int        `json:"attempt"`
	CreatedAt   time.Time  `json:"createdAt"`
	DeliveredAt *time.Time `json:"deliveredAt,omitempty"`
	DurationMs  *int       `json:"durationMs,omitempty"`

	// Error Errore di rete o di protezione SSRF dell'ultimo tentativo; vuoto se c'e' stata una risposta.
	Error *string `json:"error,omitempty"`

	// Event Evento selezionabile (C6): `push`, `issues` (apertura, chiusura, riapertura, modifica, etichette, assegnatari, milestone, blocco), `issue_comment` (creato, modificato, eliminato), `repository` (creato, eliminato, archiviato, ripristinato, rinominato, visibilita'). Payload in docs/webhooks.md.
	Event WebhookEvent `json:"event"`

	// Id Il valore dell'intestazione `X-GitStack-Delivery`.
	Id            openapi_types.UUID     `json:"id"`
	NextAttemptAt *time.Time             `json:"nextAttemptAt,omitempty"`
	RedeliveryOf  *openapi_types.UUID    `json:"redeliveryOf,omitempty"`
	Request       WebhookDeliveryRequest `json:"request"`

	// Response Assente se non c'e' stata nessuna risposta.
	Response *WebhookDeliveryResponse `json:"response,omitempty"`

	// Status `pending`: in coda o in attesa del prossimo tentativo; `success`: risposta 2xx; `failed`: tentativi esauriti (8 in circa 24 ore) o errore non ritentabile; `gone`: il destinatario ha risposto `410 Gone` e la consegna e' ferma (C7).
	Status WebhookDeliveryStatus `json:"status"`

	// StatusCode Codice HTTP dell'ultimo tentativo; assente per errori di rete o timeout di 10 s.
	StatusCode *int `json:"statusCode,omitempty"`
}

WebhookDeliveryDetail defines model for WebhookDeliveryDetail.

type WebhookDeliveryIdParam

type WebhookDeliveryIdParam = openapi_types.UUID

WebhookDeliveryIdParam defines model for WebhookDeliveryIdParam.

type WebhookDeliveryList

type WebhookDeliveryList struct {
	Items   []WebhookDeliverySummary `json:"items"`
	Page    int                      `json:"page"`
	PerPage int                      `json:"perPage"`
	Total   int                      `json:"total"`
}

WebhookDeliveryList defines model for WebhookDeliveryList.

type WebhookDeliveryRequest

type WebhookDeliveryRequest struct {
	// Headers Le intestazioni inviate (`X-GitStack-Event`, `X-GitStack-Delivery`, `X-GitStack-Signature` se c'e' un segreto, ...).
	Headers map[string]string `json:"headers"`

	// Payload Il corpo JSON inviato (formato in docs/webhooks.md).
	Payload map[string]interface{} `json:"payload"`
}

WebhookDeliveryRequest defines model for WebhookDeliveryRequest.

type WebhookDeliveryResponse

type WebhookDeliveryResponse struct {
	// Body Corpo della risposta, troncato a 4 KB (C8).
	Body      string            `json:"body"`
	Headers   map[string]string `json:"headers"`
	Truncated bool              `json:"truncated"`
}

WebhookDeliveryResponse defines model for WebhookDeliveryResponse.

type WebhookDeliveryStatus

type WebhookDeliveryStatus string

WebhookDeliveryStatus `pending`: in coda o in attesa del prossimo tentativo; `success`: risposta 2xx; `failed`: tentativi esauriti (8 in circa 24 ore) o errore non ritentabile; `gone`: il destinatario ha risposto `410 Gone` e la consegna e' ferma (C7).

const (
	WebhookDeliveryStatusFailed  WebhookDeliveryStatus = "failed"
	WebhookDeliveryStatusGone    WebhookDeliveryStatus = "gone"
	WebhookDeliveryStatusPending WebhookDeliveryStatus = "pending"
	WebhookDeliveryStatusSuccess WebhookDeliveryStatus = "success"
)

Defines values for WebhookDeliveryStatus.

func (WebhookDeliveryStatus) Valid

func (e WebhookDeliveryStatus) Valid() bool

Valid indicates whether the value is a known member of the WebhookDeliveryStatus enum.

type WebhookDeliverySummary

type WebhookDeliverySummary struct {
	// Action Azione dell'evento (es. `opened`, `closed`); vuota per `push`.
	Action *string `json:"action,omitempty"`

	// Attempt Tentativi fatti, al massimo 8 (C7).
	Attempt     int        `json:"attempt"`
	CreatedAt   time.Time  `json:"createdAt"`
	DeliveredAt *time.Time `json:"deliveredAt,omitempty"`
	DurationMs  *int       `json:"durationMs,omitempty"`

	// Error Errore di rete o di protezione SSRF dell'ultimo tentativo; vuoto se c'e' stata una risposta.
	Error *string `json:"error,omitempty"`

	// Event Evento selezionabile (C6): `push`, `issues` (apertura, chiusura, riapertura, modifica, etichette, assegnatari, milestone, blocco), `issue_comment` (creato, modificato, eliminato), `repository` (creato, eliminato, archiviato, ripristinato, rinominato, visibilita'). Payload in docs/webhooks.md.
	Event WebhookEvent `json:"event"`

	// Id Il valore dell'intestazione `X-GitStack-Delivery`.
	Id            openapi_types.UUID  `json:"id"`
	NextAttemptAt *time.Time          `json:"nextAttemptAt,omitempty"`
	RedeliveryOf  *openapi_types.UUID `json:"redeliveryOf,omitempty"`

	// Status `pending`: in coda o in attesa del prossimo tentativo; `success`: risposta 2xx; `failed`: tentativi esauriti (8 in circa 24 ore) o errore non ritentabile; `gone`: il destinatario ha risposto `410 Gone` e la consegna e' ferma (C7).
	Status WebhookDeliveryStatus `json:"status"`

	// StatusCode Codice HTTP dell'ultimo tentativo; assente per errori di rete o timeout di 10 s.
	StatusCode *int `json:"statusCode,omitempty"`
}

WebhookDeliverySummary defines model for WebhookDeliverySummary.

type WebhookDisabledReason

type WebhookDisabledReason string

WebhookDisabledReason defines model for Webhook.DisabledReason.

const (
	ConsecutiveFailures WebhookDisabledReason = "consecutive_failures"
)

Defines values for WebhookDisabledReason.

func (WebhookDisabledReason) Valid

func (e WebhookDisabledReason) Valid() bool

Valid indicates whether the value is a known member of the WebhookDisabledReason enum.

type WebhookEvent

type WebhookEvent string

WebhookEvent Evento selezionabile (C6): `push`, `issues` (apertura, chiusura, riapertura, modifica, etichette, assegnatari, milestone, blocco), `issue_comment` (creato, modificato, eliminato), `repository` (creato, eliminato, archiviato, ripristinato, rinominato, visibilita'). Payload in docs/webhooks.md.

const (
	WebhookEventIssueComment WebhookEvent = "issue_comment"
	WebhookEventIssues       WebhookEvent = "issues"
	WebhookEventPush         WebhookEvent = "push"
	WebhookEventRepository   WebhookEvent = "repository"
)

Defines values for WebhookEvent.

func (WebhookEvent) Valid

func (e WebhookEvent) Valid() bool

Valid indicates whether the value is a known member of the WebhookEvent enum.

type WebhookIdParam

type WebhookIdParam = openapi_types.UUID

WebhookIdParam defines model for WebhookIdParam.

type WebhookList

type WebhookList struct {
	Items   []Webhook `json:"items"`
	Page    int       `json:"page"`
	PerPage int       `json:"perPage"`
	Total   int       `json:"total"`
}

WebhookList defines model for WebhookList.

type WebhookScope

type WebhookScope string

WebhookScope defines model for WebhookScope.

const (
	Org  WebhookScope = "org"
	Repo WebhookScope = "repo"
)

Defines values for WebhookScope.

func (WebhookScope) Valid

func (e WebhookScope) Valid() bool

Valid indicates whether the value is a known member of the WebhookScope enum.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL