Documentation
¶
Overview ¶
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.0 DO NOT EDIT.
Package api is the generated pgEdge Accounts API client. Do not edit client.gen.go by hand; regenerate with `make generate`.
Index ¶
- Constants
- func NewCreateClientRequest(server string, body CreateClientJSONRequestBody) (*http.Request, error)
- func NewCreateClientRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateInviteRequest(server string, body CreateInviteJSONRequestBody) (*http.Request, error)
- func NewCreateInviteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteClientRequest(server string, id UUID) (*http.Request, error)
- func NewDeleteInviteRequest(server string, id UUID) (*http.Request, error)
- func NewDeleteMembershipRequest(server string, id UUID) (*http.Request, error)
- func NewGenerateAccessTokenRequest(server string, body GenerateAccessTokenJSONRequestBody) (*http.Request, error)
- func NewGenerateAccessTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGenerateAccessTokenRequestWithFormdataBody(server string, body GenerateAccessTokenFormdataRequestBody) (*http.Request, error)
- func NewGetAccountOpenApiSpecRequest(server string) (*http.Request, error)
- func NewGetAccountPublicOpenApiSpecRequest(server string) (*http.Request, error)
- func NewGetClientRequest(server string, id UUID) (*http.Request, error)
- func NewGetCurrentUserRequest(server string) (*http.Request, error)
- func NewGetInviteRequest(server string, id UUID) (*http.Request, error)
- func NewGetTenantRequest(server string, id UUID) (*http.Request, error)
- func NewListClientsRequest(server string) (*http.Request, error)
- func NewListInvitesRequest(server string) (*http.Request, error)
- func NewListMembershipsRequest(server string) (*http.Request, error)
- func NewListTenantsRequest(server string) (*http.Request, error)
- func NewUpdateClientRequest(server string, id UUID, body UpdateClientJSONRequestBody) (*http.Request, error)
- func NewUpdateClientRequestWithBody(server string, id UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateCurrentUserRequest(server string, body UpdateCurrentUserJSONRequestBody) (*http.Request, error)
- func NewUpdateCurrentUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateTenantRequest(server string, id UUID, body UpdateTenantJSONRequestBody) (*http.Request, error)
- func NewUpdateTenantRequestWithBody(server string, id UUID, contentType string, body io.Reader) (*http.Request, error)
- type AccessToken
- type AccessTokenRequest
- type AccessTokenRequestGrantType
- type ApiClient
- type Client
- func (c *Client) CreateClient(ctx context.Context, body CreateClientJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateClientWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateInvite(ctx context.Context, body CreateInviteJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateInviteWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteClient(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteInvite(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteMembership(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GenerateAccessToken(ctx context.Context, body GenerateAccessTokenJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GenerateAccessTokenWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GenerateAccessTokenWithFormdataBody(ctx context.Context, body GenerateAccessTokenFormdataRequestBody, ...) (*http.Response, error)
- func (c *Client) GetAccountOpenApiSpec(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAccountPublicOpenApiSpec(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetClient(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCurrentUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetInvite(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetTenant(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListClients(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListInvites(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListMemberships(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListTenants(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateClient(ctx context.Context, id UUID, body UpdateClientJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateClientWithBody(ctx context.Context, id UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateCurrentUser(ctx context.Context, body UpdateCurrentUserJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateCurrentUserWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateTenant(ctx context.Context, id UUID, body UpdateTenantJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateTenantWithBody(ctx context.Context, id UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateClientWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateClientResponse, error)
- func (c *ClientWithResponses) CreateClientWithResponse(ctx context.Context, body CreateClientJSONRequestBody, ...) (*CreateClientResponse, error)
- func (c *ClientWithResponses) CreateInviteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateInviteResponse, error)
- func (c *ClientWithResponses) CreateInviteWithResponse(ctx context.Context, body CreateInviteJSONRequestBody, ...) (*CreateInviteResponse, error)
- func (c *ClientWithResponses) DeleteClientWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeleteClientResponse, error)
- func (c *ClientWithResponses) DeleteInviteWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeleteInviteResponse, error)
- func (c *ClientWithResponses) DeleteMembershipWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeleteMembershipResponse, error)
- func (c *ClientWithResponses) GenerateAccessTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GenerateAccessTokenResponse, error)
- func (c *ClientWithResponses) GenerateAccessTokenWithFormdataBodyWithResponse(ctx context.Context, body GenerateAccessTokenFormdataRequestBody, ...) (*GenerateAccessTokenResponse, error)
- func (c *ClientWithResponses) GenerateAccessTokenWithResponse(ctx context.Context, body GenerateAccessTokenJSONRequestBody, ...) (*GenerateAccessTokenResponse, error)
- func (c *ClientWithResponses) GetAccountOpenApiSpecWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAccountOpenApiSpecResponse, error)
- func (c *ClientWithResponses) GetAccountPublicOpenApiSpecWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAccountPublicOpenApiSpecResponse, error)
- func (c *ClientWithResponses) GetClientWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*GetClientResponse, error)
- func (c *ClientWithResponses) GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error)
- func (c *ClientWithResponses) GetInviteWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*GetInviteResponse, error)
- func (c *ClientWithResponses) GetTenantWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*GetTenantResponse, error)
- func (c *ClientWithResponses) ListClientsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListClientsResponse, error)
- func (c *ClientWithResponses) ListInvitesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListInvitesResponse, error)
- func (c *ClientWithResponses) ListMembershipsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListMembershipsResponse, error)
- func (c *ClientWithResponses) ListTenantsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListTenantsResponse, error)
- func (c *ClientWithResponses) UpdateClientWithBodyWithResponse(ctx context.Context, id UUID, contentType string, body io.Reader, ...) (*UpdateClientResponse, error)
- func (c *ClientWithResponses) UpdateClientWithResponse(ctx context.Context, id UUID, body UpdateClientJSONRequestBody, ...) (*UpdateClientResponse, error)
- func (c *ClientWithResponses) UpdateCurrentUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UpdateCurrentUserResponse, error)
- func (c *ClientWithResponses) UpdateCurrentUserWithResponse(ctx context.Context, body UpdateCurrentUserJSONRequestBody, ...) (*UpdateCurrentUserResponse, error)
- func (c *ClientWithResponses) UpdateTenantWithBodyWithResponse(ctx context.Context, id UUID, contentType string, body io.Reader, ...) (*UpdateTenantResponse, error)
- func (c *ClientWithResponses) UpdateTenantWithResponse(ctx context.Context, id UUID, body UpdateTenantJSONRequestBody, ...) (*UpdateTenantResponse, error)
- type ClientWithResponsesInterface
- type CreateApiClientInput
- type CreateApiClientResponse
- type CreateClientJSONRequestBody
- type CreateClientResponse
- type CreateInviteInput
- type CreateInviteJSONRequestBody
- type CreateInviteResponse
- type DeleteClientResponse
- type DeleteInviteResponse
- type DeleteMembershipResponse
- type Error
- type ErrorReason
- type GenerateAccessTokenFormdataRequestBody
- type GenerateAccessTokenJSONRequestBody
- type GenerateAccessTokenResponse
- type GetAccountOpenApiSpecResponse
- type GetAccountPublicOpenApiSpecResponse
- type GetClientResponse
- type GetCurrentUserResponse
- type GetInviteResponse
- type GetTenantResponse
- type HttpRequestDoer
- type Invite
- type ListClientsResponse
- type ListInvitesResponse
- type ListMembershipsResponse
- type ListTenantsResponse
- type Membership
- type OpenApiSpec
- type RequestEditorFn
- type Tenant
- type UUID
- type UpdateApiClientInput
- type UpdateClientJSONRequestBody
- type UpdateClientResponse
- type UpdateCurrentUserJSONRequestBody
- type UpdateCurrentUserResponse
- type UpdateTenantInput
- type UpdateTenantJSONRequestBody
- type UpdateTenantResponse
- type UpdateUserInput
- type User
Constants ¶
const (
AccessTokenScopes accessTokenContextKey = "AccessToken.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewCreateClientRequest ¶
func NewCreateClientRequest(server string, body CreateClientJSONRequestBody) (*http.Request, error)
NewCreateClientRequest calls the generic CreateClient builder with application/json body
func NewCreateClientRequestWithBody ¶
func NewCreateClientRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateClientRequestWithBody generates requests for CreateClient with any type of body
func NewCreateInviteRequest ¶
func NewCreateInviteRequest(server string, body CreateInviteJSONRequestBody) (*http.Request, error)
NewCreateInviteRequest calls the generic CreateInvite builder with application/json body
func NewCreateInviteRequestWithBody ¶
func NewCreateInviteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateInviteRequestWithBody generates requests for CreateInvite with any type of body
func NewDeleteClientRequest ¶
NewDeleteClientRequest generates requests for DeleteClient
func NewDeleteInviteRequest ¶
NewDeleteInviteRequest generates requests for DeleteInvite
func NewDeleteMembershipRequest ¶
NewDeleteMembershipRequest generates requests for DeleteMembership
func NewGenerateAccessTokenRequest ¶
func NewGenerateAccessTokenRequest(server string, body GenerateAccessTokenJSONRequestBody) (*http.Request, error)
NewGenerateAccessTokenRequest calls the generic GenerateAccessToken builder with application/json body
func NewGenerateAccessTokenRequestWithBody ¶
func NewGenerateAccessTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGenerateAccessTokenRequestWithBody generates requests for GenerateAccessToken with any type of body
func NewGenerateAccessTokenRequestWithFormdataBody ¶
func NewGenerateAccessTokenRequestWithFormdataBody(server string, body GenerateAccessTokenFormdataRequestBody) (*http.Request, error)
NewGenerateAccessTokenRequestWithFormdataBody calls the generic GenerateAccessToken builder with application/x-www-form-urlencoded body
func NewGetAccountOpenApiSpecRequest ¶
NewGetAccountOpenApiSpecRequest generates requests for GetAccountOpenApiSpec
func NewGetAccountPublicOpenApiSpecRequest ¶
NewGetAccountPublicOpenApiSpecRequest generates requests for GetAccountPublicOpenApiSpec
func NewGetClientRequest ¶
NewGetClientRequest generates requests for GetClient
func NewGetCurrentUserRequest ¶
NewGetCurrentUserRequest generates requests for GetCurrentUser
func NewGetInviteRequest ¶
NewGetInviteRequest generates requests for GetInvite
func NewGetTenantRequest ¶
NewGetTenantRequest generates requests for GetTenant
func NewListClientsRequest ¶
NewListClientsRequest generates requests for ListClients
func NewListInvitesRequest ¶
NewListInvitesRequest generates requests for ListInvites
func NewListMembershipsRequest ¶
NewListMembershipsRequest generates requests for ListMemberships
func NewListTenantsRequest ¶
NewListTenantsRequest generates requests for ListTenants
func NewUpdateClientRequest ¶
func NewUpdateClientRequest(server string, id UUID, body UpdateClientJSONRequestBody) (*http.Request, error)
NewUpdateClientRequest calls the generic UpdateClient builder with application/json body
func NewUpdateClientRequestWithBody ¶
func NewUpdateClientRequestWithBody(server string, id UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateClientRequestWithBody generates requests for UpdateClient with any type of body
func NewUpdateCurrentUserRequest ¶
func NewUpdateCurrentUserRequest(server string, body UpdateCurrentUserJSONRequestBody) (*http.Request, error)
NewUpdateCurrentUserRequest calls the generic UpdateCurrentUser builder with application/json body
func NewUpdateCurrentUserRequestWithBody ¶
func NewUpdateCurrentUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateCurrentUserRequestWithBody generates requests for UpdateCurrentUser with any type of body
func NewUpdateTenantRequest ¶
func NewUpdateTenantRequest(server string, id UUID, body UpdateTenantJSONRequestBody) (*http.Request, error)
NewUpdateTenantRequest calls the generic UpdateTenant builder with application/json body
Types ¶
type AccessToken ¶
type AccessToken struct {
AccessToken string `json:"access_token"`
ExpiresIn int `json:"expires_in"`
TokenType string `json:"token_type"`
}
AccessToken defines model for AccessToken.
type AccessTokenRequest ¶
type AccessTokenRequest struct {
ClientId string `json:"client_id"`
ClientSecret string `json:"client_secret"`
GrantType *AccessTokenRequestGrantType `json:"grant_type,omitempty"`
}
AccessTokenRequest defines model for AccessTokenRequest.
type AccessTokenRequestGrantType ¶
type AccessTokenRequestGrantType string
AccessTokenRequestGrantType defines model for AccessTokenRequest.GrantType.
const (
ClientCredentials AccessTokenRequestGrantType = "client_credentials"
)
Defines values for AccessTokenRequestGrantType.
func (AccessTokenRequestGrantType) Valid ¶
func (e AccessTokenRequestGrantType) Valid() bool
Valid indicates whether the value is a known member of the AccessTokenRequestGrantType enum.
type ApiClient ¶
type ApiClient struct {
Auth0Id string `json:"auth0_id"`
CreatedAt string `json:"created_at"`
Description string `json:"description"`
Id string `json:"id"`
Name string `json:"name"`
UpdatedAt string `json:"updated_at"`
}
ApiClient defines model for ApiClient.
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) CreateClient ¶
func (c *Client) CreateClient(ctx context.Context, body CreateClientJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateClientWithBody ¶
func (*Client) CreateInvite ¶
func (c *Client) CreateInvite(ctx context.Context, body CreateInviteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateInviteWithBody ¶
func (*Client) DeleteClient ¶
func (*Client) DeleteInvite ¶
func (*Client) DeleteMembership ¶
func (*Client) GenerateAccessToken ¶
func (c *Client) GenerateAccessToken(ctx context.Context, body GenerateAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GenerateAccessTokenWithBody ¶
func (*Client) GenerateAccessTokenWithFormdataBody ¶
func (c *Client) GenerateAccessTokenWithFormdataBody(ctx context.Context, body GenerateAccessTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetAccountOpenApiSpec ¶
func (*Client) GetAccountPublicOpenApiSpec ¶
func (*Client) GetCurrentUser ¶
func (*Client) ListClients ¶
func (*Client) ListInvites ¶
func (*Client) ListMemberships ¶
func (*Client) ListTenants ¶
func (*Client) UpdateClient ¶
func (c *Client) UpdateClient(ctx context.Context, id UUID, body UpdateClientJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateClientWithBody ¶
func (*Client) UpdateCurrentUser ¶
func (c *Client) UpdateCurrentUser(ctx context.Context, body UpdateCurrentUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateCurrentUserWithBody ¶
func (*Client) UpdateTenant ¶
func (c *Client) UpdateTenant(ctx context.Context, id UUID, body UpdateTenantJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// ListClients request
ListClients(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateClientWithBody request with any body
CreateClientWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateClient(ctx context.Context, body CreateClientJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteClient request
DeleteClient(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetClient request
GetClient(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateClientWithBody request with any body
UpdateClientWithBody(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateClient(ctx context.Context, id UUID, body UpdateClientJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListInvites request
ListInvites(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateInviteWithBody request with any body
CreateInviteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateInvite(ctx context.Context, body CreateInviteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteInvite request
DeleteInvite(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetInvite request
GetInvite(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListMemberships request
ListMemberships(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteMembership request
DeleteMembership(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GenerateAccessTokenWithBody request with any body
GenerateAccessTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GenerateAccessToken(ctx context.Context, body GenerateAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
GenerateAccessTokenWithFormdataBody(ctx context.Context, body GenerateAccessTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAccountOpenApiSpec request
GetAccountOpenApiSpec(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAccountPublicOpenApiSpec request
GetAccountPublicOpenApiSpec(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListTenants request
ListTenants(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetTenant request
GetTenant(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateTenantWithBody request with any body
UpdateTenantWithBody(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateTenant(ctx context.Context, id UUID, body UpdateTenantJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCurrentUser request
GetCurrentUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateCurrentUserWithBody request with any body
UpdateCurrentUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateCurrentUser(ctx context.Context, body UpdateCurrentUserJSONRequestBody, 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) CreateClientWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateClientWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClientResponse, error)
CreateClientWithBodyWithResponse request with arbitrary body returning *CreateClientResponse
func (*ClientWithResponses) CreateClientWithResponse ¶
func (c *ClientWithResponses) CreateClientWithResponse(ctx context.Context, body CreateClientJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClientResponse, error)
func (*ClientWithResponses) CreateInviteWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateInviteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInviteResponse, error)
CreateInviteWithBodyWithResponse request with arbitrary body returning *CreateInviteResponse
func (*ClientWithResponses) CreateInviteWithResponse ¶
func (c *ClientWithResponses) CreateInviteWithResponse(ctx context.Context, body CreateInviteJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInviteResponse, error)
func (*ClientWithResponses) DeleteClientWithResponse ¶
func (c *ClientWithResponses) DeleteClientWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeleteClientResponse, error)
DeleteClientWithResponse request returning *DeleteClientResponse
func (*ClientWithResponses) DeleteInviteWithResponse ¶
func (c *ClientWithResponses) DeleteInviteWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeleteInviteResponse, error)
DeleteInviteWithResponse request returning *DeleteInviteResponse
func (*ClientWithResponses) DeleteMembershipWithResponse ¶
func (c *ClientWithResponses) DeleteMembershipWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeleteMembershipResponse, error)
DeleteMembershipWithResponse request returning *DeleteMembershipResponse
func (*ClientWithResponses) GenerateAccessTokenWithBodyWithResponse ¶
func (c *ClientWithResponses) GenerateAccessTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateAccessTokenResponse, error)
GenerateAccessTokenWithBodyWithResponse request with arbitrary body returning *GenerateAccessTokenResponse
func (*ClientWithResponses) GenerateAccessTokenWithFormdataBodyWithResponse ¶
func (c *ClientWithResponses) GenerateAccessTokenWithFormdataBodyWithResponse(ctx context.Context, body GenerateAccessTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*GenerateAccessTokenResponse, error)
func (*ClientWithResponses) GenerateAccessTokenWithResponse ¶
func (c *ClientWithResponses) GenerateAccessTokenWithResponse(ctx context.Context, body GenerateAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateAccessTokenResponse, error)
func (*ClientWithResponses) GetAccountOpenApiSpecWithResponse ¶
func (c *ClientWithResponses) GetAccountOpenApiSpecWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAccountOpenApiSpecResponse, error)
GetAccountOpenApiSpecWithResponse request returning *GetAccountOpenApiSpecResponse
func (*ClientWithResponses) GetAccountPublicOpenApiSpecWithResponse ¶
func (c *ClientWithResponses) GetAccountPublicOpenApiSpecWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAccountPublicOpenApiSpecResponse, error)
GetAccountPublicOpenApiSpecWithResponse request returning *GetAccountPublicOpenApiSpecResponse
func (*ClientWithResponses) GetClientWithResponse ¶
func (c *ClientWithResponses) GetClientWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*GetClientResponse, error)
GetClientWithResponse request returning *GetClientResponse
func (*ClientWithResponses) GetCurrentUserWithResponse ¶
func (c *ClientWithResponses) GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error)
GetCurrentUserWithResponse request returning *GetCurrentUserResponse
func (*ClientWithResponses) GetInviteWithResponse ¶
func (c *ClientWithResponses) GetInviteWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*GetInviteResponse, error)
GetInviteWithResponse request returning *GetInviteResponse
func (*ClientWithResponses) GetTenantWithResponse ¶
func (c *ClientWithResponses) GetTenantWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*GetTenantResponse, error)
GetTenantWithResponse request returning *GetTenantResponse
func (*ClientWithResponses) ListClientsWithResponse ¶
func (c *ClientWithResponses) ListClientsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListClientsResponse, error)
ListClientsWithResponse request returning *ListClientsResponse
func (*ClientWithResponses) ListInvitesWithResponse ¶
func (c *ClientWithResponses) ListInvitesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListInvitesResponse, error)
ListInvitesWithResponse request returning *ListInvitesResponse
func (*ClientWithResponses) ListMembershipsWithResponse ¶
func (c *ClientWithResponses) ListMembershipsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListMembershipsResponse, error)
ListMembershipsWithResponse request returning *ListMembershipsResponse
func (*ClientWithResponses) ListTenantsWithResponse ¶
func (c *ClientWithResponses) ListTenantsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListTenantsResponse, error)
ListTenantsWithResponse request returning *ListTenantsResponse
func (*ClientWithResponses) UpdateClientWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateClientWithBodyWithResponse(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClientResponse, error)
UpdateClientWithBodyWithResponse request with arbitrary body returning *UpdateClientResponse
func (*ClientWithResponses) UpdateClientWithResponse ¶
func (c *ClientWithResponses) UpdateClientWithResponse(ctx context.Context, id UUID, body UpdateClientJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClientResponse, error)
func (*ClientWithResponses) UpdateCurrentUserWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateCurrentUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCurrentUserResponse, error)
UpdateCurrentUserWithBodyWithResponse request with arbitrary body returning *UpdateCurrentUserResponse
func (*ClientWithResponses) UpdateCurrentUserWithResponse ¶
func (c *ClientWithResponses) UpdateCurrentUserWithResponse(ctx context.Context, body UpdateCurrentUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCurrentUserResponse, error)
func (*ClientWithResponses) UpdateTenantWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateTenantWithBodyWithResponse(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTenantResponse, error)
UpdateTenantWithBodyWithResponse request with arbitrary body returning *UpdateTenantResponse
func (*ClientWithResponses) UpdateTenantWithResponse ¶
func (c *ClientWithResponses) UpdateTenantWithResponse(ctx context.Context, id UUID, body UpdateTenantJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTenantResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListClientsWithResponse request
ListClientsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListClientsResponse, error)
// CreateClientWithBodyWithResponse request with any body
CreateClientWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateClientResponse, error)
CreateClientWithResponse(ctx context.Context, body CreateClientJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateClientResponse, error)
// DeleteClientWithResponse request
DeleteClientWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeleteClientResponse, error)
// GetClientWithResponse request
GetClientWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*GetClientResponse, error)
// UpdateClientWithBodyWithResponse request with any body
UpdateClientWithBodyWithResponse(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateClientResponse, error)
UpdateClientWithResponse(ctx context.Context, id UUID, body UpdateClientJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateClientResponse, error)
// ListInvitesWithResponse request
ListInvitesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListInvitesResponse, error)
// CreateInviteWithBodyWithResponse request with any body
CreateInviteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInviteResponse, error)
CreateInviteWithResponse(ctx context.Context, body CreateInviteJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInviteResponse, error)
// DeleteInviteWithResponse request
DeleteInviteWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeleteInviteResponse, error)
// GetInviteWithResponse request
GetInviteWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*GetInviteResponse, error)
// ListMembershipsWithResponse request
ListMembershipsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListMembershipsResponse, error)
// DeleteMembershipWithResponse request
DeleteMembershipWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*DeleteMembershipResponse, error)
// GenerateAccessTokenWithBodyWithResponse request with any body
GenerateAccessTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateAccessTokenResponse, error)
GenerateAccessTokenWithResponse(ctx context.Context, body GenerateAccessTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateAccessTokenResponse, error)
GenerateAccessTokenWithFormdataBodyWithResponse(ctx context.Context, body GenerateAccessTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*GenerateAccessTokenResponse, error)
// GetAccountOpenApiSpecWithResponse request
GetAccountOpenApiSpecWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAccountOpenApiSpecResponse, error)
// GetAccountPublicOpenApiSpecWithResponse request
GetAccountPublicOpenApiSpecWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAccountPublicOpenApiSpecResponse, error)
// ListTenantsWithResponse request
ListTenantsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListTenantsResponse, error)
// GetTenantWithResponse request
GetTenantWithResponse(ctx context.Context, id UUID, reqEditors ...RequestEditorFn) (*GetTenantResponse, error)
// UpdateTenantWithBodyWithResponse request with any body
UpdateTenantWithBodyWithResponse(ctx context.Context, id UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTenantResponse, error)
UpdateTenantWithResponse(ctx context.Context, id UUID, body UpdateTenantJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTenantResponse, error)
// GetCurrentUserWithResponse request
GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error)
// UpdateCurrentUserWithBodyWithResponse request with any body
UpdateCurrentUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCurrentUserResponse, error)
UpdateCurrentUserWithResponse(ctx context.Context, body UpdateCurrentUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCurrentUserResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateApiClientInput ¶
type CreateApiClientInput struct {
Description string `json:"description"`
Name string `json:"name"`
}
CreateApiClientInput defines model for CreateApiClientInput.
type CreateApiClientResponse ¶
type CreateApiClientResponse struct {
Auth0Id string `json:"auth0_id"`
// Auth0Secret Client secret. Returned once at creation; never included in list or get responses.
Auth0Secret *string `json:"auth0_secret,omitempty"`
CreatedAt string `json:"created_at"`
Description string `json:"description"`
Id string `json:"id"`
Name string `json:"name"`
UpdatedAt string `json:"updated_at"`
}
CreateApiClientResponse defines model for CreateApiClientResponse.
type CreateClientJSONRequestBody ¶
type CreateClientJSONRequestBody = CreateApiClientInput
CreateClientJSONRequestBody defines body for CreateClient for application/json ContentType.
type CreateClientResponse ¶
type CreateClientResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CreateApiClientResponse
JSON400 *Error
JSON401 *Error
JSONDefault *Error
}
func ParseCreateClientResponse ¶
func ParseCreateClientResponse(rsp *http.Response) (*CreateClientResponse, error)
ParseCreateClientResponse parses an HTTP response from a CreateClientWithResponse call
func (CreateClientResponse) ContentType ¶
func (r CreateClientResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateClientResponse) Status ¶
func (r CreateClientResponse) Status() string
Status returns HTTPResponse.Status
func (CreateClientResponse) StatusCode ¶
func (r CreateClientResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateInviteInput ¶
type CreateInviteInput struct {
Email string `json:"email"`
Expiration *int `json:"expiration,omitempty"`
}
CreateInviteInput defines model for CreateInviteInput.
type CreateInviteJSONRequestBody ¶
type CreateInviteJSONRequestBody = CreateInviteInput
CreateInviteJSONRequestBody defines body for CreateInvite for application/json ContentType.
type CreateInviteResponse ¶
type CreateInviteResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Invite
JSON400 *Error
JSON401 *Error
JSONDefault *Error
}
func ParseCreateInviteResponse ¶
func ParseCreateInviteResponse(rsp *http.Response) (*CreateInviteResponse, error)
ParseCreateInviteResponse parses an HTTP response from a CreateInviteWithResponse call
func (CreateInviteResponse) ContentType ¶
func (r CreateInviteResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateInviteResponse) Status ¶
func (r CreateInviteResponse) Status() string
Status returns HTTPResponse.Status
func (CreateInviteResponse) StatusCode ¶
func (r CreateInviteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteClientResponse ¶
type DeleteClientResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *Error
JSON401 *Error
JSONDefault *Error
}
func ParseDeleteClientResponse ¶
func ParseDeleteClientResponse(rsp *http.Response) (*DeleteClientResponse, error)
ParseDeleteClientResponse parses an HTTP response from a DeleteClientWithResponse call
func (DeleteClientResponse) ContentType ¶
func (r DeleteClientResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteClientResponse) Status ¶
func (r DeleteClientResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteClientResponse) StatusCode ¶
func (r DeleteClientResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteInviteResponse ¶
type DeleteInviteResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *Error
JSON401 *Error
JSONDefault *Error
}
func ParseDeleteInviteResponse ¶
func ParseDeleteInviteResponse(rsp *http.Response) (*DeleteInviteResponse, error)
ParseDeleteInviteResponse parses an HTTP response from a DeleteInviteWithResponse call
func (DeleteInviteResponse) ContentType ¶
func (r DeleteInviteResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteInviteResponse) Status ¶
func (r DeleteInviteResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteInviteResponse) StatusCode ¶
func (r DeleteInviteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteMembershipResponse ¶
type DeleteMembershipResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *Error
JSON401 *Error
JSONDefault *Error
}
func ParseDeleteMembershipResponse ¶
func ParseDeleteMembershipResponse(rsp *http.Response) (*DeleteMembershipResponse, error)
ParseDeleteMembershipResponse parses an HTTP response from a DeleteMembershipWithResponse call
func (DeleteMembershipResponse) ContentType ¶
func (r DeleteMembershipResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteMembershipResponse) Status ¶
func (r DeleteMembershipResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteMembershipResponse) StatusCode ¶
func (r DeleteMembershipResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Error ¶
type Error struct {
Code int `json:"code"`
Message string `json:"message"`
// Reason Stable, machine-readable discriminator for programmatic client handling. Absent for generic errors. Clients must treat an unrecognized value as a generic error of the given status code.
Reason *ErrorReason `json:"reason,omitempty"`
}
Error defines model for Error.
type ErrorReason ¶
type ErrorReason string
ErrorReason Stable, machine-readable discriminator for programmatic client handling. Absent for generic errors. Clients must treat an unrecognized value as a generic error of the given status code.
const ( DeveloperPlanBackup ErrorReason = "developer_plan_backup" MembershipRevoked ErrorReason = "membership_revoked" PlanExpired ErrorReason = "plan_expired" )
Defines values for ErrorReason.
func (ErrorReason) Valid ¶
func (e ErrorReason) Valid() bool
Valid indicates whether the value is a known member of the ErrorReason enum.
type GenerateAccessTokenFormdataRequestBody ¶
type GenerateAccessTokenFormdataRequestBody = AccessTokenRequest
GenerateAccessTokenFormdataRequestBody defines body for GenerateAccessToken for application/x-www-form-urlencoded ContentType.
type GenerateAccessTokenJSONRequestBody ¶
type GenerateAccessTokenJSONRequestBody = AccessTokenRequest
GenerateAccessTokenJSONRequestBody defines body for GenerateAccessToken for application/json ContentType.
type GenerateAccessTokenResponse ¶
type GenerateAccessTokenResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AccessToken
JSON400 *Error
JSONDefault *Error
}
func ParseGenerateAccessTokenResponse ¶
func ParseGenerateAccessTokenResponse(rsp *http.Response) (*GenerateAccessTokenResponse, error)
ParseGenerateAccessTokenResponse parses an HTTP response from a GenerateAccessTokenWithResponse call
func (GenerateAccessTokenResponse) ContentType ¶
func (r GenerateAccessTokenResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GenerateAccessTokenResponse) Status ¶
func (r GenerateAccessTokenResponse) Status() string
Status returns HTTPResponse.Status
func (GenerateAccessTokenResponse) StatusCode ¶
func (r GenerateAccessTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAccountOpenApiSpecResponse ¶
type GetAccountOpenApiSpecResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OpenApiSpec
JSONDefault *Error
}
func ParseGetAccountOpenApiSpecResponse ¶
func ParseGetAccountOpenApiSpecResponse(rsp *http.Response) (*GetAccountOpenApiSpecResponse, error)
ParseGetAccountOpenApiSpecResponse parses an HTTP response from a GetAccountOpenApiSpecWithResponse call
func (GetAccountOpenApiSpecResponse) ContentType ¶
func (r GetAccountOpenApiSpecResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAccountOpenApiSpecResponse) Status ¶
func (r GetAccountOpenApiSpecResponse) Status() string
Status returns HTTPResponse.Status
func (GetAccountOpenApiSpecResponse) StatusCode ¶
func (r GetAccountOpenApiSpecResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAccountPublicOpenApiSpecResponse ¶
type GetAccountPublicOpenApiSpecResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OpenApiSpec
JSONDefault *Error
}
func ParseGetAccountPublicOpenApiSpecResponse ¶
func ParseGetAccountPublicOpenApiSpecResponse(rsp *http.Response) (*GetAccountPublicOpenApiSpecResponse, error)
ParseGetAccountPublicOpenApiSpecResponse parses an HTTP response from a GetAccountPublicOpenApiSpecWithResponse call
func (GetAccountPublicOpenApiSpecResponse) ContentType ¶
func (r GetAccountPublicOpenApiSpecResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAccountPublicOpenApiSpecResponse) Status ¶
func (r GetAccountPublicOpenApiSpecResponse) Status() string
Status returns HTTPResponse.Status
func (GetAccountPublicOpenApiSpecResponse) StatusCode ¶
func (r GetAccountPublicOpenApiSpecResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetClientResponse ¶
type GetClientResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ApiClient
JSON400 *Error
JSON401 *Error
JSONDefault *Error
}
func ParseGetClientResponse ¶
func ParseGetClientResponse(rsp *http.Response) (*GetClientResponse, error)
ParseGetClientResponse parses an HTTP response from a GetClientWithResponse call
func (GetClientResponse) ContentType ¶
func (r GetClientResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetClientResponse) Status ¶
func (r GetClientResponse) Status() string
Status returns HTTPResponse.Status
func (GetClientResponse) StatusCode ¶
func (r GetClientResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCurrentUserResponse ¶
type GetCurrentUserResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *User
JSON400 *Error
JSON401 *Error
JSONDefault *Error
}
func ParseGetCurrentUserResponse ¶
func ParseGetCurrentUserResponse(rsp *http.Response) (*GetCurrentUserResponse, error)
ParseGetCurrentUserResponse parses an HTTP response from a GetCurrentUserWithResponse call
func (GetCurrentUserResponse) ContentType ¶
func (r GetCurrentUserResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetCurrentUserResponse) Status ¶
func (r GetCurrentUserResponse) Status() string
Status returns HTTPResponse.Status
func (GetCurrentUserResponse) StatusCode ¶
func (r GetCurrentUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetInviteResponse ¶
type GetInviteResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Invite
JSON400 *Error
JSON401 *Error
JSONDefault *Error
}
func ParseGetInviteResponse ¶
func ParseGetInviteResponse(rsp *http.Response) (*GetInviteResponse, error)
ParseGetInviteResponse parses an HTTP response from a GetInviteWithResponse call
func (GetInviteResponse) ContentType ¶
func (r GetInviteResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetInviteResponse) Status ¶
func (r GetInviteResponse) Status() string
Status returns HTTPResponse.Status
func (GetInviteResponse) StatusCode ¶
func (r GetInviteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTenantResponse ¶
type GetTenantResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Tenant
JSON400 *Error
JSON401 *Error
JSONDefault *Error
}
func ParseGetTenantResponse ¶
func ParseGetTenantResponse(rsp *http.Response) (*GetTenantResponse, error)
ParseGetTenantResponse parses an HTTP response from a GetTenantWithResponse call
func (GetTenantResponse) ContentType ¶
func (r GetTenantResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetTenantResponse) Status ¶
func (r GetTenantResponse) Status() string
Status returns HTTPResponse.Status
func (GetTenantResponse) StatusCode ¶
func (r GetTenantResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type Invite ¶
type Invite struct {
AcceptUrl *string `json:"accept_url,omitempty"`
CreatedAt string `json:"created_at"`
Email string `json:"email"`
ExpiresAt string `json:"expires_at"`
Id string `json:"id"`
InvitedBy *string `json:"invited_by,omitempty"`
ScreenHint *string `json:"screen_hint,omitempty"`
TeamName string `json:"team_name"`
Token *string `json:"token,omitempty"`
UpdatedAt string `json:"updated_at"`
}
Invite defines model for Invite.
type ListClientsResponse ¶
type ListClientsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]ApiClient
JSON400 *Error
JSON401 *Error
JSONDefault *Error
}
func ParseListClientsResponse ¶
func ParseListClientsResponse(rsp *http.Response) (*ListClientsResponse, error)
ParseListClientsResponse parses an HTTP response from a ListClientsWithResponse call
func (ListClientsResponse) ContentType ¶
func (r ListClientsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListClientsResponse) Status ¶
func (r ListClientsResponse) Status() string
Status returns HTTPResponse.Status
func (ListClientsResponse) StatusCode ¶
func (r ListClientsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListInvitesResponse ¶
type ListInvitesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Invite
JSON400 *Error
JSON401 *Error
JSONDefault *Error
}
func ParseListInvitesResponse ¶
func ParseListInvitesResponse(rsp *http.Response) (*ListInvitesResponse, error)
ParseListInvitesResponse parses an HTTP response from a ListInvitesWithResponse call
func (ListInvitesResponse) ContentType ¶
func (r ListInvitesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListInvitesResponse) Status ¶
func (r ListInvitesResponse) Status() string
Status returns HTTPResponse.Status
func (ListInvitesResponse) StatusCode ¶
func (r ListInvitesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListMembershipsResponse ¶
type ListMembershipsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Membership
JSON400 *Error
JSON401 *Error
JSONDefault *Error
}
func ParseListMembershipsResponse ¶
func ParseListMembershipsResponse(rsp *http.Response) (*ListMembershipsResponse, error)
ParseListMembershipsResponse parses an HTTP response from a ListMembershipsWithResponse call
func (ListMembershipsResponse) ContentType ¶
func (r ListMembershipsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListMembershipsResponse) Status ¶
func (r ListMembershipsResponse) Status() string
Status returns HTTPResponse.Status
func (ListMembershipsResponse) StatusCode ¶
func (r ListMembershipsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListTenantsResponse ¶
type ListTenantsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Tenant
JSON400 *Error
JSON401 *Error
JSONDefault *Error
}
func ParseListTenantsResponse ¶
func ParseListTenantsResponse(rsp *http.Response) (*ListTenantsResponse, error)
ParseListTenantsResponse parses an HTTP response from a ListTenantsWithResponse call
func (ListTenantsResponse) ContentType ¶
func (r ListTenantsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListTenantsResponse) Status ¶
func (r ListTenantsResponse) Status() string
Status returns HTTPResponse.Status
func (ListTenantsResponse) StatusCode ¶
func (r ListTenantsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Membership ¶
type Membership struct {
CreatedAt string `json:"created_at"`
Id string `json:"id"`
// IsOwner True if this member owns the tenant.
IsOwner bool `json:"is_owner"`
UpdatedAt string `json:"updated_at"`
UserEmail string `json:"user_email"`
UserId string `json:"user_id"`
UserName string `json:"user_name"`
UserPicture *string `json:"user_picture,omitempty"`
}
Membership defines model for Membership.
type OpenApiSpec ¶
type OpenApiSpec = map[string]interface{}
OpenApiSpec defines model for OpenApiSpec.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type Tenant ¶
type Tenant struct {
CreatedAt string `json:"created_at"`
Domain *string `json:"domain,omitempty"`
ExternalId *string `json:"external_id,omitempty"`
Id string `json:"id"`
Name string `json:"name"`
Plan *string `json:"plan,omitempty"`
PlanExpiresAt *string `json:"plan_expires_at,omitempty"`
PlanTrial *bool `json:"plan_trial,omitempty"`
UpdatedAt string `json:"updated_at"`
}
Tenant defines model for Tenant.
type UUID ¶
type UUID = openapi_types.UUID
UUID is an alias for openapi_types.UUID used by the generated client code.
type UpdateApiClientInput ¶
type UpdateApiClientInput struct {
Description *string `json:"description,omitempty"`
Name *string `json:"name,omitempty"`
}
UpdateApiClientInput defines model for UpdateApiClientInput.
type UpdateClientJSONRequestBody ¶
type UpdateClientJSONRequestBody = UpdateApiClientInput
UpdateClientJSONRequestBody defines body for UpdateClient for application/json ContentType.
type UpdateClientResponse ¶
type UpdateClientResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ApiClient
JSON400 *Error
JSON401 *Error
JSONDefault *Error
}
func ParseUpdateClientResponse ¶
func ParseUpdateClientResponse(rsp *http.Response) (*UpdateClientResponse, error)
ParseUpdateClientResponse parses an HTTP response from a UpdateClientWithResponse call
func (UpdateClientResponse) ContentType ¶
func (r UpdateClientResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateClientResponse) Status ¶
func (r UpdateClientResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateClientResponse) StatusCode ¶
func (r UpdateClientResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateCurrentUserJSONRequestBody ¶
type UpdateCurrentUserJSONRequestBody = UpdateUserInput
UpdateCurrentUserJSONRequestBody defines body for UpdateCurrentUser for application/json ContentType.
type UpdateCurrentUserResponse ¶
type UpdateCurrentUserResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *User
JSON400 *Error
JSON401 *Error
JSONDefault *Error
}
func ParseUpdateCurrentUserResponse ¶
func ParseUpdateCurrentUserResponse(rsp *http.Response) (*UpdateCurrentUserResponse, error)
ParseUpdateCurrentUserResponse parses an HTTP response from a UpdateCurrentUserWithResponse call
func (UpdateCurrentUserResponse) ContentType ¶
func (r UpdateCurrentUserResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateCurrentUserResponse) Status ¶
func (r UpdateCurrentUserResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateCurrentUserResponse) StatusCode ¶
func (r UpdateCurrentUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateTenantInput ¶
type UpdateTenantInput struct {
Name *string `json:"name,omitempty"`
}
UpdateTenantInput defines model for UpdateTenantInput.
type UpdateTenantJSONRequestBody ¶
type UpdateTenantJSONRequestBody = UpdateTenantInput
UpdateTenantJSONRequestBody defines body for UpdateTenant for application/json ContentType.
type UpdateTenantResponse ¶
type UpdateTenantResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Tenant
JSON400 *Error
JSON401 *Error
JSONDefault *Error
}
func ParseUpdateTenantResponse ¶
func ParseUpdateTenantResponse(rsp *http.Response) (*UpdateTenantResponse, error)
ParseUpdateTenantResponse parses an HTTP response from a UpdateTenantWithResponse call
func (UpdateTenantResponse) ContentType ¶
func (r UpdateTenantResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateTenantResponse) Status ¶
func (r UpdateTenantResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateTenantResponse) StatusCode ¶
func (r UpdateTenantResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateUserInput ¶
type UpdateUserInput struct {
FirstName *string `json:"first_name,omitempty"`
LastName *string `json:"last_name,omitempty"`
}
UpdateUserInput defines model for UpdateUserInput.
type User ¶
type User struct {
CreatedAt string `json:"created_at"`
Email string `json:"email"`
FirstName *string `json:"first_name,omitempty"`
Id string `json:"id"`
LastName *string `json:"last_name,omitempty"`
Picture *string `json:"picture,omitempty"`
Tenants []Tenant `json:"tenants"`
UpdatedAt string `json:"updated_at"`
}
User defines model for User.