rbac

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

README

Go API client for rbac

Enterprise API for managing roles, permissions, and user mappings

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: 0.1.0
  • Package version: 4.1.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

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 "./rbac"

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 http://localhost

Class Method HTTP request Description
DefaultApi AddIdp Post /saml/idps
DefaultApi AddRoleUser Post /roles/{rolename}/members Add a user to the role
DefaultApi DeleteIdp Delete /saml/idps/{name}
DefaultApi DeleteRoleUser Delete /roles/{rolename}/members Remove a user from the role
DefaultApi GetIdp Get /saml/idps/{name}
DefaultApi GetRole Get /roles/{rolename} Get detailed information about a specific role
DefaultApi GetStatus Get /status Service status
DefaultApi HealthCheck Get /health
DefaultApi ListIdps Get /saml/idps
DefaultApi ListRoleMembers Get /roles/{rolename}/members Returns a list of objects that have members in the role. The list is filtered by 'listRoleMembers' access for the 'account' element of each entry.
DefaultApi ListRoles Get /roles List roles available in the system
DefaultApi ListUserRoles Get /users/{username}/roles List the roles for which the requested user is a member
DefaultApi MyRoles Get /my_roles List the roles for which the authenticated user is a member
DefaultApi SamlLogin Get /saml/login/{idp_name}
DefaultApi SamlSso Post /saml/sso/{idp_name}
DefaultApi UpdateIdp Put /saml/idps/{name}
DefaultApi VersionCheck Get /version

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

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@anchore.com

Documentation

Overview

Code generated by go generate; DO NOT EDIT. This file was generated by robots at 2022-12-05 15:23:39.544967 -0500 EST m=+0.015186179

Index

Constants

View Source
const ServerBaseURL = "/"

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 Document

func Document() string

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 {
	DefaultApi DefaultApi
	// contains filtered or unexported fields
}

APIClient manages communication with the Anchore Enterprise RBAC 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 AccountRole

type AccountRole struct {
	// The account scope that applies to the set of roles
	ForAccount *string `json:"for_account,omitempty"`
	Roles      *Role   `json:"roles,omitempty"`
}

AccountRole An account identifier and roles a user has within that account

func NewAccountRole

func NewAccountRole() *AccountRole

NewAccountRole instantiates a new AccountRole 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 NewAccountRoleWithDefaults

func NewAccountRoleWithDefaults() *AccountRole

NewAccountRoleWithDefaults instantiates a new AccountRole 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 (*AccountRole) GetForAccount

func (o *AccountRole) GetForAccount() string

GetForAccount returns the ForAccount field value if set, zero value otherwise.

func (*AccountRole) GetForAccountOk

func (o *AccountRole) GetForAccountOk() (*string, bool)

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

func (*AccountRole) GetRoles

func (o *AccountRole) GetRoles() Role

GetRoles returns the Roles field value if set, zero value otherwise.

func (*AccountRole) GetRolesOk

func (o *AccountRole) GetRolesOk() (*Role, bool)

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

func (*AccountRole) HasForAccount

func (o *AccountRole) HasForAccount() bool

HasForAccount returns a boolean if a field has been set.

func (*AccountRole) HasRoles

func (o *AccountRole) HasRoles() bool

HasRoles returns a boolean if a field has been set.

func (AccountRole) MarshalJSON

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

func (*AccountRole) SetForAccount

func (o *AccountRole) SetForAccount(v string)

SetForAccount gets a reference to the given string and assigns it to the ForAccount field.

func (*AccountRole) SetRoles

func (o *AccountRole) SetRoles(v Role)

SetRoles gets a reference to the given Role and assigns it to the Roles field.

type ApiAddIdpRequest

type ApiAddIdpRequest struct {
	ApiService DefaultApi
	// contains filtered or unexported fields
}

func (ApiAddIdpRequest) Configuration

func (r ApiAddIdpRequest) Configuration(configuration SamlConfiguration) ApiAddIdpRequest

func (ApiAddIdpRequest) Execute

type ApiAddRoleUserRequest

type ApiAddRoleUserRequest struct {
	ApiService DefaultApi
	// contains filtered or unexported fields
}

func (ApiAddRoleUserRequest) Execute

func (ApiAddRoleUserRequest) Member

type ApiDeleteIdpRequest

type ApiDeleteIdpRequest struct {
	ApiService DefaultApi
	// contains filtered or unexported fields
}

func (ApiDeleteIdpRequest) Execute

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

type ApiDeleteRoleUserRequest

type ApiDeleteRoleUserRequest struct {
	ApiService DefaultApi
	// contains filtered or unexported fields
}

func (ApiDeleteRoleUserRequest) Execute

func (ApiDeleteRoleUserRequest) ForAccount

func (r ApiDeleteRoleUserRequest) ForAccount(forAccount string) ApiDeleteRoleUserRequest

The account that the user has the role to be removed

func (ApiDeleteRoleUserRequest) Username

The username to remove the role for

type ApiErrorResponse

type ApiErrorResponse struct {
	Code      *int32  `json:"code,omitempty"`
	ErrorType *string `json:"error_type,omitempty"`
	Message   *string `json:"message,omitempty"`
	// Details structure for additional information about the error if available. Content and structure will be error specific.
	Detail *interface{} `json:"detail,omitempty"`
}

ApiErrorResponse Generic HTTP API error response

func NewApiErrorResponse

func NewApiErrorResponse() *ApiErrorResponse

NewApiErrorResponse instantiates a new ApiErrorResponse 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 NewApiErrorResponseWithDefaults

func NewApiErrorResponseWithDefaults() *ApiErrorResponse

NewApiErrorResponseWithDefaults instantiates a new ApiErrorResponse 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 (*ApiErrorResponse) GetCode

func (o *ApiErrorResponse) GetCode() int32

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

func (*ApiErrorResponse) GetCodeOk

func (o *ApiErrorResponse) 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 (*ApiErrorResponse) GetDetail

func (o *ApiErrorResponse) GetDetail() interface{}

GetDetail returns the Detail field value if set, zero value otherwise.

func (*ApiErrorResponse) GetDetailOk

func (o *ApiErrorResponse) GetDetailOk() (*interface{}, bool)

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

func (*ApiErrorResponse) GetErrorType

func (o *ApiErrorResponse) GetErrorType() string

GetErrorType returns the ErrorType field value if set, zero value otherwise.

func (*ApiErrorResponse) GetErrorTypeOk

func (o *ApiErrorResponse) GetErrorTypeOk() (*string, bool)

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

func (*ApiErrorResponse) GetMessage

func (o *ApiErrorResponse) GetMessage() string

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

func (*ApiErrorResponse) GetMessageOk

func (o *ApiErrorResponse) 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 (*ApiErrorResponse) HasCode

func (o *ApiErrorResponse) HasCode() bool

HasCode returns a boolean if a field has been set.

func (*ApiErrorResponse) HasDetail

func (o *ApiErrorResponse) HasDetail() bool

HasDetail returns a boolean if a field has been set.

func (*ApiErrorResponse) HasErrorType

func (o *ApiErrorResponse) HasErrorType() bool

HasErrorType returns a boolean if a field has been set.

func (*ApiErrorResponse) HasMessage

func (o *ApiErrorResponse) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (ApiErrorResponse) MarshalJSON

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

func (*ApiErrorResponse) SetCode

func (o *ApiErrorResponse) SetCode(v int32)

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

func (*ApiErrorResponse) SetDetail

func (o *ApiErrorResponse) SetDetail(v interface{})

SetDetail gets a reference to the given interface{} and assigns it to the Detail field.

func (*ApiErrorResponse) SetErrorType

func (o *ApiErrorResponse) SetErrorType(v string)

SetErrorType gets a reference to the given string and assigns it to the ErrorType field.

func (*ApiErrorResponse) SetMessage

func (o *ApiErrorResponse) SetMessage(v string)

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

type ApiGetIdpRequest

type ApiGetIdpRequest struct {
	ApiService DefaultApi
	// contains filtered or unexported fields
}

func (ApiGetIdpRequest) Execute

type ApiGetRoleRequest

type ApiGetRoleRequest struct {
	ApiService DefaultApi
	// contains filtered or unexported fields
}

func (ApiGetRoleRequest) Execute

func (r ApiGetRoleRequest) Execute() (Role, *_nethttp.Response, error)

type ApiGetStatusRequest

type ApiGetStatusRequest struct {
	ApiService DefaultApi
	// contains filtered or unexported fields
}

func (ApiGetStatusRequest) Execute

type ApiHealthCheckRequest

type ApiHealthCheckRequest struct {
	ApiService DefaultApi
	// contains filtered or unexported fields
}

func (ApiHealthCheckRequest) Execute

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

type ApiListIdpsRequest

type ApiListIdpsRequest struct {
	ApiService DefaultApi
	// contains filtered or unexported fields
}

func (ApiListIdpsRequest) Execute

func (r ApiListIdpsRequest) Execute() ([]string, *_nethttp.Response, error)

type ApiListRoleMembersRequest

type ApiListRoleMembersRequest struct {
	ApiService DefaultApi
	// contains filtered or unexported fields
}

func (ApiListRoleMembersRequest) Execute

func (ApiListRoleMembersRequest) ForAccount

Optional filter parameter to limit the set fo returned items to only those with matching account. Will return Access Denied if caller does not have permission to listRoleMembers for that account.

type ApiListRolesRequest

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

func (ApiListRolesRequest) Execute

type ApiListUserRolesRequest

type ApiListUserRolesRequest struct {
	ApiService DefaultApi
	// contains filtered or unexported fields
}

func (ApiListUserRolesRequest) Execute

func (ApiListUserRolesRequest) ForAccount

func (r ApiListUserRolesRequest) ForAccount(forAccount string) ApiListUserRolesRequest

func (ApiListUserRolesRequest) Role

type ApiMyRolesRequest

type ApiMyRolesRequest struct {
	ApiService DefaultApi
	// contains filtered or unexported fields
}

func (ApiMyRolesRequest) Execute

type ApiSamlLoginRequest

type ApiSamlLoginRequest struct {
	ApiService DefaultApi
	// contains filtered or unexported fields
}

func (ApiSamlLoginRequest) Execute

type ApiSamlSsoRequest

type ApiSamlSsoRequest struct {
	ApiService DefaultApi
	// contains filtered or unexported fields
}

func (ApiSamlSsoRequest) Execute

type ApiUpdateIdpRequest

type ApiUpdateIdpRequest struct {
	ApiService DefaultApi
	// contains filtered or unexported fields
}

func (ApiUpdateIdpRequest) Configuration

func (r ApiUpdateIdpRequest) Configuration(configuration SamlConfiguration) ApiUpdateIdpRequest

func (ApiUpdateIdpRequest) Execute

type ApiVersionCheckRequest

type ApiVersionCheckRequest struct {
	ApiService DefaultApi
	// contains filtered or unexported fields
}

func (ApiVersionCheckRequest) 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
	Logger           logger.Logger
}

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 DefaultApi

type DefaultApi interface {

	/*
		AddIdp Method for AddIdp

		Add a new Identity Provider to the system, with a specific name

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

	// AddIdpExecute executes the request
	//  @return SamlConfiguration
	AddIdpExecute(r ApiAddIdpRequest) (SamlConfiguration, *_nethttp.Response, error)

	/*
		AddRoleUser Add a user to the role

		 @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		 @param rolename
		 @return ApiAddRoleUserRequest
	*/
	AddRoleUser(ctx _context.Context, rolename string) ApiAddRoleUserRequest

	// AddRoleUserExecute executes the request
	//  @return RoleMember
	AddRoleUserExecute(r ApiAddRoleUserRequest) (RoleMember, *_nethttp.Response, error)

	/*
		DeleteIdp Method for DeleteIdp

		Delete an idp configuration. Users will not longer be able to login from this idp. In addition, any users that have been configured explicitly or JIT Provisioned on this IDP will be deleted.

		 @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		 @param name
		 @return ApiDeleteIdpRequest
	*/
	DeleteIdp(ctx _context.Context, name string) ApiDeleteIdpRequest

	// DeleteIdpExecute executes the request
	DeleteIdpExecute(r ApiDeleteIdpRequest) (*_nethttp.Response, error)

	/*
		DeleteRoleUser Remove a user from the role

		 @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		 @param rolename
		 @return ApiDeleteRoleUserRequest
	*/
	DeleteRoleUser(ctx _context.Context, rolename string) ApiDeleteRoleUserRequest

	// DeleteRoleUserExecute executes the request
	DeleteRoleUserExecute(r ApiDeleteRoleUserRequest) (*_nethttp.Response, error)

	/*
		GetIdp Method for GetIdp

		Return the configuration for a named Identity Provider

		 @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		 @param name
		 @return ApiGetIdpRequest
	*/
	GetIdp(ctx _context.Context, name string) ApiGetIdpRequest

	// GetIdpExecute executes the request
	//  @return SamlConfiguration
	GetIdpExecute(r ApiGetIdpRequest) (SamlConfiguration, *_nethttp.Response, error)

	/*
		GetRole Get detailed information about a specific role

		 @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		 @param rolename
		 @return ApiGetRoleRequest
	*/
	GetRole(ctx _context.Context, rolename string) ApiGetRoleRequest

	// GetRoleExecute executes the request
	//  @return Role
	GetRoleExecute(r ApiGetRoleRequest) (Role, *_nethttp.Response, error)

	/*
		GetStatus Service status

		Get the API service status

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

	// GetStatusExecute executes the request
	//  @return StatusResponse
	GetStatusExecute(r ApiGetStatusRequest) (StatusResponse, *_nethttp.Response, error)

	/*
		HealthCheck Method for HealthCheck

		Health check, returns 200 and no body if service is running

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

	// HealthCheckExecute executes the request
	HealthCheckExecute(r ApiHealthCheckRequest) (*_nethttp.Response, error)

	/*
		ListIdps Method for ListIdps

		List the names of configured Identity Providers for this anchore installation

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

	// ListIdpsExecute executes the request
	//  @return []string
	ListIdpsExecute(r ApiListIdpsRequest) ([]string, *_nethttp.Response, error)

	/*
		ListRoleMembers Returns a list of objects that have members in the role. The list is filtered by 'listRoleMembers' access for the 'account' element of each entry.

		 @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		 @param rolename
		 @return ApiListRoleMembersRequest
	*/
	ListRoleMembers(ctx _context.Context, rolename string) ApiListRoleMembersRequest

	// ListRoleMembersExecute executes the request
	//  @return []RoleMember
	ListRoleMembersExecute(r ApiListRoleMembersRequest) ([]RoleMember, *_nethttp.Response, error)

	/*
		ListRoles List roles available in the system

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

	// ListRolesExecute executes the request
	//  @return []RoleSummary
	ListRolesExecute(r ApiListRolesRequest) ([]RoleSummary, *_nethttp.Response, error)

	/*
		ListUserRoles List the roles for which the requested user is a member

		 @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		 @param username
		 @return ApiListUserRolesRequest
	*/
	ListUserRoles(ctx _context.Context, username string) ApiListUserRolesRequest

	// ListUserRolesExecute executes the request
	//  @return []RoleMembership
	ListUserRolesExecute(r ApiListUserRolesRequest) ([]RoleMembership, *_nethttp.Response, error)

	/*
		MyRoles List the roles for which the authenticated user is a member

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

	// MyRolesExecute executes the request
	//  @return []AccountRole
	MyRolesExecute(r ApiMyRolesRequest) ([]AccountRole, *_nethttp.Response, error)

	/*
		SamlLogin Method for SamlLogin

		Initiate an SP-initiated login sequence for the Idp. The SP will respond with the SAML AuthN Request the client must send to the Idp URL

		 @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		 @param idpName
		 @return ApiSamlLoginRequest
	*/
	SamlLogin(ctx _context.Context, idpName string) ApiSamlLoginRequest

	// SamlLoginExecute executes the request
	//  @return TokenResponse
	SamlLoginExecute(r ApiSamlLoginRequest) (TokenResponse, *_nethttp.Response, error)

	/*
		SamlSso Method for SamlSso

		Perform a login using a SAML assertion, no HTTP auth is required as the SAML assertion is considered the authenticating token

		 @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		 @param idpName
		 @return ApiSamlSsoRequest
	*/
	SamlSso(ctx _context.Context, idpName string) ApiSamlSsoRequest

	// SamlSsoExecute executes the request
	//  @return TokenResponse
	SamlSsoExecute(r ApiSamlSsoRequest) (TokenResponse, *_nethttp.Response, error)

	/*
		UpdateIdp Method for UpdateIdp

		Update an existing Identity Provider configuration

		 @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		 @param name
		 @return ApiUpdateIdpRequest
	*/
	UpdateIdp(ctx _context.Context, name string) ApiUpdateIdpRequest

	// UpdateIdpExecute executes the request
	//  @return SamlConfiguration
	UpdateIdpExecute(r ApiUpdateIdpRequest) (SamlConfiguration, *_nethttp.Response, error)

	/*
		VersionCheck Method for VersionCheck

		Returns the version object for the service, including db schema version info

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

	// VersionCheckExecute executes the request
	//  @return ServiceVersion
	VersionCheckExecute(r ApiVersionCheckRequest) (ServiceVersion, *_nethttp.Response, error)
}

type DefaultApiService

type DefaultApiService service

DefaultApiService DefaultApi service

func (*DefaultApiService) AddIdp

AddIdp Method for AddIdp

Add a new Identity Provider to the system, with a specific name

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

func (*DefaultApiService) AddIdpExecute

Execute executes the request

@return SamlConfiguration

func (*DefaultApiService) AddRoleUser

func (a *DefaultApiService) AddRoleUser(ctx _context.Context, rolename string) ApiAddRoleUserRequest

AddRoleUser Add a user to the role

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

func (*DefaultApiService) AddRoleUserExecute

Execute executes the request

@return RoleMember

func (*DefaultApiService) DeleteIdp

DeleteIdp Method for DeleteIdp

Delete an idp configuration. Users will not longer be able to login from this idp. In addition, any users that have been configured explicitly or JIT Provisioned on this IDP will be deleted.

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

func (*DefaultApiService) DeleteIdpExecute

func (a *DefaultApiService) DeleteIdpExecute(r ApiDeleteIdpRequest) (*_nethttp.Response, error)

Execute executes the request

func (*DefaultApiService) DeleteRoleUser

func (a *DefaultApiService) DeleteRoleUser(ctx _context.Context, rolename string) ApiDeleteRoleUserRequest

DeleteRoleUser Remove a user from the role

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

func (*DefaultApiService) DeleteRoleUserExecute

func (a *DefaultApiService) DeleteRoleUserExecute(r ApiDeleteRoleUserRequest) (*_nethttp.Response, error)

Execute executes the request

func (*DefaultApiService) GetIdp

GetIdp Method for GetIdp

Return the configuration for a named Identity Provider

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

func (*DefaultApiService) GetIdpExecute

Execute executes the request

@return SamlConfiguration

func (*DefaultApiService) GetRole

func (a *DefaultApiService) GetRole(ctx _context.Context, rolename string) ApiGetRoleRequest

GetRole Get detailed information about a specific role

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

func (*DefaultApiService) GetRoleExecute

func (a *DefaultApiService) GetRoleExecute(r ApiGetRoleRequest) (Role, *_nethttp.Response, error)

Execute executes the request

@return Role

func (*DefaultApiService) GetStatus

GetStatus Service status

Get the API service status

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

func (*DefaultApiService) GetStatusExecute

Execute executes the request

@return StatusResponse

func (*DefaultApiService) HealthCheck

HealthCheck Method for HealthCheck

Health check, returns 200 and no body if service is running

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

func (*DefaultApiService) HealthCheckExecute

func (a *DefaultApiService) HealthCheckExecute(r ApiHealthCheckRequest) (*_nethttp.Response, error)

Execute executes the request

func (*DefaultApiService) ListIdps

ListIdps Method for ListIdps

List the names of configured Identity Providers for this anchore installation

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

func (*DefaultApiService) ListIdpsExecute

func (a *DefaultApiService) ListIdpsExecute(r ApiListIdpsRequest) ([]string, *_nethttp.Response, error)

Execute executes the request

@return []string

func (*DefaultApiService) ListRoleMembers

func (a *DefaultApiService) ListRoleMembers(ctx _context.Context, rolename string) ApiListRoleMembersRequest

ListRoleMembers Returns a list of objects that have members in the role. The list is filtered by 'listRoleMembers' access for the 'account' element of each entry.

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

func (*DefaultApiService) ListRoleMembersExecute

func (a *DefaultApiService) ListRoleMembersExecute(r ApiListRoleMembersRequest) ([]RoleMember, *_nethttp.Response, error)

Execute executes the request

@return []RoleMember

func (*DefaultApiService) ListRoles

ListRoles List roles available in the system

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

func (*DefaultApiService) ListRolesExecute

Execute executes the request

@return []RoleSummary

func (*DefaultApiService) ListUserRoles

func (a *DefaultApiService) ListUserRoles(ctx _context.Context, username string) ApiListUserRolesRequest

ListUserRoles List the roles for which the requested user is a member

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

func (*DefaultApiService) ListUserRolesExecute

Execute executes the request

@return []RoleMembership

func (*DefaultApiService) MyRoles

MyRoles List the roles for which the authenticated user is a member

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

func (*DefaultApiService) MyRolesExecute

Execute executes the request

@return []AccountRole

func (*DefaultApiService) SamlLogin

func (a *DefaultApiService) SamlLogin(ctx _context.Context, idpName string) ApiSamlLoginRequest

SamlLogin Method for SamlLogin

Initiate an SP-initiated login sequence for the Idp. The SP will respond with the SAML AuthN Request the client must send to the Idp URL

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

func (*DefaultApiService) SamlLoginExecute

Execute executes the request

@return TokenResponse

func (*DefaultApiService) SamlSso

func (a *DefaultApiService) SamlSso(ctx _context.Context, idpName string) ApiSamlSsoRequest

SamlSso Method for SamlSso

Perform a login using a SAML assertion, no HTTP auth is required as the SAML assertion is considered the authenticating token

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

func (*DefaultApiService) SamlSsoExecute

Execute executes the request

@return TokenResponse

func (*DefaultApiService) UpdateIdp

UpdateIdp Method for UpdateIdp

Update an existing Identity Provider configuration

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

func (*DefaultApiService) UpdateIdpExecute

Execute executes the request

@return SamlConfiguration

func (*DefaultApiService) VersionCheck

VersionCheck Method for VersionCheck

Returns the version object for the service, including db schema version info

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

func (*DefaultApiService) VersionCheckExecute

Execute executes the request

@return ServiceVersion

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 NullableAccountRole

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

func NewNullableAccountRole

func NewNullableAccountRole(val *AccountRole) *NullableAccountRole

func (NullableAccountRole) Get

func (NullableAccountRole) IsSet

func (v NullableAccountRole) IsSet() bool

func (NullableAccountRole) MarshalJSON

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

func (*NullableAccountRole) Set

func (v *NullableAccountRole) Set(val *AccountRole)

func (*NullableAccountRole) UnmarshalJSON

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

func (*NullableAccountRole) Unset

func (v *NullableAccountRole) Unset()

type NullableApiErrorResponse

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

func NewNullableApiErrorResponse

func NewNullableApiErrorResponse(val *ApiErrorResponse) *NullableApiErrorResponse

func (NullableApiErrorResponse) Get

func (NullableApiErrorResponse) IsSet

func (v NullableApiErrorResponse) IsSet() bool

func (NullableApiErrorResponse) MarshalJSON

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

func (*NullableApiErrorResponse) Set

func (*NullableApiErrorResponse) UnmarshalJSON

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

func (*NullableApiErrorResponse) Unset

func (v *NullableApiErrorResponse) 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 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 NullablePermission

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

func NewNullablePermission

func NewNullablePermission(val *Permission) *NullablePermission

func (NullablePermission) Get

func (v NullablePermission) Get() *Permission

func (NullablePermission) IsSet

func (v NullablePermission) IsSet() bool

func (NullablePermission) MarshalJSON

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

func (*NullablePermission) Set

func (v *NullablePermission) Set(val *Permission)

func (*NullablePermission) UnmarshalJSON

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

func (*NullablePermission) Unset

func (v *NullablePermission) 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 NullableRoleMember

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

func NewNullableRoleMember

func NewNullableRoleMember(val *RoleMember) *NullableRoleMember

func (NullableRoleMember) Get

func (v NullableRoleMember) Get() *RoleMember

func (NullableRoleMember) IsSet

func (v NullableRoleMember) IsSet() bool

func (NullableRoleMember) MarshalJSON

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

func (*NullableRoleMember) Set

func (v *NullableRoleMember) Set(val *RoleMember)

func (*NullableRoleMember) UnmarshalJSON

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

func (*NullableRoleMember) Unset

func (v *NullableRoleMember) Unset()

type NullableRoleMembership

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

func NewNullableRoleMembership

func NewNullableRoleMembership(val *RoleMembership) *NullableRoleMembership

func (NullableRoleMembership) Get

func (NullableRoleMembership) IsSet

func (v NullableRoleMembership) IsSet() bool

func (NullableRoleMembership) MarshalJSON

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

func (*NullableRoleMembership) Set

func (*NullableRoleMembership) UnmarshalJSON

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

func (*NullableRoleMembership) Unset

func (v *NullableRoleMembership) Unset()

type NullableRoleSummary

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

func NewNullableRoleSummary

func NewNullableRoleSummary(val *RoleSummary) *NullableRoleSummary

func (NullableRoleSummary) Get

func (NullableRoleSummary) IsSet

func (v NullableRoleSummary) IsSet() bool

func (NullableRoleSummary) MarshalJSON

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

func (*NullableRoleSummary) Set

func (v *NullableRoleSummary) Set(val *RoleSummary)

func (*NullableRoleSummary) UnmarshalJSON

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

func (*NullableRoleSummary) Unset

func (v *NullableRoleSummary) Unset()

type NullableSamlConfiguration

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

func NewNullableSamlConfiguration

func NewNullableSamlConfiguration(val *SamlConfiguration) *NullableSamlConfiguration

func (NullableSamlConfiguration) Get

func (NullableSamlConfiguration) IsSet

func (v NullableSamlConfiguration) IsSet() bool

func (NullableSamlConfiguration) MarshalJSON

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

func (*NullableSamlConfiguration) Set

func (*NullableSamlConfiguration) UnmarshalJSON

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

func (*NullableSamlConfiguration) Unset

func (v *NullableSamlConfiguration) Unset()

type NullableServiceVersion

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

func NewNullableServiceVersion

func NewNullableServiceVersion(val *ServiceVersion) *NullableServiceVersion

func (NullableServiceVersion) Get

func (NullableServiceVersion) IsSet

func (v NullableServiceVersion) IsSet() bool

func (NullableServiceVersion) MarshalJSON

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

func (*NullableServiceVersion) Set

func (*NullableServiceVersion) UnmarshalJSON

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

func (*NullableServiceVersion) Unset

func (v *NullableServiceVersion) Unset()

type NullableServiceVersionApi

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

func NewNullableServiceVersionApi

func NewNullableServiceVersionApi(val *ServiceVersionApi) *NullableServiceVersionApi

func (NullableServiceVersionApi) Get

func (NullableServiceVersionApi) IsSet

func (v NullableServiceVersionApi) IsSet() bool

func (NullableServiceVersionApi) MarshalJSON

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

func (*NullableServiceVersionApi) Set

func (*NullableServiceVersionApi) UnmarshalJSON

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

func (*NullableServiceVersionApi) Unset

func (v *NullableServiceVersionApi) Unset()

type NullableServiceVersionDb

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

func NewNullableServiceVersionDb

func NewNullableServiceVersionDb(val *ServiceVersionDb) *NullableServiceVersionDb

func (NullableServiceVersionDb) Get

func (NullableServiceVersionDb) IsSet

func (v NullableServiceVersionDb) IsSet() bool

func (NullableServiceVersionDb) MarshalJSON

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

func (*NullableServiceVersionDb) Set

func (*NullableServiceVersionDb) UnmarshalJSON

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

func (*NullableServiceVersionDb) Unset

func (v *NullableServiceVersionDb) Unset()

type NullableServiceVersionEngine

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

func NewNullableServiceVersionEngine

func NewNullableServiceVersionEngine(val *ServiceVersionEngine) *NullableServiceVersionEngine

func (NullableServiceVersionEngine) Get

func (NullableServiceVersionEngine) IsSet

func (NullableServiceVersionEngine) MarshalJSON

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

func (*NullableServiceVersionEngine) Set

func (*NullableServiceVersionEngine) UnmarshalJSON

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

func (*NullableServiceVersionEngine) Unset

func (v *NullableServiceVersionEngine) Unset()

type NullableServiceVersionService

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

func (NullableServiceVersionService) Get

func (NullableServiceVersionService) IsSet

func (NullableServiceVersionService) MarshalJSON

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

func (*NullableServiceVersionService) Set

func (*NullableServiceVersionService) UnmarshalJSON

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

func (*NullableServiceVersionService) Unset

func (v *NullableServiceVersionService) Unset()

type NullableStatusResponse

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

func NewNullableStatusResponse

func NewNullableStatusResponse(val *StatusResponse) *NullableStatusResponse

func (NullableStatusResponse) Get

func (NullableStatusResponse) IsSet

func (v NullableStatusResponse) IsSet() bool

func (NullableStatusResponse) MarshalJSON

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

func (*NullableStatusResponse) Set

func (*NullableStatusResponse) UnmarshalJSON

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

func (*NullableStatusResponse) Unset

func (v *NullableStatusResponse) 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 NullableTokenResponse

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

func NewNullableTokenResponse

func NewNullableTokenResponse(val *TokenResponse) *NullableTokenResponse

func (NullableTokenResponse) Get

func (NullableTokenResponse) IsSet

func (v NullableTokenResponse) IsSet() bool

func (NullableTokenResponse) MarshalJSON

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

func (*NullableTokenResponse) Set

func (v *NullableTokenResponse) Set(val *TokenResponse)

func (*NullableTokenResponse) UnmarshalJSON

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

func (*NullableTokenResponse) Unset

func (v *NullableTokenResponse) Unset()

type Permission

type Permission struct {
	// The allowed action. e.g. getImage
	Action *string `json:"action,omitempty"`
	// The target to which the action may be applied. Either a '*' for all or a specific target id
	Target *string `json:"target,omitempty"`
}

Permission A grant of specific action against a specific scope and target

func NewPermission

func NewPermission() *Permission

NewPermission instantiates a new Permission 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 NewPermissionWithDefaults

func NewPermissionWithDefaults() *Permission

NewPermissionWithDefaults instantiates a new Permission 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 (*Permission) GetAction

func (o *Permission) GetAction() string

GetAction returns the Action field value if set, zero value otherwise.

func (*Permission) GetActionOk

func (o *Permission) GetActionOk() (*string, bool)

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

func (*Permission) GetTarget

func (o *Permission) GetTarget() string

GetTarget returns the Target field value if set, zero value otherwise.

func (*Permission) GetTargetOk

func (o *Permission) GetTargetOk() (*string, bool)

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

func (*Permission) HasAction

func (o *Permission) HasAction() bool

HasAction returns a boolean if a field has been set.

func (*Permission) HasTarget

func (o *Permission) HasTarget() bool

HasTarget returns a boolean if a field has been set.

func (Permission) MarshalJSON

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

func (*Permission) SetAction

func (o *Permission) SetAction(v string)

SetAction gets a reference to the given string and assigns it to the Action field.

func (*Permission) SetTarget

func (o *Permission) SetTarget(v string)

SetTarget gets a reference to the given string and assigns it to the Target field.

type Role

type Role struct {
	// The name of the role
	Name string `json:"name"`
	// A role description for humans
	Description *string       `json:"description,omitempty"`
	Permissions *[]Permission `json:"permissions,omitempty"`
	// Are the permissions of this role modifiable by users (including admin users)
	Immutable *bool `json:"immutable,omitempty"`
	// The timestamp when the role was created
	CreatedAt *time.Time `json:"created_at,omitempty"`
	// The timestamp of the last update to the role metadata itself
	LastUpdated *time.Time `json:"last_updated,omitempty"`
}

Role Role definition

func NewRole

func NewRole(name string) *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) GetCreatedAt

func (o *Role) GetCreatedAt() time.Time

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

func (*Role) GetCreatedAtOk

func (o *Role) GetCreatedAtOk() (*time.Time, 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 (*Role) GetDescription

func (o *Role) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*Role) GetDescriptionOk

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

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

func (*Role) GetImmutable

func (o *Role) GetImmutable() bool

GetImmutable returns the Immutable field value if set, zero value otherwise.

func (*Role) GetImmutableOk

func (o *Role) GetImmutableOk() (*bool, bool)

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

func (*Role) GetLastUpdated

func (o *Role) GetLastUpdated() time.Time

GetLastUpdated returns the LastUpdated field value if set, zero value otherwise.

func (*Role) GetLastUpdatedOk

func (o *Role) GetLastUpdatedOk() (*time.Time, bool)

GetLastUpdatedOk returns a tuple with the LastUpdated field value if set, nil otherwise 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) GetPermissions

func (o *Role) GetPermissions() []Permission

GetPermissions returns the Permissions field value if set, zero value otherwise.

func (*Role) GetPermissionsOk

func (o *Role) GetPermissionsOk() (*[]Permission, bool)

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

func (*Role) HasCreatedAt

func (o *Role) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*Role) HasDescription

func (o *Role) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*Role) HasImmutable

func (o *Role) HasImmutable() bool

HasImmutable returns a boolean if a field has been set.

func (*Role) HasLastUpdated

func (o *Role) HasLastUpdated() bool

HasLastUpdated returns a boolean if a field has been set.

func (*Role) HasPermissions

func (o *Role) HasPermissions() bool

HasPermissions returns a boolean if a field has been set.

func (Role) MarshalJSON

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

func (*Role) SetCreatedAt

func (o *Role) SetCreatedAt(v time.Time)

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

func (*Role) SetDescription

func (o *Role) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*Role) SetImmutable

func (o *Role) SetImmutable(v bool)

SetImmutable gets a reference to the given bool and assigns it to the Immutable field.

func (*Role) SetLastUpdated

func (o *Role) SetLastUpdated(v time.Time)

SetLastUpdated gets a reference to the given time.Time and assigns it to the LastUpdated field.

func (*Role) SetName

func (o *Role) SetName(v string)

SetName sets field value

func (*Role) SetPermissions

func (o *Role) SetPermissions(v []Permission)

SetPermissions gets a reference to the given []Permission and assigns it to the Permissions field.

type RoleMember

type RoleMember struct {
	Username   string     `json:"username"`
	ForAccount string     `json:"for_account"`
	CreatedAt  *time.Time `json:"created_at,omitempty"`
}

RoleMember A mapping between a username and a role with an account context

func NewRoleMember

func NewRoleMember(username string, forAccount string) *RoleMember

NewRoleMember instantiates a new RoleMember 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 NewRoleMemberWithDefaults

func NewRoleMemberWithDefaults() *RoleMember

NewRoleMemberWithDefaults instantiates a new RoleMember 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 (*RoleMember) GetCreatedAt

func (o *RoleMember) GetCreatedAt() time.Time

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

func (*RoleMember) GetCreatedAtOk

func (o *RoleMember) GetCreatedAtOk() (*time.Time, 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 (*RoleMember) GetForAccount

func (o *RoleMember) GetForAccount() string

GetForAccount returns the ForAccount field value

func (*RoleMember) GetForAccountOk

func (o *RoleMember) GetForAccountOk() (*string, bool)

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

func (*RoleMember) GetUsername

func (o *RoleMember) GetUsername() string

GetUsername returns the Username field value

func (*RoleMember) GetUsernameOk

func (o *RoleMember) GetUsernameOk() (*string, bool)

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

func (*RoleMember) HasCreatedAt

func (o *RoleMember) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (RoleMember) MarshalJSON

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

func (*RoleMember) SetCreatedAt

func (o *RoleMember) SetCreatedAt(v time.Time)

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

func (*RoleMember) SetForAccount

func (o *RoleMember) SetForAccount(v string)

SetForAccount sets field value

func (*RoleMember) SetUsername

func (o *RoleMember) SetUsername(v string)

SetUsername sets field value

type RoleMembership

type RoleMembership struct {
	// The name of the role the user has permissions for
	Role       *string    `json:"role,omitempty"`
	ForAccount *[]string  `json:"for_account,omitempty"`
	CreatedAt  *time.Time `json:"created_at,omitempty"`
}

RoleMembership Membership for a role in an account

func NewRoleMembership

func NewRoleMembership() *RoleMembership

NewRoleMembership instantiates a new RoleMembership 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 NewRoleMembershipWithDefaults

func NewRoleMembershipWithDefaults() *RoleMembership

NewRoleMembershipWithDefaults instantiates a new RoleMembership 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 (*RoleMembership) GetCreatedAt

func (o *RoleMembership) GetCreatedAt() time.Time

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

func (*RoleMembership) GetCreatedAtOk

func (o *RoleMembership) GetCreatedAtOk() (*time.Time, 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 (*RoleMembership) GetForAccount

func (o *RoleMembership) GetForAccount() []string

GetForAccount returns the ForAccount field value if set, zero value otherwise.

func (*RoleMembership) GetForAccountOk

func (o *RoleMembership) GetForAccountOk() (*[]string, bool)

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

func (*RoleMembership) GetRole

func (o *RoleMembership) GetRole() string

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

func (*RoleMembership) GetRoleOk

func (o *RoleMembership) 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 (*RoleMembership) HasCreatedAt

func (o *RoleMembership) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*RoleMembership) HasForAccount

func (o *RoleMembership) HasForAccount() bool

HasForAccount returns a boolean if a field has been set.

func (*RoleMembership) HasRole

func (o *RoleMembership) HasRole() bool

HasRole returns a boolean if a field has been set.

func (RoleMembership) MarshalJSON

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

func (*RoleMembership) SetCreatedAt

func (o *RoleMembership) SetCreatedAt(v time.Time)

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

func (*RoleMembership) SetForAccount

func (o *RoleMembership) SetForAccount(v []string)

SetForAccount gets a reference to the given []string and assigns it to the ForAccount field.

func (*RoleMembership) SetRole

func (o *RoleMembership) SetRole(v string)

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

type RoleSummary

type RoleSummary struct {
	Name        *string    `json:"name,omitempty"`
	Description *string    `json:"description,omitempty"`
	CreatedAt   *time.Time `json:"created_at,omitempty"`
}

RoleSummary struct for RoleSummary

func NewRoleSummary

func NewRoleSummary() *RoleSummary

NewRoleSummary instantiates a new RoleSummary 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 NewRoleSummaryWithDefaults

func NewRoleSummaryWithDefaults() *RoleSummary

NewRoleSummaryWithDefaults instantiates a new RoleSummary 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 (*RoleSummary) GetCreatedAt

func (o *RoleSummary) GetCreatedAt() time.Time

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

func (*RoleSummary) GetCreatedAtOk

func (o *RoleSummary) GetCreatedAtOk() (*time.Time, 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 (*RoleSummary) GetDescription

func (o *RoleSummary) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*RoleSummary) GetDescriptionOk

func (o *RoleSummary) GetDescriptionOk() (*string, bool)

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

func (*RoleSummary) GetName

func (o *RoleSummary) GetName() string

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

func (*RoleSummary) GetNameOk

func (o *RoleSummary) 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 (*RoleSummary) HasCreatedAt

func (o *RoleSummary) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*RoleSummary) HasDescription

func (o *RoleSummary) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*RoleSummary) HasName

func (o *RoleSummary) HasName() bool

HasName returns a boolean if a field has been set.

func (RoleSummary) MarshalJSON

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

func (*RoleSummary) SetCreatedAt

func (o *RoleSummary) SetCreatedAt(v time.Time)

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

func (*RoleSummary) SetDescription

func (o *RoleSummary) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*RoleSummary) SetName

func (o *RoleSummary) SetName(v string)

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

type SamlConfiguration

type SamlConfiguration struct {
	// The name to use for referencing this IDP configuration. This will configured as part of the url string the Idp must have the client POST the saml assertion to.
	Name string `json:"name"`
	// If this IDP configuration should be enabled for user logins
	Enabled bool `json:"enabled"`
	// The entity ID for this SP. Can be the same for all IDP configurations in this installation or unique to each. This is typically a URL, but you can use any value as long as you also configure the IDP to expect this value.
	SpEntityId string `json:"sp_entity_id"`
	// The URL the IDP can use to access the Assertion Consumer Service to provide the token for sso. This is the way to reach the rbac manager services /v1/saml/sso/{IDP_name} route externally
	AcsUrl string `json:"acs_url"`
	// The port number to use for https if not 443. If omitted or -1, 443 is assumed and used as a default
	AcsHttpsPort *int32 `json:"acs_https_port,omitempty"`
	// The url where the SP (anchore) can retrieve the metadata about the Identity Provider. Only one of this or metadata_xml should be set. This is typically provided by the IDP.
	IdpMetadataUrl *string `json:"idp_metadata_url,omitempty"`
	// The direct metadata xml payload, if a url is not available. Only one of this or metadata_url should be set.
	IdpMetadataXml *string `json:"idp_metadata_xml,omitempty"`
	// The SAML attribute to use from the response assertions to determine the anchore username. If unset, the subject is used.
	IdpUsernameAttribute *string `json:"idp_username_attribute,omitempty"`
	// The SAML attribute to use from the response assertions to determine the anchore account to use. If unset, the default is used.
	IdpAccountAttribute *string `json:"idp_account_attribute,omitempty"`
	// The SAML attribute to use from the response assertions to determine the anchore role(s) to assign a new user in the specified account. If unset, the default is used.
	IdpRoleAttribute *string `json:"idp_role_attribute,omitempty"`
	// The anchore account to assign all users to from this IDP if no account attribute is mapped or present.
	DefaultAccount *string `json:"default_account,omitempty"`
	// The default role to apply to new users from this IDP if no attribute is mapped or found in the SAML assertions.
	DefaultRole *string `json:"default_role,omitempty"`
	// Require assertions in to be signed from the IDP
	RequireSignedAssertions *bool `json:"require_signed_assertions,omitempty"`
	// Require the authn response to be signed by the IDP
	RequireSignedResponse *bool      `json:"require_signed_response,omitempty"`
	CreatedAt             *time.Time `json:"created_at,omitempty"`
	LastUpdated           *time.Time `json:"last_updated,omitempty"`
	// Indicates if Anchore will require an authenticating SSO user to already exist.  This field is ignored on POST/PUT Operations.
	RequireExistingUsers *bool `json:"require_existing_users,omitempty"`
}

SamlConfiguration A named configuration for interaction with an Identity Provider that supports SAML 2.0

func NewSamlConfiguration

func NewSamlConfiguration(name string, enabled bool, spEntityId string, acsUrl string) *SamlConfiguration

NewSamlConfiguration instantiates a new SamlConfiguration 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 NewSamlConfigurationWithDefaults

func NewSamlConfigurationWithDefaults() *SamlConfiguration

NewSamlConfigurationWithDefaults instantiates a new SamlConfiguration 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 (*SamlConfiguration) GetAcsHttpsPort

func (o *SamlConfiguration) GetAcsHttpsPort() int32

GetAcsHttpsPort returns the AcsHttpsPort field value if set, zero value otherwise.

func (*SamlConfiguration) GetAcsHttpsPortOk

func (o *SamlConfiguration) GetAcsHttpsPortOk() (*int32, bool)

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

func (*SamlConfiguration) GetAcsUrl

func (o *SamlConfiguration) GetAcsUrl() string

GetAcsUrl returns the AcsUrl field value

func (*SamlConfiguration) GetAcsUrlOk

func (o *SamlConfiguration) GetAcsUrlOk() (*string, bool)

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

func (*SamlConfiguration) GetCreatedAt

func (o *SamlConfiguration) GetCreatedAt() time.Time

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

func (*SamlConfiguration) GetCreatedAtOk

func (o *SamlConfiguration) GetCreatedAtOk() (*time.Time, 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 (*SamlConfiguration) GetDefaultAccount

func (o *SamlConfiguration) GetDefaultAccount() string

GetDefaultAccount returns the DefaultAccount field value if set, zero value otherwise.

func (*SamlConfiguration) GetDefaultAccountOk

func (o *SamlConfiguration) GetDefaultAccountOk() (*string, bool)

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

func (*SamlConfiguration) GetDefaultRole

func (o *SamlConfiguration) GetDefaultRole() string

GetDefaultRole returns the DefaultRole field value if set, zero value otherwise.

func (*SamlConfiguration) GetDefaultRoleOk

func (o *SamlConfiguration) GetDefaultRoleOk() (*string, bool)

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

func (*SamlConfiguration) GetEnabled

func (o *SamlConfiguration) GetEnabled() bool

GetEnabled returns the Enabled field value

func (*SamlConfiguration) GetEnabledOk

func (o *SamlConfiguration) GetEnabledOk() (*bool, bool)

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

func (*SamlConfiguration) GetIdpAccountAttribute

func (o *SamlConfiguration) GetIdpAccountAttribute() string

GetIdpAccountAttribute returns the IdpAccountAttribute field value if set, zero value otherwise.

func (*SamlConfiguration) GetIdpAccountAttributeOk

func (o *SamlConfiguration) GetIdpAccountAttributeOk() (*string, bool)

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

func (*SamlConfiguration) GetIdpMetadataUrl

func (o *SamlConfiguration) GetIdpMetadataUrl() string

GetIdpMetadataUrl returns the IdpMetadataUrl field value if set, zero value otherwise.

func (*SamlConfiguration) GetIdpMetadataUrlOk

func (o *SamlConfiguration) GetIdpMetadataUrlOk() (*string, bool)

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

func (*SamlConfiguration) GetIdpMetadataXml

func (o *SamlConfiguration) GetIdpMetadataXml() string

GetIdpMetadataXml returns the IdpMetadataXml field value if set, zero value otherwise.

func (*SamlConfiguration) GetIdpMetadataXmlOk

func (o *SamlConfiguration) GetIdpMetadataXmlOk() (*string, bool)

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

func (*SamlConfiguration) GetIdpRoleAttribute

func (o *SamlConfiguration) GetIdpRoleAttribute() string

GetIdpRoleAttribute returns the IdpRoleAttribute field value if set, zero value otherwise.

func (*SamlConfiguration) GetIdpRoleAttributeOk

func (o *SamlConfiguration) GetIdpRoleAttributeOk() (*string, bool)

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

func (*SamlConfiguration) GetIdpUsernameAttribute

func (o *SamlConfiguration) GetIdpUsernameAttribute() string

GetIdpUsernameAttribute returns the IdpUsernameAttribute field value if set, zero value otherwise.

func (*SamlConfiguration) GetIdpUsernameAttributeOk

func (o *SamlConfiguration) GetIdpUsernameAttributeOk() (*string, bool)

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

func (*SamlConfiguration) GetLastUpdated

func (o *SamlConfiguration) GetLastUpdated() time.Time

GetLastUpdated returns the LastUpdated field value if set, zero value otherwise.

func (*SamlConfiguration) GetLastUpdatedOk

func (o *SamlConfiguration) GetLastUpdatedOk() (*time.Time, bool)

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

func (*SamlConfiguration) GetName

func (o *SamlConfiguration) GetName() string

GetName returns the Name field value

func (*SamlConfiguration) GetNameOk

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

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

func (*SamlConfiguration) GetRequireExistingUsers

func (o *SamlConfiguration) GetRequireExistingUsers() bool

GetRequireExistingUsers returns the RequireExistingUsers field value if set, zero value otherwise.

func (*SamlConfiguration) GetRequireExistingUsersOk

func (o *SamlConfiguration) GetRequireExistingUsersOk() (*bool, bool)

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

func (*SamlConfiguration) GetRequireSignedAssertions

func (o *SamlConfiguration) GetRequireSignedAssertions() bool

GetRequireSignedAssertions returns the RequireSignedAssertions field value if set, zero value otherwise.

func (*SamlConfiguration) GetRequireSignedAssertionsOk

func (o *SamlConfiguration) GetRequireSignedAssertionsOk() (*bool, bool)

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

func (*SamlConfiguration) GetRequireSignedResponse

func (o *SamlConfiguration) GetRequireSignedResponse() bool

GetRequireSignedResponse returns the RequireSignedResponse field value if set, zero value otherwise.

func (*SamlConfiguration) GetRequireSignedResponseOk

func (o *SamlConfiguration) GetRequireSignedResponseOk() (*bool, bool)

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

func (*SamlConfiguration) GetSpEntityId

func (o *SamlConfiguration) GetSpEntityId() string

GetSpEntityId returns the SpEntityId field value

func (*SamlConfiguration) GetSpEntityIdOk

func (o *SamlConfiguration) GetSpEntityIdOk() (*string, bool)

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

func (*SamlConfiguration) HasAcsHttpsPort

func (o *SamlConfiguration) HasAcsHttpsPort() bool

HasAcsHttpsPort returns a boolean if a field has been set.

func (*SamlConfiguration) HasCreatedAt

func (o *SamlConfiguration) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*SamlConfiguration) HasDefaultAccount

func (o *SamlConfiguration) HasDefaultAccount() bool

HasDefaultAccount returns a boolean if a field has been set.

func (*SamlConfiguration) HasDefaultRole

func (o *SamlConfiguration) HasDefaultRole() bool

HasDefaultRole returns a boolean if a field has been set.

func (*SamlConfiguration) HasIdpAccountAttribute

func (o *SamlConfiguration) HasIdpAccountAttribute() bool

HasIdpAccountAttribute returns a boolean if a field has been set.

func (*SamlConfiguration) HasIdpMetadataUrl

func (o *SamlConfiguration) HasIdpMetadataUrl() bool

HasIdpMetadataUrl returns a boolean if a field has been set.

func (*SamlConfiguration) HasIdpMetadataXml

func (o *SamlConfiguration) HasIdpMetadataXml() bool

HasIdpMetadataXml returns a boolean if a field has been set.

func (*SamlConfiguration) HasIdpRoleAttribute

func (o *SamlConfiguration) HasIdpRoleAttribute() bool

HasIdpRoleAttribute returns a boolean if a field has been set.

func (*SamlConfiguration) HasIdpUsernameAttribute

func (o *SamlConfiguration) HasIdpUsernameAttribute() bool

HasIdpUsernameAttribute returns a boolean if a field has been set.

func (*SamlConfiguration) HasLastUpdated

func (o *SamlConfiguration) HasLastUpdated() bool

HasLastUpdated returns a boolean if a field has been set.

func (*SamlConfiguration) HasRequireExistingUsers

func (o *SamlConfiguration) HasRequireExistingUsers() bool

HasRequireExistingUsers returns a boolean if a field has been set.

func (*SamlConfiguration) HasRequireSignedAssertions

func (o *SamlConfiguration) HasRequireSignedAssertions() bool

HasRequireSignedAssertions returns a boolean if a field has been set.

func (*SamlConfiguration) HasRequireSignedResponse

func (o *SamlConfiguration) HasRequireSignedResponse() bool

HasRequireSignedResponse returns a boolean if a field has been set.

func (SamlConfiguration) MarshalJSON

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

func (*SamlConfiguration) SetAcsHttpsPort

func (o *SamlConfiguration) SetAcsHttpsPort(v int32)

SetAcsHttpsPort gets a reference to the given int32 and assigns it to the AcsHttpsPort field.

func (*SamlConfiguration) SetAcsUrl

func (o *SamlConfiguration) SetAcsUrl(v string)

SetAcsUrl sets field value

func (*SamlConfiguration) SetCreatedAt

func (o *SamlConfiguration) SetCreatedAt(v time.Time)

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

func (*SamlConfiguration) SetDefaultAccount

func (o *SamlConfiguration) SetDefaultAccount(v string)

SetDefaultAccount gets a reference to the given string and assigns it to the DefaultAccount field.

func (*SamlConfiguration) SetDefaultRole

func (o *SamlConfiguration) SetDefaultRole(v string)

SetDefaultRole gets a reference to the given string and assigns it to the DefaultRole field.

func (*SamlConfiguration) SetEnabled

func (o *SamlConfiguration) SetEnabled(v bool)

SetEnabled sets field value

func (*SamlConfiguration) SetIdpAccountAttribute

func (o *SamlConfiguration) SetIdpAccountAttribute(v string)

SetIdpAccountAttribute gets a reference to the given string and assigns it to the IdpAccountAttribute field.

func (*SamlConfiguration) SetIdpMetadataUrl

func (o *SamlConfiguration) SetIdpMetadataUrl(v string)

SetIdpMetadataUrl gets a reference to the given string and assigns it to the IdpMetadataUrl field.

func (*SamlConfiguration) SetIdpMetadataXml

func (o *SamlConfiguration) SetIdpMetadataXml(v string)

SetIdpMetadataXml gets a reference to the given string and assigns it to the IdpMetadataXml field.

func (*SamlConfiguration) SetIdpRoleAttribute

func (o *SamlConfiguration) SetIdpRoleAttribute(v string)

SetIdpRoleAttribute gets a reference to the given string and assigns it to the IdpRoleAttribute field.

func (*SamlConfiguration) SetIdpUsernameAttribute

func (o *SamlConfiguration) SetIdpUsernameAttribute(v string)

SetIdpUsernameAttribute gets a reference to the given string and assigns it to the IdpUsernameAttribute field.

func (*SamlConfiguration) SetLastUpdated

func (o *SamlConfiguration) SetLastUpdated(v time.Time)

SetLastUpdated gets a reference to the given time.Time and assigns it to the LastUpdated field.

func (*SamlConfiguration) SetName

func (o *SamlConfiguration) SetName(v string)

SetName sets field value

func (*SamlConfiguration) SetRequireExistingUsers

func (o *SamlConfiguration) SetRequireExistingUsers(v bool)

SetRequireExistingUsers gets a reference to the given bool and assigns it to the RequireExistingUsers field.

func (*SamlConfiguration) SetRequireSignedAssertions

func (o *SamlConfiguration) SetRequireSignedAssertions(v bool)

SetRequireSignedAssertions gets a reference to the given bool and assigns it to the RequireSignedAssertions field.

func (*SamlConfiguration) SetRequireSignedResponse

func (o *SamlConfiguration) SetRequireSignedResponse(v bool)

SetRequireSignedResponse gets a reference to the given bool and assigns it to the RequireSignedResponse field.

func (*SamlConfiguration) SetSpEntityId

func (o *SamlConfiguration) SetSpEntityId(v string)

SetSpEntityId sets field value

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 ServiceVersion

type ServiceVersion struct {
	Service *ServiceVersionService `json:"service,omitempty"`
	Api     *ServiceVersionApi     `json:"api,omitempty"`
	Db      *ServiceVersionDb      `json:"db,omitempty"`
	Engine  *ServiceVersionEngine  `json:"engine,omitempty"`
}

ServiceVersion Version information for a service

func NewServiceVersion

func NewServiceVersion() *ServiceVersion

NewServiceVersion instantiates a new ServiceVersion 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 NewServiceVersionWithDefaults

func NewServiceVersionWithDefaults() *ServiceVersion

NewServiceVersionWithDefaults instantiates a new ServiceVersion 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 (*ServiceVersion) GetApi

func (o *ServiceVersion) GetApi() ServiceVersionApi

GetApi returns the Api field value if set, zero value otherwise.

func (*ServiceVersion) GetApiOk

func (o *ServiceVersion) GetApiOk() (*ServiceVersionApi, bool)

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

func (*ServiceVersion) GetDb

func (o *ServiceVersion) GetDb() ServiceVersionDb

GetDb returns the Db field value if set, zero value otherwise.

func (*ServiceVersion) GetDbOk

func (o *ServiceVersion) GetDbOk() (*ServiceVersionDb, bool)

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

func (*ServiceVersion) GetEngine

func (o *ServiceVersion) GetEngine() ServiceVersionEngine

GetEngine returns the Engine field value if set, zero value otherwise.

func (*ServiceVersion) GetEngineOk

func (o *ServiceVersion) GetEngineOk() (*ServiceVersionEngine, bool)

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

func (*ServiceVersion) GetService

func (o *ServiceVersion) GetService() ServiceVersionService

GetService returns the Service field value if set, zero value otherwise.

func (*ServiceVersion) GetServiceOk

func (o *ServiceVersion) GetServiceOk() (*ServiceVersionService, bool)

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

func (*ServiceVersion) HasApi

func (o *ServiceVersion) HasApi() bool

HasApi returns a boolean if a field has been set.

func (*ServiceVersion) HasDb

func (o *ServiceVersion) HasDb() bool

HasDb returns a boolean if a field has been set.

func (*ServiceVersion) HasEngine

func (o *ServiceVersion) HasEngine() bool

HasEngine returns a boolean if a field has been set.

func (*ServiceVersion) HasService

func (o *ServiceVersion) HasService() bool

HasService returns a boolean if a field has been set.

func (ServiceVersion) MarshalJSON

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

func (*ServiceVersion) SetApi

func (o *ServiceVersion) SetApi(v ServiceVersionApi)

SetApi gets a reference to the given ServiceVersionApi and assigns it to the Api field.

func (*ServiceVersion) SetDb

func (o *ServiceVersion) SetDb(v ServiceVersionDb)

SetDb gets a reference to the given ServiceVersionDb and assigns it to the Db field.

func (*ServiceVersion) SetEngine

func (o *ServiceVersion) SetEngine(v ServiceVersionEngine)

SetEngine gets a reference to the given ServiceVersionEngine and assigns it to the Engine field.

func (*ServiceVersion) SetService

func (o *ServiceVersion) SetService(v ServiceVersionService)

SetService gets a reference to the given ServiceVersionService and assigns it to the Service field.

type ServiceVersionApi

type ServiceVersionApi struct {
	// Semantic version of the api
	Version *string `json:"version,omitempty"`
}

ServiceVersionApi Api Version string

func NewServiceVersionApi

func NewServiceVersionApi() *ServiceVersionApi

NewServiceVersionApi instantiates a new ServiceVersionApi 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 NewServiceVersionApiWithDefaults

func NewServiceVersionApiWithDefaults() *ServiceVersionApi

NewServiceVersionApiWithDefaults instantiates a new ServiceVersionApi 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 (*ServiceVersionApi) GetVersion

func (o *ServiceVersionApi) GetVersion() string

GetVersion returns the Version field value if set, zero value otherwise.

func (*ServiceVersionApi) GetVersionOk

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

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

func (*ServiceVersionApi) HasVersion

func (o *ServiceVersionApi) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (ServiceVersionApi) MarshalJSON

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

func (*ServiceVersionApi) SetVersion

func (o *ServiceVersionApi) SetVersion(v string)

SetVersion gets a reference to the given string and assigns it to the Version field.

type ServiceVersionDb

type ServiceVersionDb struct {
	// Semantic version of the db schema
	SchemaVersion *string `json:"schema_version,omitempty"`
}

ServiceVersionDb struct for ServiceVersionDb

func NewServiceVersionDb

func NewServiceVersionDb() *ServiceVersionDb

NewServiceVersionDb instantiates a new ServiceVersionDb 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 NewServiceVersionDbWithDefaults

func NewServiceVersionDbWithDefaults() *ServiceVersionDb

NewServiceVersionDbWithDefaults instantiates a new ServiceVersionDb 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 (*ServiceVersionDb) GetSchemaVersion

func (o *ServiceVersionDb) GetSchemaVersion() string

GetSchemaVersion returns the SchemaVersion field value if set, zero value otherwise.

func (*ServiceVersionDb) GetSchemaVersionOk

func (o *ServiceVersionDb) GetSchemaVersionOk() (*string, bool)

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

func (*ServiceVersionDb) HasSchemaVersion

func (o *ServiceVersionDb) HasSchemaVersion() bool

HasSchemaVersion returns a boolean if a field has been set.

func (ServiceVersionDb) MarshalJSON

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

func (*ServiceVersionDb) SetSchemaVersion

func (o *ServiceVersionDb) SetSchemaVersion(v string)

SetSchemaVersion gets a reference to the given string and assigns it to the SchemaVersion field.

type ServiceVersionEngine

type ServiceVersionEngine struct {
	// Version of the installed engine library
	Version *string `json:"version,omitempty"`
	// Version of the installed engine db schema
	Db *string `json:"db,omitempty"`
}

ServiceVersionEngine struct for ServiceVersionEngine

func NewServiceVersionEngine

func NewServiceVersionEngine() *ServiceVersionEngine

NewServiceVersionEngine instantiates a new ServiceVersionEngine 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 NewServiceVersionEngineWithDefaults

func NewServiceVersionEngineWithDefaults() *ServiceVersionEngine

NewServiceVersionEngineWithDefaults instantiates a new ServiceVersionEngine 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 (*ServiceVersionEngine) GetDb

func (o *ServiceVersionEngine) GetDb() string

GetDb returns the Db field value if set, zero value otherwise.

func (*ServiceVersionEngine) GetDbOk

func (o *ServiceVersionEngine) GetDbOk() (*string, bool)

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

func (*ServiceVersionEngine) GetVersion

func (o *ServiceVersionEngine) GetVersion() string

GetVersion returns the Version field value if set, zero value otherwise.

func (*ServiceVersionEngine) GetVersionOk

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

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

func (*ServiceVersionEngine) HasDb

func (o *ServiceVersionEngine) HasDb() bool

HasDb returns a boolean if a field has been set.

func (*ServiceVersionEngine) HasVersion

func (o *ServiceVersionEngine) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (ServiceVersionEngine) MarshalJSON

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

func (*ServiceVersionEngine) SetDb

func (o *ServiceVersionEngine) SetDb(v string)

SetDb gets a reference to the given string and assigns it to the Db field.

func (*ServiceVersionEngine) SetVersion

func (o *ServiceVersionEngine) SetVersion(v string)

SetVersion gets a reference to the given string and assigns it to the Version field.

type ServiceVersionService

type ServiceVersionService struct {
	// Semantic Version string of the service implementation
	Version *string `json:"version,omitempty"`
}

ServiceVersionService struct for ServiceVersionService

func NewServiceVersionService

func NewServiceVersionService() *ServiceVersionService

NewServiceVersionService instantiates a new ServiceVersionService 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 NewServiceVersionServiceWithDefaults

func NewServiceVersionServiceWithDefaults() *ServiceVersionService

NewServiceVersionServiceWithDefaults instantiates a new ServiceVersionService 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 (*ServiceVersionService) GetVersion

func (o *ServiceVersionService) GetVersion() string

GetVersion returns the Version field value if set, zero value otherwise.

func (*ServiceVersionService) GetVersionOk

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

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

func (*ServiceVersionService) HasVersion

func (o *ServiceVersionService) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (ServiceVersionService) MarshalJSON

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

func (*ServiceVersionService) SetVersion

func (o *ServiceVersionService) SetVersion(v string)

SetVersion gets a reference to the given string and assigns it to the Version field.

type StatusResponse

type StatusResponse struct {
	Busy    *bool   `json:"busy,omitempty"`
	Up      *bool   `json:"up,omitempty"`
	Message *string `json:"message,omitempty"`
}

StatusResponse System status response

func NewStatusResponse

func NewStatusResponse() *StatusResponse

NewStatusResponse instantiates a new StatusResponse 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 NewStatusResponseWithDefaults

func NewStatusResponseWithDefaults() *StatusResponse

NewStatusResponseWithDefaults instantiates a new StatusResponse 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 (*StatusResponse) GetBusy

func (o *StatusResponse) GetBusy() bool

GetBusy returns the Busy field value if set, zero value otherwise.

func (*StatusResponse) GetBusyOk

func (o *StatusResponse) GetBusyOk() (*bool, bool)

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

func (*StatusResponse) GetMessage

func (o *StatusResponse) GetMessage() string

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

func (*StatusResponse) GetMessageOk

func (o *StatusResponse) 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 (*StatusResponse) GetUp

func (o *StatusResponse) GetUp() bool

GetUp returns the Up field value if set, zero value otherwise.

func (*StatusResponse) GetUpOk

func (o *StatusResponse) GetUpOk() (*bool, bool)

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

func (*StatusResponse) HasBusy

func (o *StatusResponse) HasBusy() bool

HasBusy returns a boolean if a field has been set.

func (*StatusResponse) HasMessage

func (o *StatusResponse) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*StatusResponse) HasUp

func (o *StatusResponse) HasUp() bool

HasUp returns a boolean if a field has been set.

func (StatusResponse) MarshalJSON

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

func (*StatusResponse) SetBusy

func (o *StatusResponse) SetBusy(v bool)

SetBusy gets a reference to the given bool and assigns it to the Busy field.

func (*StatusResponse) SetMessage

func (o *StatusResponse) SetMessage(v string)

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

func (*StatusResponse) SetUp

func (o *StatusResponse) SetUp(v bool)

SetUp gets a reference to the given bool and assigns it to the Up field.

type TokenResponse

type TokenResponse struct {
	// The token content
	Token string `json:"token"`
}

TokenResponse An auth token for use in future requests as an Authorization header value of type 'bearer'

func NewTokenResponse

func NewTokenResponse(token string) *TokenResponse

NewTokenResponse instantiates a new TokenResponse 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 NewTokenResponseWithDefaults

func NewTokenResponseWithDefaults() *TokenResponse

NewTokenResponseWithDefaults instantiates a new TokenResponse 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 (*TokenResponse) GetToken

func (o *TokenResponse) GetToken() string

GetToken returns the Token field value

func (*TokenResponse) GetTokenOk

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

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

func (TokenResponse) MarshalJSON

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

func (*TokenResponse) SetToken

func (o *TokenResponse) SetToken(v string)

SetToken sets field value

Jump to

Keyboard shortcuts

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