userapi

package module
v1.3.13 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: Apache-2.0 Imports: 22 Imported by: 3

README

Go API client for userapi

API to manage teams, members and tokens

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.3.13 bordering-jerilyn
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit https://docs.lab5e.com

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import sw "./userapi"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identifield by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://api.lab5e.com

Class Method HTTP request Description
ProfileApi GetUserProfile Get /user/profile Logged in profile
TeamsApi AcceptInvite Post /user/teams/accept Accept invite
TeamsApi CreateTeam Post /user/teams Create team
TeamsApi DeleteInvite Delete /user/teams/{teamId}/invites/{code} Delete invite
TeamsApi DeleteMember Delete /user/teams/{teamId}/members/{userId} Remove member
TeamsApi DeleteTeam Delete /user/teams/{teamId} Remove team
TeamsApi GenerateInvite Post /user/teams/{teamId}/invites Generate invite
TeamsApi ListInvites Get /user/teams/{teamId}/invites List invites
TeamsApi ListTeams Get /user/teams List teams
TeamsApi RetrieveInvite Get /user/teams/{teamId}/invites/{code} Retrieve invite
TeamsApi RetrieveMember Get /user/teams/{teamId}/members/{userId} Retrieve member
TeamsApi RetrieveTeam Get /user/teams/{teamId} Retrieve team
TeamsApi RetrieveTeamMembers Get /user/teams/{teamId}/members List members
TeamsApi UpdateMember Patch /user/teams/{teamId}/members/{userId} Update member
TeamsApi UpdateTeam Patch /user/teams/{teamId} Update team
TokensApi CreateToken Post /user/tokens Create token
TokensApi DeleteToken Delete /user/tokens/{token} Remove token
TokensApi ListTokens Get /user/tokens List tokens
TokensApi RetrieveToken Get /user/tokens/{token} Retrieve token
TokensApi UpdateToken Patch /user/tokens/{token} Update token

Documentation For Models

Documentation For Authorization

APIToken
  • Type: API key
  • API key parameter name: X-API-Token
  • Location: HTTP header

Note, each API key must be added to a map of map[string]APIKey where the key is: X-API-Token and passed in as the auth context for each request.

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

dev@lab5e.com

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
	ContextHttpSignatureAuth = contextKey("httpsignature")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	ProfileApi *ProfileApiService

	TeamsApi *TeamsApiService

	TokensApi *TokensApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the The User API API v1.3.13 bordering-jerilyn In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResonse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type ATeam added in v1.3.13

type ATeam struct {
	IsPrivate *bool              `json:"isPrivate,omitempty"`
	Tags      *map[string]string `json:"tags,omitempty"`
	Members   *[]Member          `json:"members,omitempty"`
}

ATeam struct for ATeam

func NewATeam added in v1.3.13

func NewATeam() *ATeam

NewATeam instantiates a new ATeam object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewATeamWithDefaults added in v1.3.13

func NewATeamWithDefaults() *ATeam

NewATeamWithDefaults instantiates a new ATeam object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ATeam) GetIsPrivate added in v1.3.13

func (o *ATeam) GetIsPrivate() bool

GetIsPrivate returns the IsPrivate field value if set, zero value otherwise.

func (*ATeam) GetIsPrivateOk added in v1.3.13

func (o *ATeam) GetIsPrivateOk() (*bool, bool)

GetIsPrivateOk returns a tuple with the IsPrivate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ATeam) GetMembers added in v1.3.13

func (o *ATeam) GetMembers() []Member

GetMembers returns the Members field value if set, zero value otherwise.

func (*ATeam) GetMembersOk added in v1.3.13

func (o *ATeam) GetMembersOk() (*[]Member, bool)

GetMembersOk returns a tuple with the Members field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ATeam) GetTags added in v1.3.13

func (o *ATeam) GetTags() map[string]string

GetTags returns the Tags field value if set, zero value otherwise.

func (*ATeam) GetTagsOk added in v1.3.13

func (o *ATeam) GetTagsOk() (*map[string]string, bool)

GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ATeam) HasIsPrivate added in v1.3.13

func (o *ATeam) HasIsPrivate() bool

HasIsPrivate returns a boolean if a field has been set.

func (*ATeam) HasMembers added in v1.3.13

func (o *ATeam) HasMembers() bool

HasMembers returns a boolean if a field has been set.

func (*ATeam) HasTags added in v1.3.13

func (o *ATeam) HasTags() bool

HasTags returns a boolean if a field has been set.

func (ATeam) MarshalJSON added in v1.3.13

func (o ATeam) MarshalJSON() ([]byte, error)

func (*ATeam) SetIsPrivate added in v1.3.13

func (o *ATeam) SetIsPrivate(v bool)

SetIsPrivate gets a reference to the given bool and assigns it to the IsPrivate field.

func (*ATeam) SetMembers added in v1.3.13

func (o *ATeam) SetMembers(v []Member)

SetMembers gets a reference to the given []Member and assigns it to the Members field.

func (*ATeam) SetTags added in v1.3.13

func (o *ATeam) SetTags(v map[string]string)

SetTags gets a reference to the given map[string]string and assigns it to the Tags field.

type AcceptInviteRequest

type AcceptInviteRequest struct {
	// The invite code to use.
	Code *string `json:"code,omitempty"`
}

AcceptInviteRequest struct for AcceptInviteRequest

func NewAcceptInviteRequest

func NewAcceptInviteRequest() *AcceptInviteRequest

NewAcceptInviteRequest instantiates a new AcceptInviteRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAcceptInviteRequestWithDefaults

func NewAcceptInviteRequestWithDefaults() *AcceptInviteRequest

NewAcceptInviteRequestWithDefaults instantiates a new AcceptInviteRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AcceptInviteRequest) GetCode

func (o *AcceptInviteRequest) GetCode() string

GetCode returns the Code field value if set, zero value otherwise.

func (*AcceptInviteRequest) GetCodeOk

func (o *AcceptInviteRequest) GetCodeOk() (*string, bool)

GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AcceptInviteRequest) HasCode

func (o *AcceptInviteRequest) HasCode() bool

HasCode returns a boolean if a field has been set.

func (AcceptInviteRequest) MarshalJSON

func (o AcceptInviteRequest) MarshalJSON() ([]byte, error)

func (*AcceptInviteRequest) SetCode

func (o *AcceptInviteRequest) SetCode(v string)

SetCode gets a reference to the given string and assigns it to the Code field.

type AnAPIToken added in v1.3.13

type AnAPIToken struct {
	// The resource of the token.  The token applies to the specified resource and any resources below this so the resource `/` applies to the root resource and any resource below the root resource. In the same manner `/collections` will apply to all collectins while `/collections/{id}` will apply to that particular collection.
	Resource *string `json:"resource,omitempty"`
	// Write flag for token.  If this is set to `true` the token can be used for write operations in the API such as POST, DELETE and PATCH.
	Write *bool `json:"write,omitempty"`
	// Tags for the token.
	Tags *map[string]string `json:"tags,omitempty"`
	// The last time the token was used. Time in ms since epoch.
	LastUse *string `json:"lastUse,omitempty"`
	Uses    *string `json:"uses,omitempty"`
}

AnAPIToken struct for AnAPIToken

func NewAnAPIToken added in v1.3.13

func NewAnAPIToken() *AnAPIToken

NewAnAPIToken instantiates a new AnAPIToken object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAnAPITokenWithDefaults added in v1.3.13

func NewAnAPITokenWithDefaults() *AnAPIToken

NewAnAPITokenWithDefaults instantiates a new AnAPIToken object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AnAPIToken) GetLastUse added in v1.3.13

func (o *AnAPIToken) GetLastUse() string

GetLastUse returns the LastUse field value if set, zero value otherwise.

func (*AnAPIToken) GetLastUseOk added in v1.3.13

func (o *AnAPIToken) GetLastUseOk() (*string, bool)

GetLastUseOk returns a tuple with the LastUse field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AnAPIToken) GetResource added in v1.3.13

func (o *AnAPIToken) GetResource() string

GetResource returns the Resource field value if set, zero value otherwise.

func (*AnAPIToken) GetResourceOk added in v1.3.13

func (o *AnAPIToken) GetResourceOk() (*string, bool)

GetResourceOk returns a tuple with the Resource field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AnAPIToken) GetTags added in v1.3.13

func (o *AnAPIToken) GetTags() map[string]string

GetTags returns the Tags field value if set, zero value otherwise.

func (*AnAPIToken) GetTagsOk added in v1.3.13

func (o *AnAPIToken) GetTagsOk() (*map[string]string, bool)

GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AnAPIToken) GetUses added in v1.3.13

func (o *AnAPIToken) GetUses() string

GetUses returns the Uses field value if set, zero value otherwise.

func (*AnAPIToken) GetUsesOk added in v1.3.13

func (o *AnAPIToken) GetUsesOk() (*string, bool)

GetUsesOk returns a tuple with the Uses field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AnAPIToken) GetWrite added in v1.3.13

func (o *AnAPIToken) GetWrite() bool

GetWrite returns the Write field value if set, zero value otherwise.

func (*AnAPIToken) GetWriteOk added in v1.3.13

func (o *AnAPIToken) GetWriteOk() (*bool, bool)

GetWriteOk returns a tuple with the Write field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AnAPIToken) HasLastUse added in v1.3.13

func (o *AnAPIToken) HasLastUse() bool

HasLastUse returns a boolean if a field has been set.

func (*AnAPIToken) HasResource added in v1.3.13

func (o *AnAPIToken) HasResource() bool

HasResource returns a boolean if a field has been set.

func (*AnAPIToken) HasTags added in v1.3.13

func (o *AnAPIToken) HasTags() bool

HasTags returns a boolean if a field has been set.

func (*AnAPIToken) HasUses added in v1.3.13

func (o *AnAPIToken) HasUses() bool

HasUses returns a boolean if a field has been set.

func (*AnAPIToken) HasWrite added in v1.3.13

func (o *AnAPIToken) HasWrite() bool

HasWrite returns a boolean if a field has been set.

func (AnAPIToken) MarshalJSON added in v1.3.13

func (o AnAPIToken) MarshalJSON() ([]byte, error)

func (*AnAPIToken) SetLastUse added in v1.3.13

func (o *AnAPIToken) SetLastUse(v string)

SetLastUse gets a reference to the given string and assigns it to the LastUse field.

func (*AnAPIToken) SetResource added in v1.3.13

func (o *AnAPIToken) SetResource(v string)

SetResource gets a reference to the given string and assigns it to the Resource field.

func (*AnAPIToken) SetTags added in v1.3.13

func (o *AnAPIToken) SetTags(v map[string]string)

SetTags gets a reference to the given map[string]string and assigns it to the Tags field.

func (*AnAPIToken) SetUses added in v1.3.13

func (o *AnAPIToken) SetUses(v string)

SetUses gets a reference to the given string and assigns it to the Uses field.

func (*AnAPIToken) SetWrite added in v1.3.13

func (o *AnAPIToken) SetWrite(v bool)

SetWrite gets a reference to the given bool and assigns it to the Write field.

type ApiAcceptInviteRequest

type ApiAcceptInviteRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (ApiAcceptInviteRequest) Body

func (ApiAcceptInviteRequest) Execute

type ApiCreateTeamRequest

type ApiCreateTeamRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (ApiCreateTeamRequest) Body

func (ApiCreateTeamRequest) Execute

func (r ApiCreateTeamRequest) Execute() (Team, *_nethttp.Response, error)

type ApiCreateTokenRequest

type ApiCreateTokenRequest struct {
	ApiService *TokensApiService
	// contains filtered or unexported fields
}

func (ApiCreateTokenRequest) Body

func (ApiCreateTokenRequest) Execute

type ApiDeleteInviteRequest

type ApiDeleteInviteRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (ApiDeleteInviteRequest) Execute

type ApiDeleteMemberRequest

type ApiDeleteMemberRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (ApiDeleteMemberRequest) Execute

type ApiDeleteTeamRequest

type ApiDeleteTeamRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (ApiDeleteTeamRequest) Execute

func (r ApiDeleteTeamRequest) Execute() (Team, *_nethttp.Response, error)

type ApiDeleteTokenRequest

type ApiDeleteTokenRequest struct {
	ApiService *TokensApiService
	// contains filtered or unexported fields
}

func (ApiDeleteTokenRequest) Execute

type ApiGenerateInviteRequest

type ApiGenerateInviteRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (ApiGenerateInviteRequest) Body

func (ApiGenerateInviteRequest) Execute

type ApiGetUserProfileRequest

type ApiGetUserProfileRequest struct {
	ApiService *ProfileApiService
	// contains filtered or unexported fields
}

func (ApiGetUserProfileRequest) Execute

type ApiListInvitesRequest

type ApiListInvitesRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (ApiListInvitesRequest) Execute

type ApiListTeamsRequest

type ApiListTeamsRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (ApiListTeamsRequest) Execute

type ApiListTokensRequest

type ApiListTokensRequest struct {
	ApiService *TokensApiService
	// contains filtered or unexported fields
}

func (ApiListTokensRequest) Execute

type ApiRetrieveInviteRequest

type ApiRetrieveInviteRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (ApiRetrieveInviteRequest) Execute

type ApiRetrieveMemberRequest

type ApiRetrieveMemberRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (ApiRetrieveMemberRequest) Execute

type ApiRetrieveTeamMembersRequest

type ApiRetrieveTeamMembersRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (ApiRetrieveTeamMembersRequest) Execute

type ApiRetrieveTeamRequest

type ApiRetrieveTeamRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (ApiRetrieveTeamRequest) Execute

type ApiRetrieveTokenRequest

type ApiRetrieveTokenRequest struct {
	ApiService *TokensApiService
	// contains filtered or unexported fields
}

func (ApiRetrieveTokenRequest) Execute

type ApiUpdateMemberRequest

type ApiUpdateMemberRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (ApiUpdateMemberRequest) Body

func (ApiUpdateMemberRequest) Execute

type ApiUpdateTeamRequest

type ApiUpdateTeamRequest struct {
	ApiService *TeamsApiService
	// contains filtered or unexported fields
}

func (ApiUpdateTeamRequest) Body

func (ApiUpdateTeamRequest) Execute

func (r ApiUpdateTeamRequest) Execute() (Team, *_nethttp.Response, error)

type ApiUpdateTokenRequest

type ApiUpdateTokenRequest struct {
	ApiService *TokensApiService
	// contains filtered or unexported fields
}

func (ApiUpdateTokenRequest) Body

func (ApiUpdateTokenRequest) Execute

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type DeleteInviteResponse

type DeleteInviteResponse struct {
	Invite *Invite `json:"invite,omitempty"`
}

DeleteInviteResponse struct for DeleteInviteResponse

func NewDeleteInviteResponse

func NewDeleteInviteResponse() *DeleteInviteResponse

NewDeleteInviteResponse instantiates a new DeleteInviteResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDeleteInviteResponseWithDefaults

func NewDeleteInviteResponseWithDefaults() *DeleteInviteResponse

NewDeleteInviteResponseWithDefaults instantiates a new DeleteInviteResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DeleteInviteResponse) GetInvite

func (o *DeleteInviteResponse) GetInvite() Invite

GetInvite returns the Invite field value if set, zero value otherwise.

func (*DeleteInviteResponse) GetInviteOk

func (o *DeleteInviteResponse) GetInviteOk() (*Invite, bool)

GetInviteOk returns a tuple with the Invite field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DeleteInviteResponse) HasInvite

func (o *DeleteInviteResponse) HasInvite() bool

HasInvite returns a boolean if a field has been set.

func (DeleteInviteResponse) MarshalJSON

func (o DeleteInviteResponse) MarshalJSON() ([]byte, error)

func (*DeleteInviteResponse) SetInvite

func (o *DeleteInviteResponse) SetInvite(v Invite)

SetInvite gets a reference to the given Invite and assigns it to the Invite field.

type DeleteTokenResponse

type DeleteTokenResponse struct {
	Token *Token `json:"token,omitempty"`
}

DeleteTokenResponse struct for DeleteTokenResponse

func NewDeleteTokenResponse

func NewDeleteTokenResponse() *DeleteTokenResponse

NewDeleteTokenResponse instantiates a new DeleteTokenResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDeleteTokenResponseWithDefaults

func NewDeleteTokenResponseWithDefaults() *DeleteTokenResponse

NewDeleteTokenResponseWithDefaults instantiates a new DeleteTokenResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DeleteTokenResponse) GetToken

func (o *DeleteTokenResponse) GetToken() Token

GetToken returns the Token field value if set, zero value otherwise.

func (*DeleteTokenResponse) GetTokenOk

func (o *DeleteTokenResponse) GetTokenOk() (*Token, bool)

GetTokenOk returns a tuple with the Token field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DeleteTokenResponse) HasToken

func (o *DeleteTokenResponse) HasToken() bool

HasToken returns a boolean if a field has been set.

func (DeleteTokenResponse) MarshalJSON

func (o DeleteTokenResponse) MarshalJSON() ([]byte, error)

func (*DeleteTokenResponse) SetToken

func (o *DeleteTokenResponse) SetToken(v Token)

SetToken gets a reference to the given Token and assigns it to the Token field.

type GenericOpenAPIError

