Documentation
¶
Overview ¶
Package client 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 ¶
- func NewCreateGitRepositoryRequest(server string, params *CreateGitRepositoryParams, ...) (*http.Request, error)
- func NewCreateGitRepositoryRequestWithBody(server string, params *CreateGitRepositoryParams, contentType string, ...) (*http.Request, error)
- func NewDeleteGitRepositoryRequest(server string, gitRepositoryId GitRepositoryIdPath) (*http.Request, error)
- func NewGetGitRepositoryRequest(server string, gitRepositoryId GitRepositoryIdPath) (*http.Request, error)
- func NewListGitRepositoriesRequest(server string, params *ListGitRepositoriesParams) (*http.Request, error)
- func NewUpdateGitRepositoryRequest(server string, gitRepositoryId GitRepositoryIdPath, ...) (*http.Request, error)
- func NewUpdateGitRepositoryRequestWithBody(server string, gitRepositoryId GitRepositoryIdPath, contentType string, ...) (*http.Request, error)
- type Client
- func (c *Client) CreateGitRepository(ctx context.Context, params *CreateGitRepositoryParams, ...) (*http.Response, error)
- func (c *Client) CreateGitRepositoryWithBody(ctx context.Context, params *CreateGitRepositoryParams, contentType string, ...) (*http.Response, error)
- func (c *Client) DeleteGitRepository(ctx context.Context, gitRepositoryId GitRepositoryIdPath, ...) (*http.Response, error)
- func (c *Client) GetGitRepository(ctx context.Context, gitRepositoryId GitRepositoryIdPath, ...) (*http.Response, error)
- func (c *Client) ListGitRepositories(ctx context.Context, params *ListGitRepositoriesParams, ...) (*http.Response, error)
- func (c *Client) UpdateGitRepository(ctx context.Context, gitRepositoryId GitRepositoryIdPath, ...) (*http.Response, error)
- func (c *Client) UpdateGitRepositoryWithBody(ctx context.Context, gitRepositoryId GitRepositoryIdPath, contentType string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateGitRepositoryWithBodyWithResponse(ctx context.Context, params *CreateGitRepositoryParams, contentType string, ...) (*CreateGitRepositoryResponse, error)
- func (c *ClientWithResponses) CreateGitRepositoryWithResponse(ctx context.Context, params *CreateGitRepositoryParams, ...) (*CreateGitRepositoryResponse, error)
- func (c *ClientWithResponses) DeleteGitRepositoryWithResponse(ctx context.Context, gitRepositoryId GitRepositoryIdPath, ...) (*DeleteGitRepositoryResponse, error)
- func (c *ClientWithResponses) GetGitRepositoryWithResponse(ctx context.Context, gitRepositoryId GitRepositoryIdPath, ...) (*GetGitRepositoryResponse, error)
- func (c *ClientWithResponses) ListGitRepositoriesWithResponse(ctx context.Context, params *ListGitRepositoriesParams, ...) (*ListGitRepositoriesResponse, error)
- func (c *ClientWithResponses) UpdateGitRepositoryWithBodyWithResponse(ctx context.Context, gitRepositoryId GitRepositoryIdPath, contentType string, ...) (*UpdateGitRepositoryResponse, error)
- func (c *ClientWithResponses) UpdateGitRepositoryWithResponse(ctx context.Context, gitRepositoryId GitRepositoryIdPath, ...) (*UpdateGitRepositoryResponse, error)
- type ClientWithResponsesInterface
- type CreateGitRepositoryResponse
- func (r CreateGitRepositoryResponse) ContentType() string
- func (r CreateGitRepositoryResponse) GetBody() []byte
- func (r CreateGitRepositoryResponse) GetJSON201() *GitRepository
- func (r CreateGitRepositoryResponse) GetJSON400() *Error
- func (r CreateGitRepositoryResponse) GetJSON401() *Unauthorized
- func (r CreateGitRepositoryResponse) GetJSON403() *Forbidden
- func (r CreateGitRepositoryResponse) GetJSON409() *AlreadyExists
- func (r CreateGitRepositoryResponse) GetJSON500() *InternalServerError
- func (r CreateGitRepositoryResponse) Status() string
- func (r CreateGitRepositoryResponse) StatusCode() int
- type DeleteGitRepositoryResponse
- func (r DeleteGitRepositoryResponse) ContentType() string
- func (r DeleteGitRepositoryResponse) GetBody() []byte
- func (r DeleteGitRepositoryResponse) GetJSON401() *Unauthorized
- func (r DeleteGitRepositoryResponse) GetJSON403() *Forbidden
- func (r DeleteGitRepositoryResponse) GetJSON404() *NotFound
- func (r DeleteGitRepositoryResponse) GetJSON500() *InternalServerError
- func (r DeleteGitRepositoryResponse) Status() string
- func (r DeleteGitRepositoryResponse) StatusCode() int
- type GetGitRepositoryResponse
- func (r GetGitRepositoryResponse) ContentType() string
- func (r GetGitRepositoryResponse) GetBody() []byte
- func (r GetGitRepositoryResponse) GetJSON200() *GitRepository
- func (r GetGitRepositoryResponse) GetJSON401() *Unauthorized
- func (r GetGitRepositoryResponse) GetJSON403() *Forbidden
- func (r GetGitRepositoryResponse) GetJSON404() *NotFound
- func (r GetGitRepositoryResponse) GetJSON500() *InternalServerError
- func (r GetGitRepositoryResponse) Status() string
- func (r GetGitRepositoryResponse) StatusCode() int
- type HttpRequestDoer
- type ListGitRepositoriesResponse
- func (r ListGitRepositoriesResponse) ContentType() string
- func (r ListGitRepositoriesResponse) GetBody() []byte
- func (r ListGitRepositoriesResponse) GetJSON200() *GitRepositoryList
- func (r ListGitRepositoriesResponse) GetJSON400() *BadRequest
- func (r ListGitRepositoriesResponse) GetJSON401() *Unauthorized
- func (r ListGitRepositoriesResponse) GetJSON403() *Forbidden
- func (r ListGitRepositoriesResponse) GetJSON500() *InternalServerError
- func (r ListGitRepositoriesResponse) Status() string
- func (r ListGitRepositoriesResponse) StatusCode() int
- type RequestEditorFn
- type UpdateGitRepositoryResponse
- func (r UpdateGitRepositoryResponse) ContentType() string
- func (r UpdateGitRepositoryResponse) GetBody() []byte
- func (r UpdateGitRepositoryResponse) GetJSON200() *GitRepository
- func (r UpdateGitRepositoryResponse) GetJSON400() *Error
- func (r UpdateGitRepositoryResponse) GetJSON401() *Unauthorized
- func (r UpdateGitRepositoryResponse) GetJSON403() *Forbidden
- func (r UpdateGitRepositoryResponse) GetJSON404() *NotFound
- func (r UpdateGitRepositoryResponse) GetJSON500() *InternalServerError
- func (r UpdateGitRepositoryResponse) Status() string
- func (r UpdateGitRepositoryResponse) StatusCode() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCreateGitRepositoryRequest ¶
func NewCreateGitRepositoryRequest(server string, params *CreateGitRepositoryParams, body CreateGitRepositoryJSONRequestBody) (*http.Request, error)
NewCreateGitRepositoryRequest calls the generic CreateGitRepository builder with application/json body
func NewCreateGitRepositoryRequestWithBody ¶
func NewCreateGitRepositoryRequestWithBody(server string, params *CreateGitRepositoryParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateGitRepositoryRequestWithBody constructs an http.Request for the CreateGitRepository method, with any body, and a specified content type
func NewDeleteGitRepositoryRequest ¶
func NewDeleteGitRepositoryRequest(server string, gitRepositoryId GitRepositoryIdPath) (*http.Request, error)
NewDeleteGitRepositoryRequest constructs an http.Request for the DeleteGitRepository method
func NewGetGitRepositoryRequest ¶
func NewGetGitRepositoryRequest(server string, gitRepositoryId GitRepositoryIdPath) (*http.Request, error)
NewGetGitRepositoryRequest constructs an http.Request for the GetGitRepository method
func NewListGitRepositoriesRequest ¶
func NewListGitRepositoriesRequest(server string, params *ListGitRepositoriesParams) (*http.Request, error)
NewListGitRepositoriesRequest constructs an http.Request for the ListGitRepositories method
func NewUpdateGitRepositoryRequest ¶
func NewUpdateGitRepositoryRequest(server string, gitRepositoryId GitRepositoryIdPath, body UpdateGitRepositoryJSONRequestBody) (*http.Request, error)
NewUpdateGitRepositoryRequest calls the generic UpdateGitRepository builder with application/json body
func NewUpdateGitRepositoryRequestWithBody ¶
func NewUpdateGitRepositoryRequestWithBody(server string, gitRepositoryId GitRepositoryIdPath, contentType string, body io.Reader) (*http.Request, error)
NewUpdateGitRepositoryRequestWithBody constructs an http.Request for the UpdateGitRepository method, with any body, and a specified content type
Types ¶
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) CreateGitRepository ¶
func (c *Client) CreateGitRepository(ctx context.Context, params *CreateGitRepositoryParams, body CreateGitRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateGitRepository Create a git repository
Creates a new git repository configuration.
Supports user-specified IDs via the 'id' query parameter for idempotency. If the ID is not provided, the server will generate one.
Takes a body of the `application/json` content type.
Corresponds with POST /git-repositories (the `CreateGitRepository` operationId).
func (*Client) CreateGitRepositoryWithBody ¶
func (c *Client) CreateGitRepositoryWithBody(ctx context.Context, params *CreateGitRepositoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateGitRepositoryWithBody Create a git repository
Creates a new git repository configuration.
Supports user-specified IDs via the 'id' query parameter for idempotency. If the ID is not provided, the server will generate one.
Takes any type of body and a specified content type.
Corresponds with POST /git-repositories (the `CreateGitRepository` operationId).
func (*Client) DeleteGitRepository ¶
func (c *Client) DeleteGitRepository(ctx context.Context, gitRepositoryId GitRepositoryIdPath, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteGitRepository Delete a git repository
Deletes a git repository configuration.
Corresponds with DELETE /git-repositories/{gitRepositoryId} (the `DeleteGitRepository` operationId).
func (*Client) GetGitRepository ¶
func (c *Client) GetGitRepository(ctx context.Context, gitRepositoryId GitRepositoryIdPath, reqEditors ...RequestEditorFn) (*http.Response, error)
GetGitRepository Get a git repository
Retrieves a single git repository configuration by its ID.
Corresponds with GET /git-repositories/{gitRepositoryId} (the `GetGitRepository` operationId).
func (*Client) ListGitRepositories ¶
func (c *Client) ListGitRepositories(ctx context.Context, params *ListGitRepositoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListGitRepositories List git repositories
Retrieves a paginated list of git repository configurations. Supports standard pagination using page tokens.
Corresponds with GET /git-repositories (the `ListGitRepositories` operationId).
func (*Client) UpdateGitRepository ¶
func (c *Client) UpdateGitRepository(ctx context.Context, gitRepositoryId GitRepositoryIdPath, body UpdateGitRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateGitRepository Update a git repository
Replaces a git repository configuration.
Takes a body of the `application/json` content type.
Corresponds with PUT /git-repositories/{gitRepositoryId} (the `UpdateGitRepository` operationId).
func (*Client) UpdateGitRepositoryWithBody ¶
func (c *Client) UpdateGitRepositoryWithBody(ctx context.Context, gitRepositoryId GitRepositoryIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateGitRepositoryWithBody Update a git repository
Replaces a git repository configuration.
Takes any type of body and a specified content type.
Corresponds with PUT /git-repositories/{gitRepositoryId} (the `UpdateGitRepository` operationId).
type ClientInterface ¶
type ClientInterface interface {
// ListGitRepositories List git repositories
//
// Retrieves a paginated list of git repository configurations.
// Supports standard pagination using page tokens.
//
// Corresponds with GET /git-repositories (the `ListGitRepositories` operationId).
ListGitRepositories(ctx context.Context, params *ListGitRepositoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateGitRepositoryWithBody Create a git repository
//
// Creates a new git repository configuration.
//
// Supports user-specified IDs via the 'id' query parameter for idempotency.
// If the ID is not provided, the server will generate one.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /git-repositories (the `CreateGitRepository` operationId).
CreateGitRepositoryWithBody(ctx context.Context, params *CreateGitRepositoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateGitRepository Create a git repository
//
// Creates a new git repository configuration.
//
// Supports user-specified IDs via the 'id' query parameter for idempotency.
// If the ID is not provided, the server will generate one.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /git-repositories (the `CreateGitRepository` operationId).
CreateGitRepository(ctx context.Context, params *CreateGitRepositoryParams, body CreateGitRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteGitRepository Delete a git repository
//
// Deletes a git repository configuration.
//
// Corresponds with DELETE /git-repositories/{gitRepositoryId} (the `DeleteGitRepository` operationId).
DeleteGitRepository(ctx context.Context, gitRepositoryId GitRepositoryIdPath, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetGitRepository Get a git repository
//
// Retrieves a single git repository configuration by its ID.
//
// Corresponds with GET /git-repositories/{gitRepositoryId} (the `GetGitRepository` operationId).
GetGitRepository(ctx context.Context, gitRepositoryId GitRepositoryIdPath, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateGitRepositoryWithBody Update a git repository
//
// Replaces a git repository configuration.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /git-repositories/{gitRepositoryId} (the `UpdateGitRepository` operationId).
UpdateGitRepositoryWithBody(ctx context.Context, gitRepositoryId GitRepositoryIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateGitRepository Update a git repository
//
// Replaces a git repository configuration.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PUT /git-repositories/{gitRepositoryId} (the `UpdateGitRepository` operationId).
UpdateGitRepository(ctx context.Context, gitRepositoryId GitRepositoryIdPath, body UpdateGitRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
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) CreateGitRepositoryWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateGitRepositoryWithBodyWithResponse(ctx context.Context, params *CreateGitRepositoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGitRepositoryResponse, error)
CreateGitRepositoryWithBodyWithResponse Create a git repository
Creates a new git repository configuration.
Supports user-specified IDs via the 'id' query parameter for idempotency. If the ID is not provided, the server will generate one.
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 /git-repositories (the `CreateGitRepository` operationId).
func (*ClientWithResponses) CreateGitRepositoryWithResponse ¶
func (c *ClientWithResponses) CreateGitRepositoryWithResponse(ctx context.Context, params *CreateGitRepositoryParams, body CreateGitRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGitRepositoryResponse, error)
CreateGitRepositoryWithResponse Create a git repository
Creates a new git repository configuration.
Supports user-specified IDs via the 'id' query parameter for idempotency. If the ID is not provided, the server will generate one.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /git-repositories (the `CreateGitRepository` operationId).
func (*ClientWithResponses) DeleteGitRepositoryWithResponse ¶
func (c *ClientWithResponses) DeleteGitRepositoryWithResponse(ctx context.Context, gitRepositoryId GitRepositoryIdPath, reqEditors ...RequestEditorFn) (*DeleteGitRepositoryResponse, error)
DeleteGitRepositoryWithResponse Delete a git repository
Deletes a git repository configuration.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /git-repositories/{gitRepositoryId} (the `DeleteGitRepository` operationId).
func (*ClientWithResponses) GetGitRepositoryWithResponse ¶
func (c *ClientWithResponses) GetGitRepositoryWithResponse(ctx context.Context, gitRepositoryId GitRepositoryIdPath, reqEditors ...RequestEditorFn) (*GetGitRepositoryResponse, error)
GetGitRepositoryWithResponse Get a git repository
Retrieves a single git repository configuration by its ID.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /git-repositories/{gitRepositoryId} (the `GetGitRepository` operationId).
func (*ClientWithResponses) ListGitRepositoriesWithResponse ¶
func (c *ClientWithResponses) ListGitRepositoriesWithResponse(ctx context.Context, params *ListGitRepositoriesParams, reqEditors ...RequestEditorFn) (*ListGitRepositoriesResponse, error)
ListGitRepositoriesWithResponse List git repositories
Retrieves a paginated list of git repository configurations. Supports standard pagination using page tokens.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /git-repositories (the `ListGitRepositories` operationId).
func (*ClientWithResponses) UpdateGitRepositoryWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateGitRepositoryWithBodyWithResponse(ctx context.Context, gitRepositoryId GitRepositoryIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateGitRepositoryResponse, error)
UpdateGitRepositoryWithBodyWithResponse Update a git repository
Replaces a git repository configuration.
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 /git-repositories/{gitRepositoryId} (the `UpdateGitRepository` operationId).
func (*ClientWithResponses) UpdateGitRepositoryWithResponse ¶
func (c *ClientWithResponses) UpdateGitRepositoryWithResponse(ctx context.Context, gitRepositoryId GitRepositoryIdPath, body UpdateGitRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateGitRepositoryResponse, error)
UpdateGitRepositoryWithResponse Update a git repository
Replaces a git repository configuration.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /git-repositories/{gitRepositoryId} (the `UpdateGitRepository` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListGitRepositoriesWithResponse List git repositories
//
// Retrieves a paginated list of git repository configurations.
// Supports standard pagination using page tokens.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /git-repositories (the `ListGitRepositories` operationId).
ListGitRepositoriesWithResponse(ctx context.Context, params *ListGitRepositoriesParams, reqEditors ...RequestEditorFn) (*ListGitRepositoriesResponse, error)
// CreateGitRepositoryWithBodyWithResponse Create a git repository
//
// Creates a new git repository configuration.
//
// Supports user-specified IDs via the 'id' query parameter for idempotency.
// If the ID is not provided, the server will generate one.
//
// 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 /git-repositories (the `CreateGitRepository` operationId).
CreateGitRepositoryWithBodyWithResponse(ctx context.Context, params *CreateGitRepositoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGitRepositoryResponse, error)
// CreateGitRepositoryWithResponse Create a git repository
//
// Creates a new git repository configuration.
//
// Supports user-specified IDs via the 'id' query parameter for idempotency.
// If the ID is not provided, the server will generate one.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /git-repositories (the `CreateGitRepository` operationId).
CreateGitRepositoryWithResponse(ctx context.Context, params *CreateGitRepositoryParams, body CreateGitRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGitRepositoryResponse, error)
// DeleteGitRepositoryWithResponse Delete a git repository
//
// Deletes a git repository configuration.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /git-repositories/{gitRepositoryId} (the `DeleteGitRepository` operationId).
DeleteGitRepositoryWithResponse(ctx context.Context, gitRepositoryId GitRepositoryIdPath, reqEditors ...RequestEditorFn) (*DeleteGitRepositoryResponse, error)
// GetGitRepositoryWithResponse Get a git repository
//
// Retrieves a single git repository configuration by its ID.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /git-repositories/{gitRepositoryId} (the `GetGitRepository` operationId).
GetGitRepositoryWithResponse(ctx context.Context, gitRepositoryId GitRepositoryIdPath, reqEditors ...RequestEditorFn) (*GetGitRepositoryResponse, error)
// UpdateGitRepositoryWithBodyWithResponse Update a git repository
//
// Replaces a git repository configuration.
//
// 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 /git-repositories/{gitRepositoryId} (the `UpdateGitRepository` operationId).
UpdateGitRepositoryWithBodyWithResponse(ctx context.Context, gitRepositoryId GitRepositoryIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateGitRepositoryResponse, error)
// UpdateGitRepositoryWithResponse Update a git repository
//
// Replaces a git repository configuration.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /git-repositories/{gitRepositoryId} (the `UpdateGitRepository` operationId).
UpdateGitRepositoryWithResponse(ctx context.Context, gitRepositoryId GitRepositoryIdPath, body UpdateGitRepositoryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateGitRepositoryResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateGitRepositoryResponse ¶
type CreateGitRepositoryResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *GitRepository
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// 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 *AlreadyExists
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}
func ParseCreateGitRepositoryResponse ¶
func ParseCreateGitRepositoryResponse(rsp *http.Response) (*CreateGitRepositoryResponse, error)
ParseCreateGitRepositoryResponse parses an HTTP response from a CreateGitRepositoryWithResponse call
func (CreateGitRepositoryResponse) ContentType ¶
func (r CreateGitRepositoryResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateGitRepositoryResponse) GetBody ¶
func (r CreateGitRepositoryResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateGitRepositoryResponse) GetJSON201 ¶
func (r CreateGitRepositoryResponse) GetJSON201() *GitRepository
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateGitRepositoryResponse) GetJSON400 ¶
func (r CreateGitRepositoryResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CreateGitRepositoryResponse) GetJSON401 ¶
func (r CreateGitRepositoryResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (CreateGitRepositoryResponse) GetJSON403 ¶
func (r CreateGitRepositoryResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (CreateGitRepositoryResponse) GetJSON409 ¶
func (r CreateGitRepositoryResponse) GetJSON409() *AlreadyExists
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (CreateGitRepositoryResponse) GetJSON500 ¶
func (r CreateGitRepositoryResponse) GetJSON500() *InternalServerError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (CreateGitRepositoryResponse) Status ¶
func (r CreateGitRepositoryResponse) Status() string
Status returns HTTPResponse.Status
func (CreateGitRepositoryResponse) StatusCode ¶
func (r CreateGitRepositoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteGitRepositoryResponse ¶
type DeleteGitRepositoryResponse 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
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}
func ParseDeleteGitRepositoryResponse ¶
func ParseDeleteGitRepositoryResponse(rsp *http.Response) (*DeleteGitRepositoryResponse, error)
ParseDeleteGitRepositoryResponse parses an HTTP response from a DeleteGitRepositoryWithResponse call
func (DeleteGitRepositoryResponse) ContentType ¶
func (r DeleteGitRepositoryResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteGitRepositoryResponse) GetBody ¶
func (r DeleteGitRepositoryResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteGitRepositoryResponse) GetJSON401 ¶
func (r DeleteGitRepositoryResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (DeleteGitRepositoryResponse) GetJSON403 ¶
func (r DeleteGitRepositoryResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (DeleteGitRepositoryResponse) GetJSON404 ¶
func (r DeleteGitRepositoryResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DeleteGitRepositoryResponse) GetJSON500 ¶
func (r DeleteGitRepositoryResponse) GetJSON500() *InternalServerError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (DeleteGitRepositoryResponse) Status ¶
func (r DeleteGitRepositoryResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteGitRepositoryResponse) StatusCode ¶
func (r DeleteGitRepositoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetGitRepositoryResponse ¶
type GetGitRepositoryResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GitRepository
// 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
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}
func ParseGetGitRepositoryResponse ¶
func ParseGetGitRepositoryResponse(rsp *http.Response) (*GetGitRepositoryResponse, error)
ParseGetGitRepositoryResponse parses an HTTP response from a GetGitRepositoryWithResponse call
func (GetGitRepositoryResponse) ContentType ¶
func (r GetGitRepositoryResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetGitRepositoryResponse) GetBody ¶
func (r GetGitRepositoryResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetGitRepositoryResponse) GetJSON200 ¶
func (r GetGitRepositoryResponse) GetJSON200() *GitRepository
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetGitRepositoryResponse) GetJSON401 ¶
func (r GetGitRepositoryResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetGitRepositoryResponse) GetJSON403 ¶
func (r GetGitRepositoryResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetGitRepositoryResponse) GetJSON404 ¶
func (r GetGitRepositoryResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetGitRepositoryResponse) GetJSON500 ¶
func (r GetGitRepositoryResponse) GetJSON500() *InternalServerError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetGitRepositoryResponse) Status ¶
func (r GetGitRepositoryResponse) Status() string
Status returns HTTPResponse.Status
func (GetGitRepositoryResponse) StatusCode ¶
func (r GetGitRepositoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ListGitRepositoriesResponse ¶
type ListGitRepositoriesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GitRepositoryList
// 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
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}
func ParseListGitRepositoriesResponse ¶
func ParseListGitRepositoriesResponse(rsp *http.Response) (*ListGitRepositoriesResponse, error)
ParseListGitRepositoriesResponse parses an HTTP response from a ListGitRepositoriesWithResponse call
func (ListGitRepositoriesResponse) ContentType ¶
func (r ListGitRepositoriesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListGitRepositoriesResponse) GetBody ¶
func (r ListGitRepositoriesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListGitRepositoriesResponse) GetJSON200 ¶
func (r ListGitRepositoriesResponse) GetJSON200() *GitRepositoryList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListGitRepositoriesResponse) GetJSON400 ¶
func (r ListGitRepositoriesResponse) GetJSON400() *BadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListGitRepositoriesResponse) GetJSON401 ¶
func (r ListGitRepositoriesResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListGitRepositoriesResponse) GetJSON403 ¶
func (r ListGitRepositoriesResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListGitRepositoriesResponse) GetJSON500 ¶
func (r ListGitRepositoriesResponse) GetJSON500() *InternalServerError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListGitRepositoriesResponse) Status ¶
func (r ListGitRepositoriesResponse) Status() string
Status returns HTTPResponse.Status
func (ListGitRepositoriesResponse) StatusCode ¶
func (r ListGitRepositoriesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type UpdateGitRepositoryResponse ¶
type UpdateGitRepositoryResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GitRepository
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// 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
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *InternalServerError
}
func ParseUpdateGitRepositoryResponse ¶
func ParseUpdateGitRepositoryResponse(rsp *http.Response) (*UpdateGitRepositoryResponse, error)
ParseUpdateGitRepositoryResponse parses an HTTP response from a UpdateGitRepositoryWithResponse call
func (UpdateGitRepositoryResponse) ContentType ¶
func (r UpdateGitRepositoryResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateGitRepositoryResponse) GetBody ¶
func (r UpdateGitRepositoryResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateGitRepositoryResponse) GetJSON200 ¶
func (r UpdateGitRepositoryResponse) GetJSON200() *GitRepository
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateGitRepositoryResponse) GetJSON400 ¶
func (r UpdateGitRepositoryResponse) GetJSON400() *Error
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (UpdateGitRepositoryResponse) GetJSON401 ¶
func (r UpdateGitRepositoryResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (UpdateGitRepositoryResponse) GetJSON403 ¶
func (r UpdateGitRepositoryResponse) GetJSON403() *Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (UpdateGitRepositoryResponse) GetJSON404 ¶
func (r UpdateGitRepositoryResponse) GetJSON404() *NotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (UpdateGitRepositoryResponse) GetJSON500 ¶
func (r UpdateGitRepositoryResponse) GetJSON500() *InternalServerError
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (UpdateGitRepositoryResponse) Status ¶
func (r UpdateGitRepositoryResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateGitRepositoryResponse) StatusCode ¶
func (r UpdateGitRepositoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode