api

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

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 {
	AuthApi *AuthApiService

	CredsApi *CredsApiService

	DestinationsApi *DestinationsApiService

	GroupsApi *GroupsApiService

	RolesApi *RolesApiService

	SourcesApi *SourcesApiService

	UsersApi *UsersApiService

	VersionApi *VersionApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the Infra API API v0.1.0 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 APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

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

type ApiCreateCredRequest

type ApiCreateCredRequest struct {
	ApiService *CredsApiService
	// contains filtered or unexported fields
}

func (ApiCreateCredRequest) Execute

func (r ApiCreateCredRequest) Execute() (Cred, *_nethttp.Response, error)

type ApiCreateDestinationRequest

type ApiCreateDestinationRequest struct {
	ApiService *DestinationsApiService
	// contains filtered or unexported fields
}

func (ApiCreateDestinationRequest) Body

func (ApiCreateDestinationRequest) Execute

type ApiListDestinationsRequest

type ApiListDestinationsRequest struct {
	ApiService *DestinationsApiService
	// contains filtered or unexported fields
}

func (ApiListDestinationsRequest) Execute

type ApiListGroupsRequest

type ApiListGroupsRequest struct {
	ApiService *GroupsApiService
	// contains filtered or unexported fields
}

func (ApiListGroupsRequest) Execute

func (r ApiListGroupsRequest) Execute() ([]Group, *_nethttp.Response, error)

type ApiListRolesRequest

type ApiListRolesRequest struct {
	ApiService *RolesApiService
	// contains filtered or unexported fields
}

func (ApiListRolesRequest) DestinationId

func (r ApiListRolesRequest) DestinationId(destinationId string) ApiListRolesRequest

ID of the destination for which to list roles

func (ApiListRolesRequest) Execute

func (r ApiListRolesRequest) Execute() ([]Role, *_nethttp.Response, error)

type ApiListSourcesRequest

type ApiListSourcesRequest struct {
	ApiService *SourcesApiService
	// contains filtered or unexported fields
}

func (ApiListSourcesRequest) Execute

func (r ApiListSourcesRequest) Execute() ([]Source, *_nethttp.Response, error)

type ApiListUsersRequest

type ApiListUsersRequest struct {
	ApiService *UsersApiService
	// contains filtered or unexported fields
}

func (ApiListUsersRequest) Execute

func (r ApiListUsersRequest) Execute() ([]User, *_nethttp.Response, error)

type ApiLoginRequest

type ApiLoginRequest struct {
	ApiService *AuthApiService
	// contains filtered or unexported fields
}

func (ApiLoginRequest) Body

func (ApiLoginRequest) Execute

type ApiLogoutRequest

type ApiLogoutRequest struct {
	ApiService *AuthApiService
	// contains filtered or unexported fields
}

func (ApiLogoutRequest) Execute

func (r ApiLogoutRequest) Execute() (*_nethttp.Response, error)

type ApiVersionRequest

type ApiVersionRequest struct {
	ApiService *VersionApiService
	// contains filtered or unexported fields
}

func (ApiVersionRequest) Execute

func (r ApiVersionRequest) Execute() (Version, *_nethttp.Response, error)

type AuthApiService

type AuthApiService service

AuthApiService AuthApi service

func (*AuthApiService) Login

Login Login to Infra and get an API token for a user

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

func (*AuthApiService) LoginExecute

Execute executes the request

@return LoginResponse

func (*AuthApiService) Logout

Logout Log out of Infra

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

func (*AuthApiService) LogoutExecute

func (a *AuthApiService) LogoutExecute(r ApiLogoutRequest) (*_nethttp.Response, error)

Execute executes the request

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 Cred

type Cred struct {
	Token   string `json:"token"`
	Expires int64  `json:"expires"`
}

Cred struct for Cred

func NewCred

func NewCred(token string, expires int64) *Cred

NewCred instantiates a new Cred 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 NewCredWithDefaults

func NewCredWithDefaults() *Cred

NewCredWithDefaults instantiates a new Cred 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 (*Cred) GetExpires

func (o *Cred) GetExpires() int64

GetExpires returns the Expires field value

func (*Cred) GetExpiresOk

func (o *Cred) GetExpiresOk() (*int64, bool)

GetExpiresOk returns a tuple with the Expires field value and a boolean to check if the value has been set.

func (*Cred) GetToken

func (o *Cred) GetToken() string

GetToken returns the Token field value

func (*Cred) GetTokenOk

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

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

func (Cred) MarshalJSON

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

func (*Cred) SetExpires

func (o *Cred) SetExpires(v int64)

SetExpires sets field value

func (*Cred) SetToken

func (o *Cred) SetToken(v string)

SetToken sets field value

type CredsApiService

type CredsApiService service

CredsApiService CredsApi service

func (*CredsApiService) CreateCred

CreateCred Create credentials to access a destination

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

func (*CredsApiService) CreateCredExecute

func (a *CredsApiService) CreateCredExecute(r ApiCreateCredRequest) (Cred, *_nethttp.Response, error)

Execute executes the request

@return Cred

type Destination

type Destination struct {
	Id         string                 `json:"id"`
	Name       string                 `json:"name"`
	Created    int64                  `json:"created"`
	Updated    int64                  `json:"updated"`
	Kubernetes *DestinationKubernetes `json:"kubernetes,omitempty"`
}

Destination struct for Destination

func NewDestination

func NewDestination(id string, name string, created int64, updated int64) *Destination

NewDestination instantiates a new Destination 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 NewDestinationWithDefaults

func NewDestinationWithDefaults() *Destination

NewDestinationWithDefaults instantiates a new Destination 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 (*Destination) GetCreated

func (o *Destination) GetCreated() int64

GetCreated returns the Created field value

func (*Destination) GetCreatedOk

func (o *Destination) GetCreatedOk() (*int64, bool)

GetCreatedOk returns a tuple with the Created field value and a boolean to check if the value has been set.

func (*Destination) GetId

func (o *Destination) GetId() string

GetId returns the Id field value

func (*Destination) GetIdOk

func (o *Destination) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Destination) GetKubernetes

func (o *Destination) GetKubernetes() DestinationKubernetes

GetKubernetes returns the Kubernetes field value if set, zero value otherwise.

func (*Destination) GetKubernetesOk

func (o *Destination) GetKubernetesOk() (*DestinationKubernetes, bool)

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

func (*Destination) GetName

func (o *Destination) GetName() string

GetName returns the Name field value

func (*Destination) GetNameOk

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

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

func (*Destination) GetUpdated

func (o *Destination) GetUpdated() int64

GetUpdated returns the Updated field value

func (*Destination) GetUpdatedOk

func (o *Destination) GetUpdatedOk() (*int64, bool)

GetUpdatedOk returns a tuple with the Updated field value and a boolean to check if the value has been set.

func (*Destination) HasKubernetes

func (o *Destination) HasKubernetes() bool

HasKubernetes returns a boolean if a field has been set.

func (Destination) MarshalJSON

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

func (*Destination) SetCreated

func (o *Destination) SetCreated(v int64)

SetCreated sets field value

func (*Destination) SetId

func (o *Destination) SetId(v string)

SetId sets field value

func (*Destination) SetKubernetes

func (o *Destination) SetKubernetes(v DestinationKubernetes)

SetKubernetes gets a reference to the given DestinationKubernetes and assigns it to the Kubernetes field.

func (*Destination) SetName

func (o *Destination) SetName(v string)

SetName sets field value

func (*Destination) SetUpdated

func (o *Destination) SetUpdated(v int64)

SetUpdated sets field value

type DestinationCreateRequest

type DestinationCreateRequest struct {
	Name       string                 `json:"name"`
	Kubernetes *DestinationKubernetes `json:"kubernetes,omitempty"`
}

DestinationCreateRequest struct for DestinationCreateRequest

func NewDestinationCreateRequest

func NewDestinationCreateRequest(name string) *DestinationCreateRequest

NewDestinationCreateRequest instantiates a new DestinationCreateRequest 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 NewDestinationCreateRequestWithDefaults

func NewDestinationCreateRequestWithDefaults() *DestinationCreateRequest

NewDestinationCreateRequestWithDefaults instantiates a new DestinationCreateRequest 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 (*DestinationCreateRequest) GetKubernetes

GetKubernetes returns the Kubernetes field value if set, zero value otherwise.

func (*DestinationCreateRequest) GetKubernetesOk

func (o *DestinationCreateRequest) GetKubernetesOk() (*DestinationKubernetes, bool)

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

func (*DestinationCreateRequest) GetName

func (o *DestinationCreateRequest) GetName() string

GetName returns the Name field value

func (*DestinationCreateRequest) GetNameOk

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

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

func (*DestinationCreateRequest) HasKubernetes

func (o *DestinationCreateRequest) HasKubernetes() bool

HasKubernetes returns a boolean if a field has been set.

func (DestinationCreateRequest) MarshalJSON

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

func (*DestinationCreateRequest) SetKubernetes

func (o *DestinationCreateRequest) SetKubernetes(v DestinationKubernetes)

SetKubernetes gets a reference to the given DestinationKubernetes and assigns it to the Kubernetes field.

func (*DestinationCreateRequest) SetName

func (o *DestinationCreateRequest) SetName(v string)

SetName sets field value

type DestinationKubernetes

type DestinationKubernetes struct {
	Ca        string `json:"ca" validate:"required"`
	Endpoint  string `json:"endpoint" validate:"required"`
	Namespace string `json:"namespace" validate:"required"`
	SaToken   string `json:"saToken" validate:"required"`
}

DestinationKubernetes struct for DestinationKubernetes

func NewDestinationKubernetes

func NewDestinationKubernetes(ca string, endpoint string, namespace string, saToken string) *DestinationKubernetes

NewDestinationKubernetes instantiates a new DestinationKubernetes 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 NewDestinationKubernetesWithDefaults

func NewDestinationKubernetesWithDefaults() *DestinationKubernetes

NewDestinationKubernetesWithDefaults instantiates a new DestinationKubernetes 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 (*DestinationKubernetes) GetCa

func (o *DestinationKubernetes) GetCa() string

GetCa returns the Ca field value

func (*DestinationKubernetes) GetCaOk

func (o *DestinationKubernetes) GetCaOk() (*string, bool)

GetCaOk returns a tuple with the Ca field value and a boolean to check if the value has been set.

func (*DestinationKubernetes) GetEndpoint

func (o *DestinationKubernetes) GetEndpoint() string

GetEndpoint returns the Endpoint field value

func (*DestinationKubernetes) GetEndpointOk

func (o *DestinationKubernetes) GetEndpointOk() (*string, bool)

GetEndpointOk returns a tuple with the Endpoint field value and a boolean to check if the value has been set.

func (*DestinationKubernetes) GetNamespace

func (o *DestinationKubernetes) GetNamespace() string

GetNamespace returns the Namespace field value

func (*DestinationKubernetes) GetNamespaceOk

func (o *DestinationKubernetes) GetNamespaceOk() (*string, bool)

GetNamespaceOk returns a tuple with the Namespace field value and a boolean to check if the value has been set.

func (*DestinationKubernetes) GetSaToken

func (o *DestinationKubernetes) GetSaToken() string

GetSaToken returns the SaToken field value

func (*DestinationKubernetes) GetSaTokenOk

func (o *DestinationKubernetes) GetSaTokenOk() (*string, bool)

GetSaTokenOk returns a tuple with the SaToken field value and a boolean to check if the value has been set.

func (DestinationKubernetes) MarshalJSON

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

func (*DestinationKubernetes) SetCa

func (o *DestinationKubernetes) SetCa(v string)

SetCa sets field value

func (*DestinationKubernetes) SetEndpoint

func (o *DestinationKubernetes) SetEndpoint(v string)

SetEndpoint sets field value

func (*DestinationKubernetes) SetNamespace

func (o *DestinationKubernetes) SetNamespace(v string)

SetNamespace sets field value

func (*DestinationKubernetes) SetSaToken

func (o *DestinationKubernetes) SetSaToken(v string)

SetSaToken sets field value

type DestinationsApiService

type DestinationsApiService service

DestinationsApiService DestinationsApi service

func (*DestinationsApiService) CreateDestination

CreateDestination Register a destination

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

func (*DestinationsApiService) CreateDestinationExecute

Execute executes the request

@return Destination

func (*DestinationsApiService) ListDestinations

ListDestinations List destinations

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

func (*DestinationsApiService) ListDestinationsExecute

Execute executes the request

@return []Destination

type Error

type Error struct {
	Code    int32  `json:"code"`
	Message string `json:"message"`
}

Error struct for Error

func NewError

func NewError(code int32, message string) *Error

NewError instantiates a new Error 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 NewErrorWithDefaults

func NewErrorWithDefaults() *Error

NewErrorWithDefaults instantiates a new Error 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 (*Error) GetCode

func (o *Error) GetCode() int32

GetCode returns the Code field value

func (*Error) GetCodeOk

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

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

func (*Error) GetMessage

func (o *Error) GetMessage() string

GetMessage returns the Message field value

func (*Error) GetMessageOk

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

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

func (Error) MarshalJSON

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

func (*Error) SetCode

func (o *Error) SetCode(v int32)

SetCode sets field value

func (*Error) SetMessage

func (o *Error) SetMessage(v string)

SetMessage sets field value

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 Group

type Group struct {
	Id      string `json:"id"`
	Name    string `json:"name"`
	Created int64  `json:"created"`
	Updated int64  `json:"updated"`
	Source  string `json:"source"`
}

Group struct for Group

func NewGroup

func NewGroup(id string, name string, created int64, updated int64, source string) *Group

NewGroup instantiates a new Group 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 NewGroupWithDefaults

func NewGroupWithDefaults() *Group

NewGroupWithDefaults instantiates a new Group 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 (*Group) GetCreated

func (o *Group) GetCreated() int64

GetCreated returns the Created field value

func (*Group) GetCreatedOk

func (o *Group) GetCreatedOk() (*int64, bool)

GetCreatedOk returns a tuple with the Created field value and a boolean to check if the value has been set.

func (*Group) GetId

func (o *Group) GetId() string

GetId returns the Id field value

func (*Group) GetIdOk

func (o *Group) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Group) GetName

func (o *Group) GetName() string

GetName returns the Name field value

func (*Group) GetNameOk

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

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

func (*Group) GetSource

func (o *Group) GetSource() string

GetSource returns the Source field value

func (*Group) GetSourceOk

func (o *Group) GetSourceOk() (*string, bool)