type GenericOpenAPIError struct {
	// contains filtered or unexported fields
}

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type Invite

type Invite struct {
	Code *string `json:"code,omitempty"`
	// Time stamp when the invite was generated.
	CreatedAt *string `json:"createdAt,omitempty"`
}

Invite Invite. Invites are used to share access to teams. You must be an administrator to generate invites for a team.

func NewInvite

func NewInvite() *Invite

NewInvite instantiates a new Invite object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInviteWithDefaults

func NewInviteWithDefaults() *Invite

NewInviteWithDefaults instantiates a new Invite object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Invite) GetCode

func (o *Invite) GetCode() string

GetCode returns the Code field value if set, zero value otherwise.

func (*Invite) GetCodeOk

func (o *Invite) GetCodeOk() (*string, bool)

GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Invite) GetCreatedAt

func (o *Invite) GetCreatedAt() string

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*Invite) GetCreatedAtOk

func (o *Invite) GetCreatedAtOk() (*string, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Invite) HasCode

func (o *Invite) HasCode() bool

HasCode returns a boolean if a field has been set.

func (*Invite) HasCreatedAt

func (o *Invite) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (Invite) MarshalJSON

func (o Invite) MarshalJSON() ([]byte, error)

func (*Invite) SetCode

func (o *Invite) SetCode(v string)

SetCode gets a reference to the given string and assigns it to the Code field.

func (*Invite) SetCreatedAt

func (o *Invite) SetCreatedAt(v string)

SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field.

type InviteList

type InviteList struct {
	Invites *[]Invite `json:"invites,omitempty"`
}

InviteList List of active invites. Onece an invite has been redeemed it will be removed automatically. An administrator of the team can delete unused invites.

func NewInviteList

func NewInviteList() *InviteList

NewInviteList instantiates a new InviteList object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInviteListWithDefaults

func NewInviteListWithDefaults() *InviteList

NewInviteListWithDefaults instantiates a new InviteList object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InviteList) GetInvites

func (o *InviteList) GetInvites() []Invite

GetInvites returns the Invites field value if set, zero value otherwise.

func (*InviteList) GetInvitesOk

func (o *InviteList) GetInvitesOk() (*[]Invite, bool)

GetInvitesOk returns a tuple with the Invites field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InviteList) HasInvites

func (o *InviteList) HasInvites() bool

HasInvites returns a boolean if a field has been set.

func (InviteList) MarshalJSON

func (o InviteList) MarshalJSON() ([]byte, error)

func (*InviteList) SetInvites

func (o *InviteList) SetInvites(v []Invite)

SetInvites gets a reference to the given []Invite and assigns it to the Invites field.

type Member

type Member struct {
	TeamId *string      `json:"teamId,omitempty"`
	Role   *string      `json:"role,omitempty"`
	UserId *string      `json:"userId,omitempty"`
	User   *UserProfile `json:"user,omitempty"`
}

Member struct for Member

func NewMember

func NewMember() *Member

NewMember instantiates a new Member object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMemberWithDefaults

func NewMemberWithDefaults() *Member

NewMemberWithDefaults instantiates a new Member object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Member) GetRole

func (o *Member) GetRole() string

GetRole returns the Role field value if set, zero value otherwise.

func (*Member) GetRoleOk

func (o *Member) GetRoleOk() (*string, bool)

GetRoleOk returns a tuple with the Role field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Member) GetTeamId

func (o *Member) GetTeamId() string

GetTeamId returns the TeamId field value if set, zero value otherwise.

func (*Member) GetTeamIdOk

func (o *Member) GetTeamIdOk() (*string, bool)

GetTeamIdOk returns a tuple with the TeamId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Member) GetUser

func (o *Member) GetUser() UserProfile

GetUser returns the User field value if set, zero value otherwise.

func (*Member) GetUserId

func (o *Member) GetUserId() string

GetUserId returns the UserId field value if set, zero value otherwise.

func (*Member) GetUserIdOk

func (o *Member) GetUserIdOk() (*string, bool)

GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Member) GetUserOk

func (o *Member) GetUserOk() (*UserProfile, bool)

GetUserOk returns a tuple with the User field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Member) HasRole

func (o *Member) HasRole() bool

HasRole returns a boolean if a field has been set.

func (*Member) HasTeamId

func (o *Member) HasTeamId() bool

HasTeamId returns a boolean if a field has been set.

func (*Member) HasUser

func (o *Member) HasUser() bool

HasUser returns a boolean if a field has been set.

func (*Member) HasUserId

func (o *Member) HasUserId() bool

HasUserId returns a boolean if a field has been set.

func (Member) MarshalJSON

func (o Member) MarshalJSON() ([]byte, error)

func (*Member) SetRole

func (o *Member) SetRole(v string)

SetRole gets a reference to the given string and assigns it to the Role field.

func (*Member) SetTeamId

func (o *Member) SetTeamId(v string)

SetTeamId gets a reference to the given string and assigns it to the TeamId field.

func (*Member) SetUser

func (o *Member) SetUser(v UserProfile)

SetUser gets a reference to the given UserProfile and assigns it to the User field.

func (*Member) SetUserId

func (o *Member) SetUserId(v string)

SetUserId gets a reference to the given string and assigns it to the UserId field.

type MemberList

type MemberList struct {
	Members *[]Member `json:"members,omitempty"`
}

MemberList struct for MemberList

func NewMemberList

func NewMemberList() *MemberList

NewMemberList instantiates a new MemberList object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMemberListWithDefaults

func NewMemberListWithDefaults() *MemberList

NewMemberListWithDefaults instantiates a new MemberList object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*MemberList) GetMembers

func (o *MemberList) GetMembers() []Member

GetMembers returns the Members field value if set, zero value otherwise.

func (*MemberList) GetMembersOk

func (o *MemberList) GetMembersOk() (*[]Member, bool)

GetMembersOk returns a tuple with the Members field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MemberList) HasMembers

func (o *MemberList) HasMembers() bool

HasMembers returns a boolean if a field has been set.

func (MemberList) MarshalJSON

func (o MemberList) MarshalJSON() ([]byte, error)

func (*MemberList) SetMembers

func (o *MemberList) SetMembers(v []Member)

SetMembers gets a reference to the given []Member and assigns it to the Members field.

type MemberOfATeam added in v1.3.13

type MemberOfATeam struct {
	Role *string      `json:"role,omitempty"`
	User *UserProfile `json:"user,omitempty"`
}

MemberOfATeam struct for MemberOfATeam

func NewMemberOfATeam added in v1.3.13

func NewMemberOfATeam() *MemberOfATeam

NewMemberOfATeam instantiates a new MemberOfATeam object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewMemberOfATeamWithDefaults added in v1.3.13

func NewMemberOfATeamWithDefaults() *MemberOfATeam

NewMemberOfATeamWithDefaults instantiates a new MemberOfATeam object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*MemberOfATeam) GetRole added in v1.3.13

func (o *MemberOfATeam) GetRole() string

GetRole returns the Role field value if set, zero value otherwise.

func (*MemberOfATeam) GetRoleOk added in v1.3.13

func (o *MemberOfATeam) GetRoleOk() (*string, bool)

GetRoleOk returns a tuple with the Role field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MemberOfATeam) GetUser added in v1.3.13

func (o *MemberOfATeam) GetUser() UserProfile

GetUser returns the User field value if set, zero value otherwise.

func (*MemberOfATeam) GetUserOk added in v1.3.13

func (o *MemberOfATeam) GetUserOk() (*UserProfile, bool)

GetUserOk returns a tuple with the User field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MemberOfATeam) HasRole added in v1.3.13

func (o *MemberOfATeam) HasRole() bool

HasRole returns a boolean if a field has been set.

func (*MemberOfATeam) HasUser added in v1.3.13

func (o *MemberOfATeam) HasUser() bool

HasUser returns a boolean if a field has been set.

func (MemberOfATeam) MarshalJSON added in v1.3.13

func (o MemberOfATeam) MarshalJSON() ([]byte, error)

func (*MemberOfATeam) SetRole added in v1.3.13

func (o *MemberOfATeam) SetRole(v string)

SetRole gets a reference to the given string and assigns it to the Role field.

func (*MemberOfATeam) SetUser added in v1.3.13

func (o *MemberOfATeam) SetUser(v UserProfile)

SetUser gets a reference to the given UserProfile and assigns it to the User field.

type NullableATeam added in v1.3.13

type NullableATeam struct {
	// contains filtered or unexported fields
}

func NewNullableATeam added in v1.3.13

func NewNullableATeam(val *ATeam) *NullableATeam

func (NullableATeam) Get added in v1.3.13

func (v NullableATeam) Get() *ATeam

func (NullableATeam) IsSet added in v1.3.13

func (v NullableATeam) IsSet() bool

func (NullableATeam) MarshalJSON added in v1.3.13

func (v NullableATeam) MarshalJSON() ([]byte, error)

func (*NullableATeam) Set added in v1.3.13

func (v *NullableATeam) Set(val *ATeam)

func (*NullableATeam) UnmarshalJSON added in v1.3.13

func (v *NullableATeam) UnmarshalJSON(src []byte) error

func (*NullableATeam) Unset added in v1.3.13

func (v *NullableATeam) Unset()

type NullableAcceptInviteRequest

type NullableAcceptInviteRequest struct {
	// contains filtered or unexported fields
}

func NewNullableAcceptInviteRequest

func NewNullableAcceptInviteRequest(val *AcceptInviteRequest) *NullableAcceptInviteRequest

func (NullableAcceptInviteRequest) Get

func (NullableAcceptInviteRequest) IsSet

func (NullableAcceptInviteRequest) MarshalJSON

func (v NullableAcceptInviteRequest) MarshalJSON() ([]byte, error)

func (*NullableAcceptInviteRequest) Set

func (*NullableAcceptInviteRequest) UnmarshalJSON

func (v *NullableAcceptInviteRequest) UnmarshalJSON(src []byte) error

func (*NullableAcceptInviteRequest) Unset

func (v *NullableAcceptInviteRequest) Unset()

type NullableAnAPIToken added in v1.3.13

type NullableAnAPIToken struct {
	// contains filtered or unexported fields
}

func NewNullableAnAPIToken added in v1.3.13

func NewNullableAnAPIToken(val *AnAPIToken) *NullableAnAPIToken

func (NullableAnAPIToken) Get added in v1.3.13

func (v NullableAnAPIToken) Get() *AnAPIToken

func (NullableAnAPIToken) IsSet added in v1.3.13

func (v NullableAnAPIToken) IsSet() bool

func (NullableAnAPIToken) MarshalJSON added in v1.3.13

func (v NullableAnAPIToken) MarshalJSON() ([]byte, error)

func (*NullableAnAPIToken) Set added in v1.3.13

func (v *NullableAnAPIToken) Set(val *AnAPIToken)

func (*NullableAnAPIToken) UnmarshalJSON added in v1.3.13

func (v *NullableAnAPIToken) UnmarshalJSON(src []byte) error

func (*NullableAnAPIToken) Unset added in v1.3.13

func (v *NullableAnAPIToken) Unset()

type NullableBool

type NullableBool struct {
	// contains filtered or unexported fields
}

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableDeleteInviteResponse

type NullableDeleteInviteResponse struct {
	// contains filtered or unexported fields
}

func NewNullableDeleteInviteResponse

func NewNullableDeleteInviteResponse(val *DeleteInviteResponse) *NullableDeleteInviteResponse

func (NullableDeleteInviteResponse) Get

func (NullableDeleteInviteResponse) IsSet

func (NullableDeleteInviteResponse) MarshalJSON

func (v NullableDeleteInviteResponse) MarshalJSON() ([]byte, error)

func (*NullableDeleteInviteResponse) Set

func (*NullableDeleteInviteResponse) UnmarshalJSON

func (v *NullableDeleteInviteResponse) UnmarshalJSON(src []byte) error

func (*NullableDeleteInviteResponse) Unset

func (v *NullableDeleteInviteResponse) Unset()

type NullableDeleteTokenResponse

type NullableDeleteTokenResponse struct {
	// contains filtered or unexported fields
}

func NewNullableDeleteTokenResponse

func NewNullableDeleteTokenResponse(val *DeleteTokenResponse) *NullableDeleteTokenResponse

func (NullableDeleteTokenResponse) Get

func (NullableDeleteTokenResponse) IsSet

func (NullableDeleteTokenResponse) MarshalJSON

func (v NullableDeleteTokenResponse) MarshalJSON() ([]byte, error)

func (*NullableDeleteTokenResponse) Set

func (*NullableDeleteTokenResponse) UnmarshalJSON

func (v *NullableDeleteTokenResponse) UnmarshalJSON(src []byte) error

func (*NullableDeleteTokenResponse) Unset

func (v *NullableDeleteTokenResponse) Unset()

type NullableFloat32

type NullableFloat32 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

type NullableFloat64 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableInt

type NullableInt struct {
	// contains filtered or unexported fields
}

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

type NullableInt32 struct {
	// contains filtered or unexported fields
}

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

type NullableInt64 struct {
	// contains filtered or unexported fields
}

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableInvite

type NullableInvite struct {
	// contains filtered or unexported fields
}

func NewNullableInvite

func NewNullableInvite(val *Invite) *NullableInvite

func (NullableInvite) Get

func (v NullableInvite) Get() *Invite

func (NullableInvite) IsSet

func (v NullableInvite) IsSet() bool

func (NullableInvite) MarshalJSON

func (v NullableInvite) MarshalJSON() ([]byte, error)

func (*NullableInvite) Set

func (v *NullableInvite) Set(val *Invite)

func (*NullableInvite) UnmarshalJSON

func (v *NullableInvite) UnmarshalJSON(src []byte) error

func (*NullableInvite) Unset

func (v *NullableInvite) Unset()

type NullableInviteList

type NullableInviteList struct {
	// contains filtered or unexported fields
}

func NewNullableInviteList

func NewNullableInviteList(val *InviteList) *NullableInviteList

func (NullableInviteList) Get

func (v NullableInviteList) Get() *InviteList

func (NullableInviteList) IsSet

func (v NullableInviteList) IsSet() bool

func (NullableInviteList) MarshalJSON

func (v NullableInviteList) MarshalJSON() ([]byte, error)

func (*NullableInviteList) Set

func (v *NullableInviteList) Set(val *InviteList)

func (*NullableInviteList) UnmarshalJSON

func (v *NullableInviteList) UnmarshalJSON(src []byte) error

func (*NullableInviteList) Unset

func (v *NullableInviteList) Unset()

type NullableMember

type NullableMember struct {
	// contains filtered or unexported fields
}

func NewNullableMember

func NewNullableMember(val *Member) *NullableMember

func (NullableMember) Get

func (v NullableMember) Get() *Member

func (NullableMember) IsSet

func (v NullableMember) IsSet() bool

func (NullableMember) MarshalJSON

func (v NullableMember) MarshalJSON() ([]byte, error)

func (*NullableMember) Set

func (v *NullableMember) Set(val *Member)

func (*NullableMember) UnmarshalJSON

func (v *NullableMember) UnmarshalJSON(src []byte) error

func (*NullableMember) Unset

func (v *NullableMember) Unset()

type NullableMemberList

type NullableMemberList struct {
	// contains filtered or unexported fields
}

func NewNullableMemberList

func NewNullableMemberList(val *MemberList) *NullableMemberList

func (NullableMemberList) Get

func (v NullableMemberList) Get() *MemberList

func (NullableMemberList) IsSet

func (v NullableMemberList) IsSet() bool

func (NullableMemberList) MarshalJSON

func (v NullableMemberList) MarshalJSON() ([]byte, error)

func (*NullableMemberList) Set

func (v *NullableMemberList) Set(val *MemberList)

func (*NullableMemberList) UnmarshalJSON

func (v *NullableMemberList) UnmarshalJSON(src []byte) error

func (*NullableMemberList) Unset

func (v *NullableMemberList) Unset()

type NullableMemberOfATeam added in v1.3.13

type NullableMemberOfATeam struct {
	// contains filtered or unexported fields
}

func NewNullableMemberOfATeam added in v1.3.13

func NewNullableMemberOfATeam(val *MemberOfATeam) *NullableMemberOfATeam

func (NullableMemberOfATeam) Get added in v1.3.13

func (NullableMemberOfATeam) IsSet added in v1.3.13

func (v NullableMemberOfATeam) IsSet() bool

func (NullableMemberOfATeam) MarshalJSON added in v1.3.13

func (v NullableMemberOfATeam) MarshalJSON() ([]byte, error)

func (*NullableMemberOfATeam) Set added in v1.3.13

func (v *NullableMemberOfATeam) Set(val *MemberOfATeam)

func (*NullableMemberOfATeam) UnmarshalJSON added in v1.3.13

func (v *NullableMemberOfATeam) UnmarshalJSON(src []byte) error

func (*NullableMemberOfATeam) Unset added in v1.3.13

func (v *NullableMemberOfATeam) Unset()

type NullableProtobufAny

type NullableProtobufAny struct {
	// contains filtered or unexported fields
}

func NewNullableProtobufAny

func NewNullableProtobufAny(val *ProtobufAny) *NullableProtobufAny

func (NullableProtobufAny) Get

func (NullableProtobufAny) IsSet

func (v NullableProtobufAny) IsSet() bool

func (NullableProtobufAny) MarshalJSON

func (v NullableProtobufAny) MarshalJSON() ([]byte, error)

func (*NullableProtobufAny) Set

func (v *NullableProtobufAny) Set(val *ProtobufAny)

func (*NullableProtobufAny) UnmarshalJSON

func (v *NullableProtobufAny) UnmarshalJSON(src []byte) error

func (*NullableProtobufAny) Unset

func (v *NullableProtobufAny) Unset()

type NullableRequestInviteDetails added in v1.3.13

type NullableRequestInviteDetails struct {
	// contains filtered or unexported fields
}

func NewNullableRequestInviteDetails added in v1.3.13

func NewNullableRequestInviteDetails(val *RequestInviteDetails) *NullableRequestInviteDetails

func (NullableRequestInviteDetails) Get added in v1.3.13

func (NullableRequestInviteDetails) IsSet added in v1.3.13

func (NullableRequestInviteDetails) MarshalJSON added in v1.3.13

func (v NullableRequestInviteDetails) MarshalJSON() ([]byte, error)

func (*NullableRequestInviteDetails) Set added in v1.3.13

func (*NullableRequestInviteDetails) UnmarshalJSON added in v1.3.13

func (v *NullableRequestInviteDetails) UnmarshalJSON(src []byte) error

func (*NullableRequestInviteDetails) Unset added in v1.3.13

func (v *NullableRequestInviteDetails) Unset()

type NullableRpcStatus

type NullableRpcStatus struct {
	// contains filtered or unexported fields
}

func NewNullableRpcStatus

func NewNullableRpcStatus(val *RpcStatus) *NullableRpcStatus

func (NullableRpcStatus) Get

func (v NullableRpcStatus) Get() *RpcStatus

func (NullableRpcStatus) IsSet

func (v NullableRpcStatus) IsSet() bool

func (NullableRpcStatus) MarshalJSON

func (v NullableRpcStatus) MarshalJSON() ([]byte, error)

func (*NullableRpcStatus) Set

func (v *NullableRpcStatus) Set(val *RpcStatus)

func (*NullableRpcStatus) UnmarshalJSON

func (v *NullableRpcStatus) UnmarshalJSON(src []byte) error

func (*NullableRpcStatus) Unset

func (v *NullableRpcStatus) Unset()

type NullableString

type NullableString struct {
	// contains filtered or unexported fields
}

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTeam

type NullableTeam struct {
	// contains filtered or unexported fields
}

func NewNullableTeam

func NewNullableTeam(val *Team) *NullableTeam

func (NullableTeam) Get

func (v NullableTeam) Get() *Team

func (NullableTeam) IsSet

func (v NullableTeam) IsSet() bool

func (NullableTeam) MarshalJSON

func (v NullableTeam) MarshalJSON() ([]byte, error)

func (*NullableTeam) Set

func (v *NullableTeam) Set(val *Team)

func (*NullableTeam) UnmarshalJSON

func (v *NullableTeam) UnmarshalJSON(src []byte) error

func (*NullableTeam) Unset

func (v *NullableTeam) Unset()

type NullableTeamList

type NullableTeamList struct {
	// contains filtered or unexported fields
}

func NewNullableTeamList

func NewNullableTeamList(val *TeamList) *NullableTeamList

func (NullableTeamList) Get

func (v NullableTeamList) Get() *TeamList

func (NullableTeamList) IsSet

func (v NullableTeamList) IsSet() bool

func (NullableTeamList) MarshalJSON

func (v NullableTeamList) MarshalJSON() ([]byte, error)

func (*NullableTeamList) Set

func (v *NullableTeamList) Set(val *TeamList)

func (*NullableTeamList) UnmarshalJSON

func (v *NullableTeamList) UnmarshalJSON(src []byte) error

func (*NullableTeamList) Unset

func (v *NullableTeamList) Unset()

type NullableTime

type NullableTime struct {
	// contains filtered or unexported fields
}

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableToken

type NullableToken struct {
	// contains filtered or unexported fields
}

func NewNullableToken

func NewNullableToken(val *Token) *NullableToken

func (NullableToken) Get

func (v NullableToken) Get() *Token

func (NullableToken) IsSet

func (v NullableToken) IsSet() bool

func (NullableToken) MarshalJSON

func (v NullableToken) MarshalJSON() ([]byte, error)

func (*NullableToken) Set

func (v *NullableToken) Set(val *Token)

func (*NullableToken) UnmarshalJSON

func (v *NullableToken) UnmarshalJSON(src []byte) error

func (*NullableToken) Unset

func (v *NullableToken) Unset()

type NullableTokenList

type NullableTokenList struct {
	// contains filtered or unexported fields
}

func NewNullableTokenList

func NewNullableTokenList(val *TokenList) *NullableTokenList

func (NullableTokenList) Get

func (v NullableTokenList) Get() *TokenList

func (NullableTokenList) IsSet

func (v NullableTokenList) IsSet() bool

func (NullableTokenList) MarshalJSON

func (v NullableTokenList) MarshalJSON() ([]byte, error)

func (*NullableTokenList) Set

func (v *NullableTokenList) Set(val *TokenList)

func (*NullableTokenList) UnmarshalJSON

func (v *NullableTokenList) UnmarshalJSON(src []byte) error

func (*NullableTokenList) Unset

func (v *NullableTokenList) Unset()

type NullableUserProfile

type NullableUserProfile struct {
	// contains filtered or unexported fields
}

func NewNullableUserProfile

func NewNullableUserProfile(val *UserProfile) *NullableUserProfile

func (NullableUserProfile) Get

func (NullableUserProfile) IsSet

func (v NullableUserProfile) IsSet() bool

func (NullableUserProfile) MarshalJSON

func (v NullableUserProfile) MarshalJSON() ([]byte, error)

func (*NullableUserProfile) Set

func (v *NullableUserProfile) Set(val *UserProfile)

func (*NullableUserProfile) UnmarshalJSON

func (v *NullableUserProfile) UnmarshalJSON(src []byte) error

func (*NullableUserProfile) Unset

func (v *NullableUserProfile) Unset()

type ProfileApiService

type ProfileApiService service

ProfileApiService ProfileApi service

func (*ProfileApiService) GetUserProfile

* GetUserProfile Logged in profile * Show your user profile information * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiGetUserProfileRequest

func (*ProfileApiService) GetUserProfileExecute

* Execute executes the request * @return UserProfile

type ProtobufAny

type ProtobufAny struct {
	Type *string `json:"@type,omitempty"`
}

ProtobufAny struct for ProtobufAny

func NewProtobufAny

func NewProtobufAny() *ProtobufAny

NewProtobufAny instantiates a new ProtobufAny object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewProtobufAnyWithDefaults

func NewProtobufAnyWithDefaults() *ProtobufAny

NewProtobufAnyWithDefaults instantiates a new ProtobufAny object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ProtobufAny) GetType added in v1.3.13

func (o *ProtobufAny) GetType() string

GetType returns the Type field value if set, zero value otherwise.

func (*ProtobufAny) GetTypeOk added in v1.3.13

func (o *ProtobufAny) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ProtobufAny) HasType added in v1.3.13

func (o *ProtobufAny) HasType() bool

HasType returns a boolean if a field has been set.

func (ProtobufAny) MarshalJSON

func (o ProtobufAny) MarshalJSON() ([]byte, error)

func (*ProtobufAny) SetType added in v1.3.13

func (o *ProtobufAny) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

type RequestInviteDetails added in v1.3.13

type RequestInviteDetails struct {
	// The invite code.
	Code *string `json:"code,omitempty"`
}

RequestInviteDetails struct for RequestInviteDetails

func NewRequestInviteDetails added in v1.3.13

func NewRequestInviteDetails() *RequestInviteDetails

NewRequestInviteDetails instantiates a new RequestInviteDetails object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewRequestInviteDetailsWithDefaults added in v1.3.13

func NewRequestInviteDetailsWithDefaults() *RequestInviteDetails

NewRequestInviteDetailsWithDefaults instantiates a new RequestInviteDetails object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*RequestInviteDetails) GetCode added in v1.3.13

func (o *RequestInviteDetails) GetCode() string

GetCode returns the Code field value if set, zero value otherwise.

func (*RequestInviteDetails) GetCodeOk added in v1.3.13

func (o *RequestInviteDetails) GetCodeOk() (*string, bool)

GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RequestInviteDetails) HasCode added in v1.3.13

func (o *RequestInviteDetails) HasCode() bool

HasCode returns a boolean if a field has been set.

func (RequestInviteDetails) MarshalJSON added in v1.3.13

func (o RequestInviteDetails) MarshalJSON() ([]byte, error)

func (*RequestInviteDetails) SetCode added in v1.3.13

func (o *RequestInviteDetails) SetCode(v string)

SetCode gets a reference to the given string and assigns it to the Code field.

type RpcStatus

type RpcStatus struct {
	Code    *int32         `json:"code,omitempty"`
	Message *string        `json:"message,omitempty"`
	Details *[]ProtobufAny `json:"details,omitempty"`
}

RpcStatus struct for RpcStatus

func NewRpcStatus

func NewRpcStatus() *RpcStatus

NewRpcStatus instantiates a new RpcStatus object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewRpcStatusWithDefaults

func NewRpcStatusWithDefaults() *RpcStatus

NewRpcStatusWithDefaults instantiates a new RpcStatus object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*RpcStatus) GetCode

func (o *RpcStatus) GetCode() int32

GetCode returns the Code field value if set, zero value otherwise.

func (*RpcStatus) GetCodeOk

func (o *RpcStatus) GetCodeOk() (*int32, bool)

GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RpcStatus) GetDetails

func (o *RpcStatus) GetDetails() []ProtobufAny

GetDetails returns the Details field value if set, zero value otherwise.

func (*RpcStatus) GetDetailsOk

func (o *RpcStatus) GetDetailsOk() (*[]ProtobufAny, bool)

GetDetailsOk returns a tuple with the Details field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RpcStatus) GetMessage

func (o *RpcStatus) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*RpcStatus) GetMessageOk

func (o *RpcStatus) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RpcStatus) HasCode

func (o *RpcStatus) HasCode() bool

HasCode returns a boolean if a field has been set.

func (*RpcStatus) HasDetails

func (o *RpcStatus) HasDetails() bool

HasDetails returns a boolean if a field has been set.

func (*RpcStatus) HasMessage

func (o *RpcStatus) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (RpcStatus) MarshalJSON

func (o RpcStatus) MarshalJSON() ([]byte, error)

func (*RpcStatus) SetCode

func (o *RpcStatus) SetCode(v int32)

SetCode gets a reference to the given int32 and assigns it to the Code field.

func (*RpcStatus) SetDetails

func (o *RpcStatus) SetDetails(v []ProtobufAny)

SetDetails gets a reference to the given []ProtobufAny and assigns it to the Details field.

func (*RpcStatus) SetMessage

func (o *RpcStatus) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type Team

type Team struct {
	TeamId    *string            `json:"teamId,omitempty"`
	IsPrivate *bool              `json:"isPrivate,omitempty"`
	Tags      *map[string]string `json:"tags,omitempty"`
	Members   *[]Member          `json:"members,omitempty"`
}

Team struct for Team

func NewTeam

func NewTeam() *Team

NewTeam instantiates a new Team object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTeamWithDefaults

func NewTeamWithDefaults() *Team

NewTeamWithDefaults instantiates a new Team object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Team) GetIsPrivate

func (o *Team) GetIsPrivate() bool

GetIsPrivate returns the IsPrivate field value if set, zero value otherwise.

func (*Team) GetIsPrivateOk

func (o *Team) GetIsPrivateOk() (*bool, bool)

GetIsPrivateOk returns a tuple with the IsPrivate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Team) GetMembers

func (o *Team) GetMembers() []Member

GetMembers returns the Members field value if set, zero value otherwise.

func (*Team) GetMembersOk

func (o *Team) GetMembersOk() (*[]Member, bool)

GetMembersOk returns a tuple with the Members field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Team) GetTags

func (o *Team) GetTags() map[string]string

GetTags returns the Tags field value if set, zero value otherwise.

func (*Team) GetTagsOk

func (o *Team) GetTagsOk() (*map[string]string, bool)

GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Team) GetTeamId

func (o *Team) GetTeamId() string

GetTeamId returns the TeamId field value if set, zero value otherwise.

func (*Team) GetTeamIdOk

func (o *Team) GetTeamIdOk() (*string, bool)

GetTeamIdOk returns a tuple with the TeamId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Team) HasIsPrivate

func (o *Team) HasIsPrivate() bool

HasIsPrivate returns a boolean if a field has been set.

func (*Team) HasMembers

func (o *Team) HasMembers() bool

HasMembers returns a boolean if a field has been set.

func (*Team) HasTags

func (o *Team) HasTags() bool

HasTags returns a boolean if a field has been set.

func (*Team) HasTeamId

func (o *Team) HasTeamId() bool

HasTeamId returns a boolean if a field has been set.

func (Team) MarshalJSON

func (o Team) MarshalJSON() ([]byte, error)

func (*Team) SetIsPrivate

func (o *Team) SetIsPrivate(v bool)

SetIsPrivate gets a reference to the given bool and assigns it to the IsPrivate field.

func (*Team) SetMembers

func (o *Team) SetMembers(v []Member)

SetMembers gets a reference to the given []Member and assigns it to the Members field.

func (*Team) SetTags

func (o *Team) SetTags(v map[string]string)

SetTags gets a reference to the given map[string]string and assigns it to the Tags field.

func (*Team) SetTeamId

func (o *Team) SetTeamId(v string)

SetTeamId gets a reference to the given string and assigns it to the TeamId field.

type TeamList

type TeamList struct {
	Teams *[]Team `json:"teams,omitempty"`
}

TeamList struct for TeamList

func NewTeamList

func NewTeamList() *TeamList

NewTeamList instantiates a new TeamList object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTeamListWithDefaults

func NewTeamListWithDefaults() *TeamList

NewTeamListWithDefaults instantiates a new TeamList object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TeamList) GetTeams

func (o *TeamList) GetTeams() []Team

GetTeams returns the Teams field value if set, zero value otherwise.

func (*TeamList) GetTeamsOk

func (o *TeamList) GetTeamsOk() (*[]Team, bool)

GetTeamsOk returns a tuple with the Teams field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TeamList) HasTeams

func (o *TeamList) HasTeams() bool

HasTeams returns a boolean if a field has been set.

func (TeamList) MarshalJSON

func (o TeamList) MarshalJSON() ([]byte, error)

func (*TeamList) SetTeams

func (o *TeamList) SetTeams(v []Team)

SetTeams gets a reference to the given []Team and assigns it to the Teams field.

type TeamsApiService

type TeamsApiService service

TeamsApiService TeamsApi service

func (*TeamsApiService) AcceptInvite

* AcceptInvite Accept invite * Accept an invite from another user. This will add the currently logged in user to the team as a regular memeber. When the invite is accepted it is removed from the team's invites and cannot be reused. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiAcceptInviteRequest

func (*TeamsApiService) AcceptInviteExecute

func (a *TeamsApiService) AcceptInviteExecute(r ApiAcceptInviteRequest) (Team, *_nethttp.Response, error)

* Execute executes the request * @return Team

func (*TeamsApiService) CreateTeam

* CreateTeam Create team * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiCreateTeamRequest

func (*TeamsApiService) CreateTeamExecute

func (a *TeamsApiService) CreateTeamExecute(r ApiCreateTeamRequest) (Team, *_nethttp.Response, error)

* Execute executes the request * @return Team

func (*TeamsApiService) DeleteInvite

func (a *TeamsApiService) DeleteInvite(ctx _context.Context, teamId string, code string) ApiDeleteInviteRequest

* DeleteInvite Delete invite * Delete an invite created earlier. You must be an administrator of the team to perform this action * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param teamId The team ID * @param code The invite code. * @return ApiDeleteInviteRequest

func (*TeamsApiService) DeleteInviteExecute

* Execute executes the request * @return DeleteInviteResponse

func (*TeamsApiService) DeleteMember

func (a *TeamsApiService) DeleteMember(ctx _context.Context, teamId string, userId string) ApiDeleteMemberRequest

* DeleteMember Remove member * Remove a member from the team. You must be an administrator to do this. You can't remove yourself from the team. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param teamId The team ID * @param userId The user ID * @return ApiDeleteMemberRequest

func (*TeamsApiService) DeleteMemberExecute

func (a *TeamsApiService) DeleteMemberExecute(r ApiDeleteMemberRequest) (Member, *_nethttp.Response, error)

* Execute executes the request * @return Member

func (*TeamsApiService) DeleteTeam

func (a *TeamsApiService) DeleteTeam(ctx _context.Context, teamId string) ApiDeleteTeamRequest

* DeleteTeam Remove team * Update the team. You must be an administrator of the team to edit it. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param teamId The team ID * @return ApiDeleteTeamRequest

func (*TeamsApiService) DeleteTeamExecute

func (a *TeamsApiService) DeleteTeamExecute(r ApiDeleteTeamRequest) (Team, *_nethttp.Response, error)

* Execute executes the request * @return Team

func (*TeamsApiService) GenerateInvite