GetSourceOk returns a tuple with the Source field value and a boolean to check if the value has been set.

func (*Group) GetUpdated

func (o *Group) GetUpdated() int64

GetUpdated returns the Updated field value

func (*Group) GetUpdatedOk

func (o *Group) GetUpdatedOk() (*int64, bool)

GetUpdatedOk returns a tuple with the Updated field value and a boolean to check if the value has been set.

func (Group) MarshalJSON

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

func (*Group) SetCreated

func (o *Group) SetCreated(v int64)

SetCreated sets field value

func (*Group) SetId

func (o *Group) SetId(v string)

SetId sets field value

func (*Group) SetName

func (o *Group) SetName(v string)

SetName sets field value

func (*Group) SetSource

func (o *Group) SetSource(v string)

SetSource sets field value

func (*Group) SetUpdated

func (o *Group) SetUpdated(v int64)

SetUpdated sets field value

type GroupsApiService

type GroupsApiService service

GroupsApiService GroupsApi service

func (*GroupsApiService) ListGroups

ListGroups List groups

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

func (*GroupsApiService) ListGroupsExecute

func (a *GroupsApiService) ListGroupsExecute(r ApiListGroupsRequest) ([]Group, *_nethttp.Response, error)

Execute executes the request

@return []Group

type LoginRequest

type LoginRequest struct {
	Okta *LoginRequestOkta `json:"okta,omitempty"`
}

LoginRequest struct for LoginRequest

func NewLoginRequest

func NewLoginRequest() *LoginRequest

NewLoginRequest instantiates a new LoginRequest 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 NewLoginRequestWithDefaults

func NewLoginRequestWithDefaults() *LoginRequest

NewLoginRequestWithDefaults instantiates a new LoginRequest 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 (*LoginRequest) GetOkta

func (o *LoginRequest) GetOkta() LoginRequestOkta

GetOkta returns the Okta field value if set, zero value otherwise.

func (*LoginRequest) GetOktaOk

func (o *LoginRequest) GetOktaOk() (*LoginRequestOkta, bool)

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

func (*LoginRequest) HasOkta

func (o *LoginRequest) HasOkta() bool

HasOkta returns a boolean if a field has been set.

func (LoginRequest) MarshalJSON

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

func (*LoginRequest) SetOkta

func (o *LoginRequest) SetOkta(v LoginRequestOkta)

SetOkta gets a reference to the given LoginRequestOkta and assigns it to the Okta field.

type LoginRequestOkta

type LoginRequestOkta struct {
	Domain string `json:"domain" validate:"required"`
	Code   string `json:"code" validate:"required"`
}

LoginRequestOkta struct for LoginRequestOkta

func NewLoginRequestOkta

func NewLoginRequestOkta(domain string, code string) *LoginRequestOkta

NewLoginRequestOkta instantiates a new LoginRequestOkta 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 NewLoginRequestOktaWithDefaults

func NewLoginRequestOktaWithDefaults() *LoginRequestOkta

NewLoginRequestOktaWithDefaults instantiates a new LoginRequestOkta 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 (*LoginRequestOkta) GetCode

func (o *LoginRequestOkta) GetCode() string

GetCode returns the Code field value

func (*LoginRequestOkta) GetCodeOk

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

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

func (*LoginRequestOkta) GetDomain

func (o *LoginRequestOkta) GetDomain() string

GetDomain returns the Domain field value

func (*LoginRequestOkta) GetDomainOk

func (o *LoginRequestOkta) GetDomainOk() (*string, bool)

GetDomainOk returns a tuple with the Domain field value and a boolean to check if the value has been set.

func (LoginRequestOkta) MarshalJSON

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

func (*LoginRequestOkta) SetCode

func (o *LoginRequestOkta) SetCode(v string)

SetCode sets field value

func (*LoginRequestOkta) SetDomain

func (o *LoginRequestOkta) SetDomain(v string)

SetDomain sets field value

type LoginResponse added in v0.2.3

type LoginResponse struct {
	Token string `json:"token"`
	Name  string `json:"name"`
}

LoginResponse struct for LoginResponse

func NewLoginResponse added in v0.2.3

func NewLoginResponse(token string, name string) *LoginResponse

NewLoginResponse instantiates a new LoginResponse 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 NewLoginResponseWithDefaults added in v0.2.3

func NewLoginResponseWithDefaults() *LoginResponse

NewLoginResponseWithDefaults instantiates a new LoginResponse 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 (*LoginResponse) GetName added in v0.2.3

func (o *LoginResponse) GetName() string

GetName returns the Name field value

func (*LoginResponse) GetNameOk added in v0.2.3

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

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

func (*LoginResponse) GetToken added in v0.2.3

func (o *LoginResponse) GetToken() string

GetToken returns the Token field value

func (*LoginResponse) GetTokenOk added in v0.2.3

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

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

func (LoginResponse) MarshalJSON added in v0.2.3

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

func (*LoginResponse) SetName added in v0.2.3

func (o *LoginResponse) SetName(v string)

SetName sets field value

func (*LoginResponse) SetToken added in v0.2.3

func (o *LoginResponse) SetToken(v string)

SetToken sets field value

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 NullableCred

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

func NewNullableCred

func NewNullableCred(val *Cred) *NullableCred

func (NullableCred) Get

func (v NullableCred) Get() *Cred

func (NullableCred) IsSet

func (v NullableCred) IsSet() bool

func (NullableCred) MarshalJSON

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

func (*NullableCred) Set

func (v *NullableCred) Set(val *Cred)

func (*NullableCred) UnmarshalJSON

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

func (*NullableCred) Unset

func (v *NullableCred) Unset()

type NullableDestination

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

func NewNullableDestination

func NewNullableDestination(val *Destination) *NullableDestination

func (NullableDestination) Get

func (NullableDestination) IsSet

func (v NullableDestination) IsSet() bool

func (NullableDestination) MarshalJSON

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

func (*NullableDestination) Set

func (v *NullableDestination) Set(val *Destination)

func (*NullableDestination) UnmarshalJSON

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

func (*NullableDestination) Unset

func (v *NullableDestination) Unset()

type NullableDestinationCreateRequest

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

func (NullableDestinationCreateRequest) Get

func (NullableDestinationCreateRequest) IsSet

func (NullableDestinationCreateRequest) MarshalJSON

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

func (*NullableDestinationCreateRequest) Set

func (*NullableDestinationCreateRequest) UnmarshalJSON

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

func (*NullableDestinationCreateRequest) Unset

type NullableDestinationKubernetes

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

func (NullableDestinationKubernetes) Get

func (NullableDestinationKubernetes) IsSet

func (NullableDestinationKubernetes) MarshalJSON

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

func (*NullableDestinationKubernetes) Set

func (*NullableDestinationKubernetes) UnmarshalJSON

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

func (*NullableDestinationKubernetes) Unset

func (v *NullableDestinationKubernetes) Unset()

type NullableError

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

func NewNullableError

func NewNullableError(val *Error) *NullableError

func (NullableError) Get

func (v NullableError) Get() *Error

func (NullableError) IsSet

func (v NullableError) IsSet() bool

func (NullableError) MarshalJSON

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

func (*NullableError) Set

func (v *NullableError) Set(val *Error)

func (*NullableError) UnmarshalJSON

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

func (*NullableError) Unset

func (v *NullableError) 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 NullableGroup

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

func NewNullableGroup

func NewNullableGroup(val *Group) *NullableGroup

func (NullableGroup) Get

func (v NullableGroup) Get() *Group

func (NullableGroup) IsSet

func (v NullableGroup) IsSet() bool

func (NullableGroup) MarshalJSON

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

func (*NullableGroup) Set

func (v *NullableGroup) Set(val *Group)

func (*NullableGroup) UnmarshalJSON

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

func (*NullableGroup) Unset

func (v *NullableGroup) 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 NullableLoginRequest

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

func NewNullableLoginRequest

func NewNullableLoginRequest(val *LoginRequest) *NullableLoginRequest

func (NullableLoginRequest) Get

func (NullableLoginRequest) IsSet

func (v NullableLoginRequest) IsSet() bool

func (NullableLoginRequest) MarshalJSON

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

func (*NullableLoginRequest) Set

func (v *NullableLoginRequest) Set(val *LoginRequest)

func (*NullableLoginRequest) UnmarshalJSON

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

func (*NullableLoginRequest) Unset

func (v *NullableLoginRequest) Unset()

type NullableLoginRequestOkta

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

func NewNullableLoginRequestOkta

func NewNullableLoginRequestOkta(val *LoginRequestOkta) *NullableLoginRequestOkta

func (NullableLoginRequestOkta) Get

func (NullableLoginRequestOkta) IsSet

func (v NullableLoginRequestOkta) IsSet() bool

func (NullableLoginRequestOkta) MarshalJSON

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

func (*NullableLoginRequestOkta) Set

func (*NullableLoginRequestOkta) UnmarshalJSON

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

func (*NullableLoginRequestOkta) Unset

func (v *NullableLoginRequestOkta) Unset()

type NullableLoginResponse added in v0.2.3

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

func NewNullableLoginResponse added in v0.2.3

func NewNullableLoginResponse(val *LoginResponse) *NullableLoginResponse

func (NullableLoginResponse) Get added in v0.2.3

func (NullableLoginResponse) IsSet added in v0.2.3

func (v NullableLoginResponse) IsSet() bool

func (NullableLoginResponse) MarshalJSON added in v0.2.3

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

func (*NullableLoginResponse) Set added in v0.2.3

func (v *NullableLoginResponse) Set(val *LoginResponse)

func (*NullableLoginResponse) UnmarshalJSON added in v0.2.3

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

func (*NullableLoginResponse) Unset added in v0.2.3

func (v *NullableLoginResponse) Unset()

type NullableRole

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

func NewNullableRole

func NewNullableRole(val *Role) *NullableRole

func (NullableRole) Get

func (v NullableRole) Get() *Role

func (NullableRole) IsSet

func (v NullableRole) IsSet() bool

func (NullableRole) MarshalJSON

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

func (*NullableRole) Set

func (v *NullableRole) Set(val *Role)

func (*NullableRole) UnmarshalJSON

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

func (*NullableRole) Unset

func (v *NullableRole) Unset()

type NullableRoleKind

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

func NewNullableRoleKind

func NewNullableRoleKind(val *RoleKind) *NullableRoleKind

func (NullableRoleKind) Get

func (v NullableRoleKind) Get() *RoleKind

func (NullableRoleKind) IsSet

func (v NullableRoleKind) IsSet() bool

func (NullableRoleKind) MarshalJSON

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

func (*NullableRoleKind) Set

func (v *NullableRoleKind) Set(val *RoleKind)

func (*NullableRoleKind) UnmarshalJSON

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

func (*NullableRoleKind) Unset

func (v *NullableRoleKind) Unset()

type NullableSource

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

func NewNullableSource

func NewNullableSource(val *Source) *NullableSource

func (NullableSource) Get

func (v NullableSource) Get() *Source

func (NullableSource) IsSet

func (v NullableSource) IsSet() bool

func (NullableSource) MarshalJSON

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

func (*NullableSource) Set

func (v *NullableSource) Set(val *Source)

func (*NullableSource) UnmarshalJSON

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

func (*NullableSource) Unset

func (v *NullableSource) Unset()

type NullableSourceOkta

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

func NewNullableSourceOkta

func NewNullableSourceOkta(val *SourceOkta) *NullableSourceOkta

func (NullableSourceOkta) Get

func (v NullableSourceOkta) Get() *SourceOkta

func (NullableSourceOkta) IsSet

func (v NullableSourceOkta) IsSet() bool

func (NullableSourceOkta) MarshalJSON

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

func (*NullableSourceOkta) Set

func (v *NullableSourceOkta) Set(val *SourceOkta)

func (*NullableSourceOkta) UnmarshalJSON

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

func (*NullableSourceOkta) Unset

func (v *NullableSourceOkta) 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 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 NullableUser

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

func NewNullableUser

func NewNullableUser(val *User) *NullableUser

func (NullableUser) Get

func (v NullableUser) Get() *User

func (NullableUser) IsSet

func (v NullableUser) IsSet() bool

func (NullableUser) MarshalJSON

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

func (*NullableUser) Set

func (v *NullableUser) Set(val *User)

func (*NullableUser) UnmarshalJSON

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

func (*NullableUser) Unset

func (v *NullableUser) Unset()

type NullableVersion

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

func NewNullableVersion

func NewNullableVersion(val *Version) *NullableVersion

func (NullableVersion) Get

func (v NullableVersion) Get() *Version

func (NullableVersion) IsSet

func (v NullableVersion) IsSet() bool

func (NullableVersion) MarshalJSON

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

func (*NullableVersion) Set

func (v *NullableVersion) Set(val *Version)

func (*NullableVersion) UnmarshalJSON

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

func (*NullableVersion) Unset

func (v *NullableVersion) Unset()

type Role

type Role struct {
	Id          string      `json:"id"`
	Name        string      `json:"name"`
	Created     int64       `json:"created"`
	Updated     int64       `json:"updated"`
	Kind        RoleKind    `json:"kind"`
	Namespace   string      `json:"namespace"`
	Users       []User      `json:"users"`
	Destination Destination `json:"destination"`
}

Role struct for Role

func NewRole

func NewRole(id string, name string, created int64, updated int64, kind RoleKind, namespace string, users []User, destination Destination) *Role

NewRole instantiates a new Role 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 NewRoleWithDefaults

func NewRoleWithDefaults() *Role

NewRoleWithDefaults instantiates a new Role 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 (*Role) GetCreated

func (o *Role) GetCreated() int64

GetCreated returns the Created field value

func (*Role) GetCreatedOk

func (o *Role) GetCreatedOk() (*int64, bool)

GetCreatedOk returns a tuple with the Created field value and a boolean to check if the value has been set.

func (*Role) GetDestination

func (o *Role) GetDestination() Destination

GetDestination returns the Destination field value

func (*Role) GetDestinationOk

func (o *Role) GetDestinationOk() (*Destination, bool)

GetDestinationOk returns a tuple with the Destination field value and a boolean to check if the value has been set.

func (*Role) GetId

func (o *Role) GetId() string

GetId returns the Id field value

func (*Role) GetIdOk

func (o *Role) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Role) GetKind

func (o *Role) GetKind() RoleKind

GetKind returns the Kind field value

func (*Role) GetKindOk

func (o *Role) GetKindOk() (*RoleKind, bool)

GetKindOk returns a tuple with the Kind field value and a boolean to check if the value has been set.

func (*Role) GetName

func (o *Role) GetName() string

GetName returns the Name field value

func (*Role) GetNameOk

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

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

func (*Role) GetNamespace added in v0.2.0

func (o *Role) GetNamespace() string

GetNamespace returns the Namespace field value

func (*Role) GetNamespaceOk added in v0.2.0

func (o *Role) GetNamespaceOk() (*string, bool)

GetNamespaceOk returns a tuple with the Namespace field value and a boolean to check if the value has been set.

func (*Role) GetUpdated

func (o *Role) GetUpdated() int64

GetUpdated returns the Updated field value

func (*Role) GetUpdatedOk

func (o *Role) GetUpdatedOk() (*int64, bool)

GetUpdatedOk returns a tuple with the Updated field value and a boolean to check if the value has been set.

func (*Role) GetUsers

func (o *Role) GetUsers() []User

GetUsers returns the Users field value

func (*Role) GetUsersOk

func (o *Role) GetUsersOk() (*[]User, bool)

GetUsersOk returns a tuple with the Users field value and a boolean to check if the value has been set.

func (Role) MarshalJSON

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

func (*Role) SetCreated

func (o *Role) SetCreated(v int64)

SetCreated sets field value

func (*Role) SetDestination

func (o *Role) SetDestination(v Destination)

SetDestination sets field value

func (*Role) SetId

func (o *Role) SetId(v string)

SetId sets field value

func (*Role) SetKind

func (o *Role) SetKind(v RoleKind)

SetKind sets field value

func (*Role) SetName

func (o *Role) SetName(v string)

SetName sets field value

func (*Role) SetNamespace added in v0.2.0

func (o *Role) SetNamespace(v string)

SetNamespace sets field value

func (*Role) SetUpdated

func (o *Role) SetUpdated(v int64)

SetUpdated sets field value

func (*Role) SetUsers

func (o *Role) SetUsers(v []User)

SetUsers sets field value

type RoleKind

type RoleKind string

RoleKind the model 'RoleKind'

const (
	ROLE         RoleKind = "role"
	CLUSTER_ROLE RoleKind = "cluster-role"
)

List of RoleKind

func NewRoleKindFromValue

func NewRoleKindFromValue(v string) (*RoleKind, error)

NewRoleKindFromValue returns a pointer to a valid RoleKind for the value passed as argument, or an error if the value passed is not allowed by the enum

func (RoleKind) IsValid

func (v RoleKind) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (RoleKind) Ptr

func (v RoleKind) Ptr() *RoleKind

Ptr returns reference to RoleKind value

func (*RoleKind) UnmarshalJSON

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

type RolesApiService

type RolesApiService service

RolesApiService RolesApi service

func (*RolesApiService) ListRoles

ListRoles List roles

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

func (*RolesApiService) ListRolesExecute

func (a *RolesApiService) ListRolesExecute(r ApiListRolesRequest) ([]Role, *_nethttp.Response, error)

Execute executes the request

@return []Role

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 Source

type Source struct {
	Id      string      `json:"id"`
	Created int64       `json:"created"`
	Updated int64       `json:"updated"`
	Okta    *SourceOkta `json:"okta,omitempty"`
}

Source struct for Source

func NewSource

func NewSource(id string, created int64, updated int64) *Source

NewSource instantiates a new Source 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 NewSourceWithDefaults

func NewSourceWithDefaults() *Source

NewSourceWithDefaults instantiates a new Source 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 (*Source) GetCreated

func (o *Source) GetCreated() int64

GetCreated returns the Created field value

func (*Source) GetCreatedOk

func (o *Source) GetCreatedOk() (*int64, bool)

GetCreatedOk returns a tuple with the Created field value and a boolean to check if the value has been set.

func (*Source) GetId

func (o *Source) GetId() string

GetId returns the Id field value

func (*Source) GetIdOk

func (o *Source) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Source) GetOkta

func (o *Source) GetOkta() SourceOkta

GetOkta returns the Okta field value if set, zero value otherwise.

func (*Source) GetOktaOk

func (o *Source) GetOktaOk() (*SourceOkta, bool)

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

func (*Source) GetUpdated

func (o *Source) GetUpdated() int64

GetUpdated returns the Updated field value

func (*Source) GetUpdatedOk

func (o *Source) GetUpdatedOk() (*int64, bool)

GetUpdatedOk returns a tuple with the Updated field value and a boolean to check if the value has been set.

func (*Source) HasOkta

func (o *Source) HasOkta() bool

HasOkta returns a boolean if a field has been set.

func (Source) MarshalJSON

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

func (*Source) SetCreated

func (o *Source) SetCreated(v int64)

SetCreated sets field value

func (*Source) SetId

func (o *Source) SetId(v string)

SetId sets field value

func (*Source) SetOkta

func (o *Source) SetOkta(v SourceOkta)

SetOkta gets a reference to the given SourceOkta and assigns it to the Okta field.

func (*Source) SetUpdated

func (o *Source) SetUpdated(v int64)

SetUpdated sets field value

type SourceOkta

type SourceOkta struct {
	Domain   string `json:"domain"`
	ClientId string `json:"clientId"`
}

SourceOkta struct for SourceOkta

func NewSourceOkta

func NewSourceOkta(domain string, clientId string) *SourceOkta

NewSourceOkta instantiates a new SourceOkta 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 NewSourceOktaWithDefaults

func NewSourceOktaWithDefaults() *SourceOkta

NewSourceOktaWithDefaults instantiates a new SourceOkta 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 (*SourceOkta) GetClientId

func (o *SourceOkta) GetClientId() string

GetClientId returns the ClientId field value

func (*SourceOkta) GetClientIdOk

func (o *SourceOkta) GetClientIdOk() (*string, bool)

GetClientIdOk returns a tuple with the ClientId field value and a boolean to check if the value has been set.

func (*SourceOkta) GetDomain

func (o *SourceOkta) GetDomain() string

GetDomain returns the Domain field value

func (*SourceOkta) GetDomainOk

func (o *SourceOkta) GetDomainOk() (*string, bool)

GetDomainOk returns a tuple with the Domain field value and a boolean to check if the value has been set.

func (SourceOkta) MarshalJSON

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

func (*SourceOkta) SetClientId

func (o *SourceOkta) SetClientId(v string)

SetClientId sets field value

func (*SourceOkta) SetDomain

func (o *SourceOkta) SetDomain(v string)

SetDomain sets field value

type SourcesApiService

type SourcesApiService service

SourcesApiService SourcesApi service

func (*SourcesApiService) ListSources

ListSources List sources

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

func (*SourcesApiService) ListSourcesExecute

func (a *SourcesApiService) ListSourcesExecute(r ApiListSourcesRequest) ([]Source, *_nethttp.Response, error)

Execute executes the request

@return []Source

type User

type User struct {
	Id      string `json:"id"`
	Email   string `json:"email"`
	Created int64  `json:"created"`
	Updated int64  `json:"updated"`
}

User struct for User

func NewUser

func NewUser(id string, email string, created int64, updated int64) *User

NewUser instantiates a new User 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 NewUserWithDefaults

func NewUserWithDefaults() *User

NewUserWithDefaults instantiates a new User 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 (*User) GetCreated

func (o *User) GetCreated() int64

GetCreated returns the Created field value

func (*User) GetCreatedOk

func (o *User) GetCreatedOk() (*int64, bool)

GetCreatedOk returns a tuple with the Created field value and a boolean to check if the value has been set.

func (*User) GetEmail

func (o *User) GetEmail() string

GetEmail returns the Email field value

func (*User) GetEmailOk

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

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

func (*User) GetId

func (o *User) GetId() string

GetId returns the Id field value

func (*User) GetIdOk

func (o *User) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*User) GetUpdated

func (o *User) GetUpdated() int64

GetUpdated returns the Updated field value

func (*User) GetUpdatedOk

func (o *User) GetUpdatedOk() (*int64, bool)

GetUpdatedOk returns a tuple with the Updated field value and a boolean to check if the value has been set.

func (User) MarshalJSON

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

func (*User) SetCreated

func (o *User) SetCreated(v int64)

SetCreated sets field value

func (*User) SetEmail

func (o *User) SetEmail(v string)

SetEmail sets field value

func (*User) SetId

func (o *User) SetId(v string)

SetId sets field value

func (*User) SetUpdated

func (o *User) SetUpdated(v int64)

SetUpdated sets field value

type UsersApiService

type UsersApiService service

UsersApiService UsersApi service

func (*UsersApiService) ListUsers

ListUsers List users

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

func (*UsersApiService) ListUsersExecute

func (a *UsersApiService) ListUsersExecute(r ApiListUsersRequest) ([]User, *_nethttp.Response, error)

Execute executes the request

@return []User

type Version

type Version struct {
	Version string `json:"version"`
}

Version struct for Version

func NewVersion

func NewVersion(version string) *Version

NewVersion instantiates a new Version 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 NewVersionWithDefaults

func NewVersionWithDefaults() *Version

NewVersionWithDefaults instantiates a new Version 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 (*Version) GetVersion

func (o *Version) GetVersion() string

GetVersion returns the Version field value

func (*Version) GetVersionOk

func (o *Version) GetVersionOk() (*string, bool)

GetVersionOk returns a tuple with the Version field value and a boolean to check if the value has been set.

func (Version) MarshalJSON

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

func (*Version) SetVersion

func (o *Version) SetVersion(v string)

SetVersion sets field value

type VersionApiService added in v0.2.0

type VersionApiService service

VersionApiService VersionApi service

func (*VersionApiService) Version added in v0.2.0

Version Get version information

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

func (*VersionApiService) VersionExecute added in v0.2.0

Execute executes the request

@return Version

Jump to

Keyboard shortcuts

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