func (a *TeamsApiService) GenerateInvite(ctx _context.Context, teamId string) ApiGenerateInviteRequest

* GenerateInvite Generate invite * Update the team. You must be an administrator of the team to edit it. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param teamId The team ID * @return ApiGenerateInviteRequest

func (*TeamsApiService) GenerateInviteExecute

func (a *TeamsApiService) GenerateInviteExecute(r ApiGenerateInviteRequest) (Invite, *_nethttp.Response, error)

* Execute executes the request * @return Invite

func (*TeamsApiService) ListInvites

func (a *TeamsApiService) ListInvites(ctx _context.Context, teamId string) ApiListInvitesRequest

* ListInvites List invites * Update the team. You must be an administrator of the team to edit it. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param teamId The team ID * @return ApiListInvitesRequest

func (*TeamsApiService) ListInvitesExecute

* Execute executes the request * @return InviteList

func (*TeamsApiService) ListTeams

* ListTeams List teams * Update the team. You must be an administrator of the team to edit it. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiListTeamsRequest

func (*TeamsApiService) ListTeamsExecute

func (a *TeamsApiService) ListTeamsExecute(r ApiListTeamsRequest) (TeamList, *_nethttp.Response, error)

* Execute executes the request * @return TeamList

func (*TeamsApiService) RetrieveInvite

func (a *TeamsApiService) RetrieveInvite(ctx _context.Context, teamId string, code string) ApiRetrieveInviteRequest

* RetrieveInvite Retrieve invite * Read a single invite from the team's set of non-redeemed invites. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param teamId The team ID * @param code The invite code. * @return ApiRetrieveInviteRequest

func (*TeamsApiService) RetrieveInviteExecute

func (a *TeamsApiService) RetrieveInviteExecute(r ApiRetrieveInviteRequest) (Invite, *_nethttp.Response, error)

* Execute executes the request * @return Invite

func (*TeamsApiService) RetrieveMember

func (a *TeamsApiService) RetrieveMember(ctx _context.Context, teamId string, userId string) ApiRetrieveMemberRequest

* RetrieveMember Retrieve member * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param teamId The team ID * @param userId The user ID * @return ApiRetrieveMemberRequest

func (*TeamsApiService) RetrieveMemberExecute

func (a *TeamsApiService) RetrieveMemberExecute(r ApiRetrieveMemberRequest) (Member, *_nethttp.Response, error)

* Execute executes the request * @return Member

func (*TeamsApiService) RetrieveTeam

func (a *TeamsApiService) RetrieveTeam(ctx _context.Context, teamId string) ApiRetrieveTeamRequest

* RetrieveTeam Retrieve team * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param teamId The team ID * @return ApiRetrieveTeamRequest

func (*TeamsApiService) RetrieveTeamExecute

func (a *TeamsApiService) RetrieveTeamExecute(r ApiRetrieveTeamRequest) (Team, *_nethttp.Response, error)

* Execute executes the request * @return Team

func (*TeamsApiService) RetrieveTeamMembers

func (a *TeamsApiService) RetrieveTeamMembers(ctx _context.Context, teamId string) ApiRetrieveTeamMembersRequest

* RetrieveTeamMembers List members * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param teamId The team ID * @return ApiRetrieveTeamMembersRequest

func (*TeamsApiService) RetrieveTeamMembersExecute

func (a *TeamsApiService) RetrieveTeamMembersExecute(r ApiRetrieveTeamMembersRequest) (MemberList, *_nethttp.Response, error)

* Execute executes the request * @return MemberList

func (*TeamsApiService) UpdateMember

func (a *TeamsApiService) UpdateMember(ctx _context.Context, teamId string, userId string) ApiUpdateMemberRequest

* UpdateMember Update member * You must be an administrator of the team to update member settings * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param teamId * @param userId * @return ApiUpdateMemberRequest

func (*TeamsApiService) UpdateMemberExecute

func (a *TeamsApiService) UpdateMemberExecute(r ApiUpdateMemberRequest) (Member, *_nethttp.Response, error)

* Execute executes the request * @return Member

func (*TeamsApiService) UpdateTeam

func (a *TeamsApiService) UpdateTeam(ctx _context.Context, teamId string) ApiUpdateTeamRequest

* UpdateTeam Update team * Update the team. You must be an administrator of the team to edit it. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param teamId * @return ApiUpdateTeamRequest

func (*TeamsApiService) UpdateTeamExecute

func (a *TeamsApiService) UpdateTeamExecute(r ApiUpdateTeamRequest) (Team, *_nethttp.Response, error)

* Execute executes the request * @return Team

type Token

type Token struct {
	// The resource of the token.  The token applies to the specified resource and any resources below this so the resource `/` applies to the root resource and any resource below the root resource. In the same manner `/collections` will apply to all collectins while `/collections/{id}` will apply to that particular collection.
	Resource *string `json:"resource,omitempty"`
	// Write flag for token.  If this is set to `true` the token can be used for write operations in the API such as POST, DELETE and PATCH.
	Write *bool `json:"write,omitempty"`
	// Use this in the `X-API-Token` header when using the API.
	Token *string `json:"token,omitempty"`
	// Tags for the token.
	Tags *map[string]string `json:"tags,omitempty"`
	// The last time the token was used. Time in ms since epoch.
	LastUse *string `json:"lastUse,omitempty"`
	Uses    *string `json:"uses,omitempty"`
}

Token struct for Token

func NewToken

func NewToken() *Token

NewToken instantiates a new Token object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTokenWithDefaults

func NewTokenWithDefaults() *Token

NewTokenWithDefaults instantiates a new Token object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Token) GetLastUse

func (o *Token) GetLastUse() string

GetLastUse returns the LastUse field value if set, zero value otherwise.

func (*Token) GetLastUseOk

func (o *Token) GetLastUseOk() (*string, bool)

GetLastUseOk returns a tuple with the LastUse field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Token) GetResource

func (o *Token) GetResource() string

GetResource returns the Resource field value if set, zero value otherwise.

func (*Token) GetResourceOk

func (o *Token) GetResourceOk() (*string, bool)

GetResourceOk returns a tuple with the Resource field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Token) GetTags

func (o *Token) GetTags() map[string]string

GetTags returns the Tags field value if set, zero value otherwise.

func (*Token) GetTagsOk

func (o *Token) GetTagsOk() (*map[string]string, bool)

GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Token) GetToken

func (o *Token) GetToken() string

GetToken returns the Token field value if set, zero value otherwise.

func (*Token) GetTokenOk

func (o *Token) GetTokenOk() (*string, bool)

GetTokenOk returns a tuple with the Token field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Token) GetUses

func (o *Token) GetUses() string

GetUses returns the Uses field value if set, zero value otherwise.

func (*Token) GetUsesOk

func (o *Token) GetUsesOk() (*string, bool)

GetUsesOk returns a tuple with the Uses field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Token) GetWrite

func (o *Token) GetWrite() bool

GetWrite returns the Write field value if set, zero value otherwise.

func (*Token) GetWriteOk

func (o *Token) GetWriteOk() (*bool, bool)

GetWriteOk returns a tuple with the Write field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Token) HasLastUse

func (o *Token) HasLastUse() bool

HasLastUse returns a boolean if a field has been set.

func (*Token) HasResource

func (o *Token) HasResource() bool

HasResource returns a boolean if a field has been set.

func (*Token) HasTags

func (o *Token) HasTags() bool

HasTags returns a boolean if a field has been set.

func (*Token) HasToken

func (o *Token) HasToken() bool

HasToken returns a boolean if a field has been set.

func (*Token) HasUses

func (o *Token) HasUses() bool

HasUses returns a boolean if a field has been set.

func (*Token) HasWrite

func (o *Token) HasWrite() bool

HasWrite returns a boolean if a field has been set.

func (Token) MarshalJSON

func (o Token) MarshalJSON() ([]byte, error)

func (*Token) SetLastUse

func (o *Token) SetLastUse(v string)

SetLastUse gets a reference to the given string and assigns it to the LastUse field.

func (*Token) SetResource

func (o *Token) SetResource(v string)

SetResource gets a reference to the given string and assigns it to the Resource field.

func (*Token) SetTags

func (o *Token) SetTags(v map[string]string)

SetTags gets a reference to the given map[string]string and assigns it to the Tags field.

func (*Token) SetToken

func (o *Token) SetToken(v string)

SetToken gets a reference to the given string and assigns it to the Token field.

func (*Token) SetUses

func (o *Token) SetUses(v string)

SetUses gets a reference to the given string and assigns it to the Uses field.

func (*Token) SetWrite

func (o *Token) SetWrite(v bool)

SetWrite gets a reference to the given bool and assigns it to the Write field.

type TokenList

type TokenList struct {
	Tokens *[]Token `json:"tokens,omitempty"`
}

TokenList struct for TokenList

func NewTokenList

func NewTokenList() *TokenList

NewTokenList instantiates a new TokenList object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTokenListWithDefaults

func NewTokenListWithDefaults() *TokenList

NewTokenListWithDefaults instantiates a new TokenList object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TokenList) GetTokens

func (o *TokenList) GetTokens() []Token

GetTokens returns the Tokens field value if set, zero value otherwise.

func (*TokenList) GetTokensOk

func (o *TokenList) GetTokensOk() (*[]Token, bool)

GetTokensOk returns a tuple with the Tokens field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TokenList) HasTokens

func (o *TokenList) HasTokens() bool

HasTokens returns a boolean if a field has been set.

func (TokenList) MarshalJSON

func (o TokenList) MarshalJSON() ([]byte, error)

func (*TokenList) SetTokens

func (o *TokenList) SetTokens(v []Token)

SetTokens gets a reference to the given []Token and assigns it to the Tokens field.

type TokensApiService

type TokensApiService service

TokensApiService TokensApi service

func (*TokensApiService) CreateToken

* CreateToken Create token * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiCreateTokenRequest

func (*TokensApiService) CreateTokenExecute

func (a *TokensApiService) CreateTokenExecute(r ApiCreateTokenRequest) (Token, *_nethttp.Response, error)

* Execute executes the request * @return Token

func (*TokensApiService) DeleteToken

func (a *TokensApiService) DeleteToken(ctx _context.Context, token string) ApiDeleteTokenRequest

* DeleteToken Remove token * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param token The token to delete. * @return ApiDeleteTokenRequest

func (*TokensApiService) DeleteTokenExecute

* Execute executes the request * @return DeleteTokenResponse

func (*TokensApiService) ListTokens

* ListTokens List tokens * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiListTokensRequest

func (*TokensApiService) ListTokensExecute

* Execute executes the request * @return TokenList

func (*TokensApiService) RetrieveToken

func (a *TokensApiService) RetrieveToken(ctx _context.Context, token string) ApiRetrieveTokenRequest

* RetrieveToken Retrieve token * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param token * @return ApiRetrieveTokenRequest

func (*TokensApiService) RetrieveTokenExecute

func (a *TokensApiService) RetrieveTokenExecute(r ApiRetrieveTokenRequest) (Token, *_nethttp.Response, error)

* Execute executes the request * @return Token

func (*TokensApiService) UpdateToken

func (a *TokensApiService) UpdateToken(ctx _context.Context, token string) ApiUpdateTokenRequest

* UpdateToken Update token * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param token The token Use this in the `X-API-Token` header when using the API. * @return ApiUpdateTokenRequest

func (*TokensApiService) UpdateTokenExecute

func (a *TokensApiService) UpdateTokenExecute(r ApiUpdateTokenRequest) (Token, *_nethttp.Response, error)

* Execute executes the request * @return Token

type UserProfile

type UserProfile struct {
	UserId      *string `json:"userId,omitempty"`
	Email       *string `json:"email,omitempty"`
	AvatarUrl   *string `json:"avatarUrl,omitempty"`
	Name        *string `json:"name,omitempty"`
	ProfileUrl  *string `json:"profileUrl,omitempty"`
	GithubLogin *string `json:"githubLogin,omitempty"`
	Provider    *string `json:"provider,omitempty"`
	LogoutUrl   *string `json:"logoutUrl,omitempty"`
}

UserProfile Your user profile. You can change the contents of the user profile via the log in service you are using.

func NewUserProfile

func NewUserProfile() *UserProfile

NewUserProfile instantiates a new UserProfile object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUserProfileWithDefaults

func NewUserProfileWithDefaults() *UserProfile

NewUserProfileWithDefaults instantiates a new UserProfile object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UserProfile) GetAvatarUrl

func (o *UserProfile) GetAvatarUrl() string

GetAvatarUrl returns the AvatarUrl field value if set, zero value otherwise.

func (*UserProfile) GetAvatarUrlOk

func (o *UserProfile) GetAvatarUrlOk() (*string, bool)

GetAvatarUrlOk returns a tuple with the AvatarUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserProfile) GetEmail

func (o *UserProfile) GetEmail() string

GetEmail returns the Email field value if set, zero value otherwise.

func (*UserProfile) GetEmailOk

func (o *UserProfile) GetEmailOk() (*string, bool)

GetEmailOk returns a tuple with the Email field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserProfile) GetGithubLogin

func (o *UserProfile) GetGithubLogin() string

GetGithubLogin returns the GithubLogin field value if set, zero value otherwise.

func (*UserProfile) GetGithubLoginOk

func (o *UserProfile) GetGithubLoginOk() (*string, bool)

GetGithubLoginOk returns a tuple with the GithubLogin field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserProfile) GetLogoutUrl

func (o *UserProfile) GetLogoutUrl() string

GetLogoutUrl returns the LogoutUrl field value if set, zero value otherwise.

func (*UserProfile) GetLogoutUrlOk

func (o *UserProfile) GetLogoutUrlOk() (*string, bool)

GetLogoutUrlOk returns a tuple with the LogoutUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserProfile) GetName

func (o *UserProfile) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*UserProfile) GetNameOk

func (o *UserProfile) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserProfile) GetProfileUrl

func (o *UserProfile) GetProfileUrl() string

GetProfileUrl returns the ProfileUrl field value if set, zero value otherwise.

func (*UserProfile) GetProfileUrlOk

func (o *UserProfile) GetProfileUrlOk() (*string, bool)

GetProfileUrlOk returns a tuple with the ProfileUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserProfile) GetProvider

func (o *UserProfile) GetProvider() string

GetProvider returns the Provider field value if set, zero value otherwise.

func (*UserProfile) GetProviderOk

func (o *UserProfile) GetProviderOk() (*string, bool)

GetProviderOk returns a tuple with the Provider field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserProfile) GetUserId

func (o *UserProfile) GetUserId() string

GetUserId returns the UserId field value if set, zero value otherwise.

func (*UserProfile) GetUserIdOk

func (o *UserProfile) GetUserIdOk() (*string, bool)

GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserProfile) HasAvatarUrl

func (o *UserProfile) HasAvatarUrl() bool

HasAvatarUrl returns a boolean if a field has been set.

func (*UserProfile) HasEmail

func (o *UserProfile) HasEmail() bool

HasEmail returns a boolean if a field has been set.

func (*UserProfile) HasGithubLogin

func (o *UserProfile) HasGithubLogin() bool

HasGithubLogin returns a boolean if a field has been set.

func (*UserProfile) HasLogoutUrl

func (o *UserProfile) HasLogoutUrl() bool

HasLogoutUrl returns a boolean if a field has been set.

func (*UserProfile) HasName

func (o *UserProfile) HasName() bool

HasName returns a boolean if a field has been set.

func (*UserProfile) HasProfileUrl

func (o *UserProfile) HasProfileUrl() bool

HasProfileUrl returns a boolean if a field has been set.

func (*UserProfile) HasProvider

func (o *UserProfile) HasProvider() bool

HasProvider returns a boolean if a field has been set.

func (*UserProfile) HasUserId

func (o *UserProfile) HasUserId() bool

HasUserId returns a boolean if a field has been set.

func (UserProfile) MarshalJSON

func (o UserProfile) MarshalJSON() ([]byte, error)

func (*UserProfile) SetAvatarUrl

func (o *UserProfile) SetAvatarUrl(v string)

SetAvatarUrl gets a reference to the given string and assigns it to the AvatarUrl field.

func (*UserProfile) SetEmail

func (o *UserProfile) SetEmail(v string)

SetEmail gets a reference to the given string and assigns it to the Email field.

func (*UserProfile) SetGithubLogin

func (o *UserProfile) SetGithubLogin(v string)

SetGithubLogin gets a reference to the given string and assigns it to the GithubLogin field.

func (*UserProfile) SetLogoutUrl

func (o *UserProfile) SetLogoutUrl(v string)

SetLogoutUrl gets a reference to the given string and assigns it to the LogoutUrl field.

func (*UserProfile) SetName

func (o *UserProfile) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*UserProfile) SetProfileUrl

func (o *UserProfile) SetProfileUrl(v string)

SetProfileUrl gets a reference to the given string and assigns it to the ProfileUrl field.

func (*UserProfile) SetProvider

func (o *UserProfile) SetProvider(v string)

SetProvider gets a reference to the given string and assigns it to the Provider field.

func (*UserProfile) SetUserId

func (o *UserProfile) SetUserId(v string)

SetUserId gets a reference to the given string and assigns it to the UserId field.

Directories

Path Synopsis
Package apitools contains utility functions for the clients
Package apitools contains utility functions for the clients
examples

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL