secretinternal

package
v0.1.1 Latest Latest
Warning

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

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

README

Go API client for secretinternal

Vault REST API specification

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.

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

To use a proxy, set the environment variable HTTP_PROXY:

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

Configuration of Server URL

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

Select Server Configuration

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

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

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

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

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

URLs Configuration per Operation

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

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

Documentation for API Endpoints

All URIs are relative to https://api.my.centrify.net/api/v1.0

Class Method HTTP request Description
SecretsApi Delete Delete /secrets/{nameOrId} Delete a secret
SecretsApi Get Get /secrets/{nameOrId} Get secrets
SecretsApi Modify Patch /secrets/{nameOrId} Modify a secret
SecretsApi Retrieve Get /privilegeddata/secrets/{nameOrId} Retrieve privileged data
SecretsApi SecretsCreate Post /secrets Create a secret
SecretsApi SecretsList Get /secrets List secrets

Documentation For Models

Documentation For Authorization

OAuth2
  • Type: OAuth
  • Flow: application
  • Authorization URL:
  • Scopes:
  • secrets/*: Read and write secrets
  • privilegeddata/secrets/*: Read secret data

Example

auth := context.WithValue(context.Background(), sw.ContextAccessToken, "ACCESSTOKENSTRING")
r, err := client.Service.Operation(auth, args)

Or via OAuth2 module to automatically refresh tokens and perform user authentication.

import "golang.org/x/oauth2"

/* Perform OAuth2 round trip request and obtain a token */

tokenSource := oauth2cfg.TokenSource(createContext(httpClient), &token)
auth := context.WithValue(oauth2.NoContext, sw.ContextOAuth2, tokenSource)
r, err := client.Service.Operation(auth, args)

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

support@centrify.com

Documentation

Index

Constants

This section is empty.

Variables

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

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

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

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

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

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

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

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

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

Functions

func CacheExpires

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

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

func PtrBool

func PtrBool(v bool) *bool

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

func PtrFloat32

func PtrFloat32(v float32) *float32

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

func PtrFloat64

func PtrFloat64(v float64) *float64

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

func PtrInt

func PtrInt(v int) *int

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

func PtrInt32

func PtrInt32(v int32) *int32

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

func PtrInt64

func PtrInt64(v int64) *int64

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

func PtrString

func PtrString(v string) *string

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

func PtrTime

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

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

Types

type APIClient

type APIClient struct {
	SecretsApi SecretsApi
	// contains filtered or unexported fields
}

APIClient manages communication with the Centrify Vault REST API API v1.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) AddDefaultHeaders

func (c *APIClient) AddDefaultHeaders(hdrs map[string]string)

AddDefaultHeaders sets the default HTTP header

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

func (*APIClient) SetDebug

func (c *APIClient) SetDebug(value bool)

SetDebug enables/disables debug mode

func (*APIClient) SetUserAgent

func (c *APIClient) SetUserAgent(agent string)

SetUserAgent sets the user agent

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

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

type APIResponse

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

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResonse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

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

type ApiDeleteRequest

type ApiDeleteRequest struct {
	ApiService SecretsApi
	// contains filtered or unexported fields
}

func (ApiDeleteRequest) Execute

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

type ApiGetRequest

type ApiGetRequest struct {
	ApiService SecretsApi
	// contains filtered or unexported fields
}

func (ApiGetRequest) Execute

func (r ApiGetRequest) Execute() (SecretDense, *_nethttp.Response, error)

type ApiModifyRequest

type ApiModifyRequest struct {
	ApiService SecretsApi
	// contains filtered or unexported fields
}

func (ApiModifyRequest) Execute

func (ApiModifyRequest) SecretPatchable

func (r ApiModifyRequest) SecretPatchable(secretPatchable SecretMarshaler) ApiModifyRequest

type ApiRetrieveRequest

type ApiRetrieveRequest struct {
	ApiService SecretsApi
	// contains filtered or unexported fields
}

func (ApiRetrieveRequest) Execute

type ApiSecretsCreateRequest

type ApiSecretsCreateRequest struct {
	ApiService SecretsApi
	// contains filtered or unexported fields
}

func (ApiSecretsCreateRequest) Execute

func (ApiSecretsCreateRequest) SecretWritable

func (r ApiSecretsCreateRequest) SecretWritable(secretWritable SecretMarshaler) ApiSecretsCreateRequest

type ApiSecretsListRequest

type ApiSecretsListRequest struct {
	ApiService SecretsApi
	// contains filtered or unexported fields
}

func (ApiSecretsListRequest) Execute

func (ApiSecretsListRequest) Filter

func (ApiSecretsListRequest) Limit

func (ApiSecretsListRequest) OrderBy

func (r ApiSecretsListRequest) OrderBy(orderBy []string) ApiSecretsListRequest

func (ApiSecretsListRequest) Search

type BasicAuth

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

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

type Configuration

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

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

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

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

func (*Configuration) ServerURL

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

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

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

ServerURLWithContext returns a new server URL given an endpoint

type FailureStatusCode

type FailureStatusCode int32

FailureStatusCode A conventional HTTP status code: * 401 - Authorization error with your API key or account * 403 - Forbidden error with your API key or account * 404 - The requested item does not exist * 413 - Payload too large * 422 - The query or body parameters did not pass validation * 429 - Too many requests in a given amount of time * 500 - An internal server error occurred, please contact support@centrify.com

func (FailureStatusCode) Ptr

Ptr returns reference to failure_status_code value

func (*FailureStatusCode) UnmarshalJSON

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

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 List

type List struct {
	// What kind of resource does this list contain?
	Object string `json:"object"`
	// Url of next page of items in list.
	NextUrl NullableString `json:"next_url"`
	// Url of previous page of items in list.
	PreviousUrl          NullableString `json:"previous_url"`
	AdditionalProperties map[string]interface{}
}

List Multiple items returned in order

func NewList

func NewList(object string, nextUrl NullableString, previousUrl NullableString) *List

NewList instantiates a new List 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 NewListWithDefaults

func NewListWithDefaults() *List

NewListWithDefaults instantiates a new List 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 (*List) GetNextUrl

func (o *List) GetNextUrl() string

GetNextUrl returns the NextUrl field value If the value is explicit nil, the zero value for string will be returned

func (*List) GetNextUrlOk

func (o *List) GetNextUrlOk() (*string, bool)

GetNextUrlOk returns a tuple with the NextUrl field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*List) GetObject

func (o *List) GetObject() string

GetObject returns the Object field value

func (*List) GetObjectOk

func (o *List) GetObjectOk() (*string, bool)

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

func (*List) GetPreviousUrl

func (o *List) GetPreviousUrl() string

GetPreviousUrl returns the PreviousUrl field value If the value is explicit nil, the zero value for string will be returned

func (*List) GetPreviousUrlOk

func (o *List) GetPreviousUrlOk() (*string, bool)

GetPreviousUrlOk returns a tuple with the PreviousUrl field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (List) MarshalJSON

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

func (*List) SetNextUrl

func (o *List) SetNextUrl(v string)

SetNextUrl sets field value

func (*List) SetObject

func (o *List) SetObject(v string)

SetObject sets field value

func (*List) SetPreviousUrl

func (o *List) SetPreviousUrl(v string)

SetPreviousUrl sets field value

func (*List) UnmarshalJSON

func (o *List) UnmarshalJSON(bytes []byte) (err error)

type Metadata

type Metadata struct {
	// Unique ID, generated upon creation
	Id *string `json:"id,omitempty"`
	// Unique global reference, generated upon creation, useful for APIs that operate on multiple types of objects.
	Crn *string `json:"crn,omitempty"`
	// A timestamp in ISO 8601 format of the date the address was created.
	Created *time.Time `json:"created,omitempty"`
	// A timestamp in ISO 8601 format of the date the address was last modified.
	Modified             *time.Time `json:"modified,omitempty"`
	AdditionalProperties map[string]interface{}
}

Metadata Common metadata for Centrify resources

func NewMetadata

func NewMetadata() *Metadata

NewMetadata instantiates a new Metadata 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 NewMetadataWithDefaults

func NewMetadataWithDefaults() *Metadata

NewMetadataWithDefaults instantiates a new Metadata 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 (*Metadata) GetCreated

func (o *Metadata) GetCreated() time.Time

GetCreated returns the Created field value if set, zero value otherwise.

func (*Metadata) GetCreatedOk

func (o *Metadata) GetCreatedOk() (*time.Time, bool)

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

func (*Metadata) GetCrn

func (o *Metadata) GetCrn() string

GetCrn returns the Crn field value if set, zero value otherwise.

func (*Metadata) GetCrnOk

func (o *Metadata) GetCrnOk() (*string, bool)

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

func (*Metadata) GetId

func (o *Metadata) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*Metadata) GetIdOk

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

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

func (*Metadata) GetModified

func (o *Metadata) GetModified() time.Time

GetModified returns the Modified field value if set, zero value otherwise.

func (*Metadata) GetModifiedOk

func (o *Metadata) GetModifiedOk() (*time.Time, bool)

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

func (*Metadata) HasCreated

func (o *Metadata) HasCreated() bool

HasCreated returns a boolean if a field has been set.

func (*Metadata) HasCrn

func (o *Metadata) HasCrn() bool

HasCrn returns a boolean if a field has been set.

func (*Metadata) HasId

func (o *Metadata) HasId() bool

HasId returns a boolean if a field has been set.

func (*Metadata) HasModified

func (o *Metadata) HasModified() bool

HasModified returns a boolean if a field has been set.

func (Metadata) MarshalJSON

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

func (*Metadata) SetCreated

func (o *Metadata) SetCreated(v time.Time)

SetCreated gets a reference to the given time.Time and assigns it to the Created field.

func (*Metadata) SetCrn

func (o *Metadata) SetCrn(v string)

SetCrn gets a reference to the given string and assigns it to the Crn field.

func (*Metadata) SetId

func (o *Metadata) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*Metadata) SetModified

func (o *Metadata) SetModified(v time.Time)

SetModified gets a reference to the given time.Time and assigns it to the Modified field.

func (*Metadata) UnmarshalJSON

func (o *Metadata) UnmarshalJSON(bytes []byte) (err error)

type ModelError

type ModelError struct {
	// A reference URL which contains more information about the type of error
	Type *string `json:"type,omitempty"`
	// A short, summary of the problem type.
	Title  *string           `json:"title,omitempty"`
	Status FailureStatusCode `json:"status"`
	// A human readable explanation specific to this occurrence of the problem.
	Detail *string `json:"detail,omitempty"`
	// A URI to the requested resource
	Instance             *string `json:"instance,omitempty"`
	AdditionalProperties map[string]interface{}
}

ModelError Centrify uses RESTful HTTP response codes to indicate success or failure of an API request. In general, 2xx indicates success, 4xx indicate an input error, and 5xx indicates an error on Centrify's end.

func NewModelError

func NewModelError(status FailureStatusCode) *ModelError

NewModelError instantiates a new ModelError 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 NewModelErrorWithDefaults

func NewModelErrorWithDefaults() *ModelError

NewModelErrorWithDefaults instantiates a new ModelError 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 (*ModelError) GetDetail

func (o *ModelError) GetDetail() string

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

func (*ModelError) GetDetailOk

func (o *ModelError) GetDetailOk() (*string, 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 (*ModelError) GetInstance

func (o *ModelError) GetInstance() string

GetInstance returns the Instance field value if set, zero value otherwise.

func (*ModelError) GetInstanceOk

func (o *ModelError) GetInstanceOk() (*string, bool)

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

func (*ModelError) GetStatus

func (o *ModelError) GetStatus() FailureStatusCode

GetStatus returns the Status field value

func (*ModelError) GetStatusOk

func (o *ModelError) GetStatusOk() (*FailureStatusCode, bool)

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

func (*ModelError) GetTitle

func (o *ModelError) GetTitle() string

GetTitle returns the Title field value if set, zero value otherwise.

func (*ModelError) GetTitleOk

func (o *ModelError) GetTitleOk() (*string, bool)

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

func (*ModelError) GetType

func (o *ModelError) GetType() string

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

func (*ModelError) GetTypeOk

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

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

func (*ModelError) HasDetail

func (o *ModelError) HasDetail() bool

HasDetail returns a boolean if a field has been set.

func (*ModelError) HasInstance

func (o *ModelError) HasInstance() bool

HasInstance returns a boolean if a field has been set.

func (*ModelError) HasTitle

func (o *ModelError) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (*ModelError) HasType

func (o *ModelError) HasType() bool

HasType returns a boolean if a field has been set.

func (ModelError) MarshalJSON

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

func (*ModelError) SetDetail

func (o *ModelError) SetDetail(v string)

SetDetail gets a reference to the given string and assigns it to the Detail field.

func (*ModelError) SetInstance

func (o *ModelError) SetInstance(v string)

SetInstance gets a reference to the given string and assigns it to the Instance field.

func (*ModelError) SetStatus

func (o *ModelError) SetStatus(v FailureStatusCode)

SetStatus sets field value

func (*ModelError) SetTitle

func (o *ModelError) SetTitle(v string)

SetTitle gets a reference to the given string and assigns it to the Title field.

func (*ModelError) SetType

func (o *ModelError) SetType(v string)

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

func (*ModelError) UnmarshalJSON

func (o *ModelError) UnmarshalJSON(bytes []byte) (err error)

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 NullableFailureStatusCode

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

func NewNullableFailureStatusCode

func NewNullableFailureStatusCode(val *FailureStatusCode) *NullableFailureStatusCode

func (NullableFailureStatusCode) Get

func (NullableFailureStatusCode) IsSet

func (v NullableFailureStatusCode) IsSet() bool

func (NullableFailureStatusCode) MarshalJSON

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

func (*NullableFailureStatusCode) Set

func (*NullableFailureStatusCode) UnmarshalJSON

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

func (*NullableFailureStatusCode) Unset

func (v *NullableFailureStatusCode) 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 NullableList

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

func NewNullableList

func NewNullableList(val *List) *NullableList

func (NullableList) Get

func (v NullableList) Get() *List

func (NullableList) IsSet

func (v NullableList) IsSet() bool

func (NullableList) MarshalJSON

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

func (*NullableList) Set

func (v *NullableList) Set(val *List)

func (*NullableList) UnmarshalJSON

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

func (*NullableList) Unset

func (v *NullableList) Unset()

type NullableMetadata

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

func NewNullableMetadata

func NewNullableMetadata(val *Metadata) *NullableMetadata

func (NullableMetadata) Get

func (v NullableMetadata) Get() *Metadata

func (NullableMetadata) IsSet

func (v NullableMetadata) IsSet() bool

func (NullableMetadata) MarshalJSON

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

func (*NullableMetadata) Set

func (v *NullableMetadata) Set(val *Metadata)

func (*NullableMetadata) UnmarshalJSON

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

func (*NullableMetadata) Unset

func (v *NullableMetadata) Unset()

type NullableModelError

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

func NewNullableModelError

func NewNullableModelError(val *ModelError) *NullableModelError

func (NullableModelError) Get

func (v NullableModelError) Get() *ModelError

func (NullableModelError) IsSet

func (v NullableModelError) IsSet() bool

func (NullableModelError) MarshalJSON

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

func (*NullableModelError) Set

func (v *NullableModelError) Set(val *ModelError)

func (*NullableModelError) UnmarshalJSON

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

func (*NullableModelError) Unset

func (v *NullableModelError) Unset()

type NullablePrivilegedBagData

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

func NewNullablePrivilegedBagData

func NewNullablePrivilegedBagData(val *PrivilegedBagData) *NullablePrivilegedBagData

func (NullablePrivilegedBagData) Get

func (NullablePrivilegedBagData) IsSet

func (v NullablePrivilegedBagData) IsSet() bool

func (NullablePrivilegedBagData) MarshalJSON

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

func (*NullablePrivilegedBagData) Set

func (*NullablePrivilegedBagData) UnmarshalJSON

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

func (*NullablePrivilegedBagData) Unset

func (v *NullablePrivilegedBagData) Unset()

type NullablePrivilegedBagDataAllOf

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

func (NullablePrivilegedBagDataAllOf) Get

func (NullablePrivilegedBagDataAllOf) IsSet

func (NullablePrivilegedBagDataAllOf) MarshalJSON

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

func (*NullablePrivilegedBagDataAllOf) Set

func (*NullablePrivilegedBagDataAllOf) UnmarshalJSON

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

func (*NullablePrivilegedBagDataAllOf) Unset

func (v *NullablePrivilegedBagDataAllOf) Unset()

type NullablePrivilegedData

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

func NewNullablePrivilegedData

func NewNullablePrivilegedData(val *PrivilegedData) *NullablePrivilegedData

func (NullablePrivilegedData) Get

func (NullablePrivilegedData) IsSet

func (v NullablePrivilegedData) IsSet() bool

func (NullablePrivilegedData) MarshalJSON

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

func (*NullablePrivilegedData) Set

func (*NullablePrivilegedData) UnmarshalJSON

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

func (*NullablePrivilegedData) Unset

func (v *NullablePrivilegedData) Unset()

type NullablePrivilegedTextData

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

func NewNullablePrivilegedTextData

func NewNullablePrivilegedTextData(val *PrivilegedTextData) *NullablePrivilegedTextData

func (NullablePrivilegedTextData) Get

func (NullablePrivilegedTextData) IsSet

func (v NullablePrivilegedTextData) IsSet() bool

func (NullablePrivilegedTextData) MarshalJSON

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

func (*NullablePrivilegedTextData) Set

func (*NullablePrivilegedTextData) UnmarshalJSON

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

func (*NullablePrivilegedTextData) Unset

func (v *NullablePrivilegedTextData) Unset()

type NullablePrivilegedTextDataAllOf

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

func (NullablePrivilegedTextDataAllOf) Get

func (NullablePrivilegedTextDataAllOf) IsSet

func (NullablePrivilegedTextDataAllOf) MarshalJSON

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

func (*NullablePrivilegedTextDataAllOf) Set

func (*NullablePrivilegedTextDataAllOf) UnmarshalJSON

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

func (*NullablePrivilegedTextDataAllOf) Unset

type NullableSecretBagPatchable

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

func NewNullableSecretBagPatchable

func NewNullableSecretBagPatchable(val *SecretBagPatchable) *NullableSecretBagPatchable

func (NullableSecretBagPatchable) Get

func (NullableSecretBagPatchable) IsSet

func (v NullableSecretBagPatchable) IsSet() bool

func (NullableSecretBagPatchable) MarshalJSON

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

func (*NullableSecretBagPatchable) Set

func (*NullableSecretBagPatchable) UnmarshalJSON

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

func (*NullableSecretBagPatchable) Unset

func (v *NullableSecretBagPatchable) Unset()

type NullableSecretBagWritable

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

func NewNullableSecretBagWritable

func NewNullableSecretBagWritable(val *SecretBagWritable) *NullableSecretBagWritable

func (NullableSecretBagWritable) Get

func (NullableSecretBagWritable) IsSet

func (v NullableSecretBagWritable) IsSet() bool

func (NullableSecretBagWritable) MarshalJSON

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

func (*NullableSecretBagWritable) Set

func (*NullableSecretBagWritable) UnmarshalJSON

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

func (*NullableSecretBagWritable) Unset

func (v *NullableSecretBagWritable) Unset()

type NullableSecretBagWritableAllOf

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

func (NullableSecretBagWritableAllOf) Get

func (NullableSecretBagWritableAllOf) IsSet

func (NullableSecretBagWritableAllOf) MarshalJSON

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

func (*NullableSecretBagWritableAllOf) Set

func (*NullableSecretBagWritableAllOf) UnmarshalJSON

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

func (*NullableSecretBagWritableAllOf) Unset

func (v *NullableSecretBagWritableAllOf) Unset()

type NullableSecretDense

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

func NewNullableSecretDense

func NewNullableSecretDense(val *SecretDense) *NullableSecretDense

func (NullableSecretDense) Get

func (NullableSecretDense) IsSet

func (v NullableSecretDense) IsSet() bool

func (NullableSecretDense) MarshalJSON

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

func (*NullableSecretDense) Set

func (v *NullableSecretDense) Set(val *SecretDense)

func (*NullableSecretDense) UnmarshalJSON

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

func (*NullableSecretDense) Unset

func (v *NullableSecretDense) Unset()

type NullableSecretDenseAllOf

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

func NewNullableSecretDenseAllOf

func NewNullableSecretDenseAllOf(val *SecretDenseAllOf) *NullableSecretDenseAllOf

func (NullableSecretDenseAllOf) Get

func (NullableSecretDenseAllOf) IsSet

func (v NullableSecretDenseAllOf) IsSet() bool

func (NullableSecretDenseAllOf) MarshalJSON

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

func (*NullableSecretDenseAllOf) Set

func (*NullableSecretDenseAllOf) UnmarshalJSON

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

func (*NullableSecretDenseAllOf) Unset

func (v *NullableSecretDenseAllOf) Unset()

type NullableSecretFolderWritable

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

func NewNullableSecretFolderWritable

func NewNullableSecretFolderWritable(val *SecretFolderWritable) *NullableSecretFolderWritable

func (NullableSecretFolderWritable) Get

func (NullableSecretFolderWritable) IsSet

func (NullableSecretFolderWritable) MarshalJSON

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

func (*NullableSecretFolderWritable) Set

func (*NullableSecretFolderWritable) UnmarshalJSON

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

func (*NullableSecretFolderWritable) Unset

func (v *NullableSecretFolderWritable) Unset()

type NullableSecretList

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

func NewNullableSecretList

func NewNullableSecretList(val *SecretList) *NullableSecretList

func (NullableSecretList) Get

func (v NullableSecretList) Get() *SecretList

func (NullableSecretList) IsSet

func (v NullableSecretList) IsSet() bool

func (NullableSecretList) MarshalJSON

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

func (*NullableSecretList) Set

func (v *NullableSecretList) Set(val *SecretList)

func (*NullableSecretList) UnmarshalJSON

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

func (*NullableSecretList) Unset

func (v *NullableSecretList) Unset()

type NullableSecretListAllOf

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

func NewNullableSecretListAllOf

func NewNullableSecretListAllOf(val *SecretListAllOf) *NullableSecretListAllOf

func (NullableSecretListAllOf) Get

func (NullableSecretListAllOf) IsSet

func (v NullableSecretListAllOf) IsSet() bool

func (NullableSecretListAllOf) MarshalJSON

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

func (*NullableSecretListAllOf) Set

func (*NullableSecretListAllOf) UnmarshalJSON

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

func (*NullableSecretListAllOf) Unset

func (v *NullableSecretListAllOf) Unset()

type NullableSecretPatchable

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

func NewNullableSecretPatchable

func NewNullableSecretPatchable(val *SecretPatchable) *NullableSecretPatchable

func (NullableSecretPatchable) Get

func (NullableSecretPatchable) IsSet

func (v NullableSecretPatchable) IsSet() bool

func (NullableSecretPatchable) MarshalJSON

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

func (*NullableSecretPatchable) Set

func (*NullableSecretPatchable) UnmarshalJSON

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

func (*NullableSecretPatchable) Unset

func (v *NullableSecretPatchable) Unset()

type NullableSecretSparse

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

func NewNullableSecretSparse

func NewNullableSecretSparse(val *SecretSparse) *NullableSecretSparse

func (NullableSecretSparse) Get

func (NullableSecretSparse) IsSet

func (v NullableSecretSparse) IsSet() bool

func (NullableSecretSparse) MarshalJSON

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

func (*NullableSecretSparse) Set

func (v *NullableSecretSparse) Set(val *SecretSparse)

func (*NullableSecretSparse) UnmarshalJSON

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

func (*NullableSecretSparse) Unset

func (v *NullableSecretSparse) Unset()

type NullableSecretTextPatchable

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

func NewNullableSecretTextPatchable

func NewNullableSecretTextPatchable(val *SecretTextPatchable) *NullableSecretTextPatchable

func (NullableSecretTextPatchable) Get

func (NullableSecretTextPatchable) IsSet

func (NullableSecretTextPatchable) MarshalJSON

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

func (*NullableSecretTextPatchable) Set

func (*NullableSecretTextPatchable) UnmarshalJSON

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

func (*NullableSecretTextPatchable) Unset

func (v *NullableSecretTextPatchable) Unset()

type NullableSecretTextWritable

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

func NewNullableSecretTextWritable

func NewNullableSecretTextWritable(val *SecretTextWritable) *NullableSecretTextWritable

func (NullableSecretTextWritable) Get

func (NullableSecretTextWritable) IsSet

func (v NullableSecretTextWritable) IsSet() bool

func (NullableSecretTextWritable) MarshalJSON

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

func (*NullableSecretTextWritable) Set

func (*NullableSecretTextWritable) UnmarshalJSON

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

func (*NullableSecretTextWritable) Unset

func (v *NullableSecretTextWritable) Unset()

type NullableSecretTextWritableAllOf

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

func (NullableSecretTextWritableAllOf) Get

func (NullableSecretTextWritableAllOf) IsSet

func (NullableSecretTextWritableAllOf) MarshalJSON

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

func (*NullableSecretTextWritableAllOf) Set

func (*NullableSecretTextWritableAllOf) UnmarshalJSON

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

func (*NullableSecretTextWritableAllOf) Unset

type NullableSecretWritable

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

func NewNullableSecretWritable

func NewNullableSecretWritable(val *SecretWritable) *NullableSecretWritable

func (NullableSecretWritable) Get

func (NullableSecretWritable) IsSet

func (v NullableSecretWritable) IsSet() bool

func (NullableSecretWritable) MarshalJSON

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

func (*NullableSecretWritable) Set

func (*NullableSecretWritable) UnmarshalJSON

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

func (*NullableSecretWritable) Unset

func (v *NullableSecretWritable) Unset()

type NullableSecrettypes

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

func NewNullableSecrettypes

func NewNullableSecrettypes(val *Secrettypes) *NullableSecrettypes

func (NullableSecrettypes) Get

func (NullableSecrettypes) IsSet

func (v NullableSecrettypes) IsSet() bool

func (NullableSecrettypes) MarshalJSON

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

func (*NullableSecrettypes) Set

func (v *NullableSecrettypes) Set(val *Secrettypes)

func (*NullableSecrettypes) UnmarshalJSON

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

func (*NullableSecrettypes) Unset

func (v *NullableSecrettypes) 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 PrivilegedBagData

type PrivilegedBagData struct {
	PrivilegedData
	// The privileged data in a secret bag. Required for vault and modify operations.
	Data                 map[string]string `json:"data"`
	AdditionalProperties map[string]interface{}
}

PrivilegedBagData struct for PrivilegedBagData

func NewPrivilegedBagData

func NewPrivilegedBagData(data map[string]string, type_ Secrettypes) *PrivilegedBagData

NewPrivilegedBagData instantiates a new PrivilegedBagData 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 NewPrivilegedBagDataWithDefaults

func NewPrivilegedBagDataWithDefaults() *PrivilegedBagData

NewPrivilegedBagDataWithDefaults instantiates a new PrivilegedBagData 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 (*PrivilegedBagData) GetData

func (o *PrivilegedBagData) GetData() map[string]string

GetData returns the Data field value

func (*PrivilegedBagData) GetDataOk

func (o *PrivilegedBagData) GetDataOk() (*map[string]string, bool)

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

func (PrivilegedBagData) MarshalJSON

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

func (*PrivilegedBagData) SetData

func (o *PrivilegedBagData) SetData(v map[string]string)

SetData sets field value

func (*PrivilegedBagData) UnmarshalJSON

func (o *PrivilegedBagData) UnmarshalJSON(bytes []byte) (err error)

type PrivilegedBagDataAllOf

type PrivilegedBagDataAllOf struct {
	// The privileged data in a secret bag. Required for vault and modify operations.
	Data                 *map[string]string `json:"data,omitempty"`
	AdditionalProperties map[string]interface{}
}

PrivilegedBagDataAllOf struct for PrivilegedBagDataAllOf

func NewPrivilegedBagDataAllOf

func NewPrivilegedBagDataAllOf() *PrivilegedBagDataAllOf

NewPrivilegedBagDataAllOf instantiates a new PrivilegedBagDataAllOf 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 NewPrivilegedBagDataAllOfWithDefaults

func NewPrivilegedBagDataAllOfWithDefaults() *PrivilegedBagDataAllOf

NewPrivilegedBagDataAllOfWithDefaults instantiates a new PrivilegedBagDataAllOf 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 (*PrivilegedBagDataAllOf) GetData

func (o *PrivilegedBagDataAllOf) GetData() map[string]string

GetData returns the Data field value if set, zero value otherwise.

func (*PrivilegedBagDataAllOf) GetDataOk

func (o *PrivilegedBagDataAllOf) GetDataOk() (*map[string]string, bool)

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

func (*PrivilegedBagDataAllOf) HasData

func (o *PrivilegedBagDataAllOf) HasData() bool

HasData returns a boolean if a field has been set.

func (PrivilegedBagDataAllOf) MarshalJSON

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

func (*PrivilegedBagDataAllOf) SetData

func (o *PrivilegedBagDataAllOf) SetData(v map[string]string)

SetData gets a reference to the given map[string]string and assigns it to the Data field.

func (*PrivilegedBagDataAllOf) UnmarshalJSON

func (o *PrivilegedBagDataAllOf) UnmarshalJSON(bytes []byte) (err error)

type PrivilegedData

type PrivilegedData struct {
	Type                 Secrettypes `json:"type"`
	AdditionalProperties map[string]interface{}
}

PrivilegedData struct for PrivilegedData

func NewPrivilegedData

func NewPrivilegedData(type_ Secrettypes) *PrivilegedData

NewPrivilegedData instantiates a new PrivilegedData 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 NewPrivilegedDataWithDefaults

func NewPrivilegedDataWithDefaults() *PrivilegedData

NewPrivilegedDataWithDefaults instantiates a new PrivilegedData 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 (*PrivilegedData) GetType

func (o *PrivilegedData) GetType() Secrettypes

GetType returns the Type field value

func (*PrivilegedData) GetTypeOk

func (o *PrivilegedData) GetTypeOk() (*Secrettypes, bool)

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

func (PrivilegedData) MarshalJSON

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

func (*PrivilegedData) SetType

func (o *PrivilegedData) SetType(v Secrettypes)

SetType sets field value

func (*PrivilegedData) UnmarshalJSON

func (o *PrivilegedData) UnmarshalJSON(bytes []byte) (err error)

type PrivilegedTextData

type PrivilegedTextData struct {
	PrivilegedData
	// The privileged data in a text secret. Required for vault and modify operations.
	Data                 string `json:"data"`
	AdditionalProperties map[string]interface{}
}

PrivilegedTextData struct for PrivilegedTextData

func NewPrivilegedTextData

func NewPrivilegedTextData(data string, type_ Secrettypes) *PrivilegedTextData

NewPrivilegedTextData instantiates a new PrivilegedTextData 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 NewPrivilegedTextDataWithDefaults

func NewPrivilegedTextDataWithDefaults() *PrivilegedTextData

NewPrivilegedTextDataWithDefaults instantiates a new PrivilegedTextData 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 (*PrivilegedTextData) GetData

func (o *PrivilegedTextData) GetData() string

GetData returns the Data field value

func (*PrivilegedTextData) GetDataOk

func (o *PrivilegedTextData) GetDataOk() (*string, bool)

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

func (PrivilegedTextData) MarshalJSON

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

func (*PrivilegedTextData) SetData

func (o *PrivilegedTextData) SetData(v string)

SetData sets field value

func (*PrivilegedTextData) UnmarshalJSON

func (o *PrivilegedTextData) UnmarshalJSON(bytes []byte) (err error)

type PrivilegedTextDataAllOf

type PrivilegedTextDataAllOf struct {
	// The privileged data in a text secret. Required for vault and modify operations.
	Data                 *string `json:"data,omitempty"`
	AdditionalProperties map[string]interface{}
}

PrivilegedTextDataAllOf struct for PrivilegedTextDataAllOf

func NewPrivilegedTextDataAllOf

func NewPrivilegedTextDataAllOf() *PrivilegedTextDataAllOf

NewPrivilegedTextDataAllOf instantiates a new PrivilegedTextDataAllOf 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 NewPrivilegedTextDataAllOfWithDefaults

func NewPrivilegedTextDataAllOfWithDefaults() *PrivilegedTextDataAllOf

NewPrivilegedTextDataAllOfWithDefaults instantiates a new PrivilegedTextDataAllOf 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 (*PrivilegedTextDataAllOf) GetData

func (o *PrivilegedTextDataAllOf) GetData() string

GetData returns the Data field value if set, zero value otherwise.

func (*PrivilegedTextDataAllOf) GetDataOk

func (o *PrivilegedTextDataAllOf) GetDataOk() (*string, bool)

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

func (*PrivilegedTextDataAllOf) HasData

func (o *PrivilegedTextDataAllOf) HasData() bool

HasData returns a boolean if a field has been set.

func (PrivilegedTextDataAllOf) MarshalJSON

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

func (*PrivilegedTextDataAllOf) SetData

func (o *PrivilegedTextDataAllOf) SetData(v string)

SetData gets a reference to the given string and assigns it to the Data field.

func (*PrivilegedTextDataAllOf) UnmarshalJSON

func (o *PrivilegedTextDataAllOf) UnmarshalJSON(bytes []byte) (err error)

type SecretBagPatchable

type SecretBagPatchable struct {
	SecretPatchable
	// The privileged data in a secret bag. Required for vault and modify operations.
	Data                 map[string]string `json:"data"`
	AdditionalProperties map[string]interface{}
}

SecretBagPatchable struct for SecretBagPatchable

func NewSecretBagPatchable

func NewSecretBagPatchable(data map[string]string, type_ Secrettypes) *SecretBagPatchable

NewSecretBagPatchable instantiates a new SecretBagPatchable 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 NewSecretBagPatchableWithDefaults

func NewSecretBagPatchableWithDefaults() *SecretBagPatchable

NewSecretBagPatchableWithDefaults instantiates a new SecretBagPatchable 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 (*SecretBagPatchable) GetData

func (o *SecretBagPatchable) GetData() map[string]string

GetData returns the Data field value

func (*SecretBagPatchable) GetDataOk

func (o *SecretBagPatchable) GetDataOk() (*map[string]string, bool)

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

func (SecretBagPatchable) MarshalJSON

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

func (*SecretBagPatchable) SetData

func (o *SecretBagPatchable) SetData(v map[string]string)

SetData sets field value

func (*SecretBagPatchable) UnmarshalJSON

func (o *SecretBagPatchable) UnmarshalJSON(bytes []byte) (err error)

type SecretBagWritable

type SecretBagWritable struct {
	SecretWritable
	// The privileged data in a secret bag. Required for vault and modify operations.
	Data                 map[string]string `json:"data"`
	AdditionalProperties map[string]interface{}
}

SecretBagWritable Useful model for determining what attributes of a secret bag are writable. Note that semantics of POST / PUT / PATCH apply differently.

func NewSecretBagWritable

func NewSecretBagWritable(data map[string]string, type_ Secrettypes, name string) *SecretBagWritable

NewSecretBagWritable instantiates a new SecretBagWritable 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 NewSecretBagWritableWithDefaults

func NewSecretBagWritableWithDefaults() *SecretBagWritable

NewSecretBagWritableWithDefaults instantiates a new SecretBagWritable 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 (*SecretBagWritable) GetData

func (o *SecretBagWritable) GetData() map[string]string

GetData returns the Data field value

func (*SecretBagWritable) GetDataOk

func (o *SecretBagWritable) GetDataOk() (*map[string]string, bool)

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

func (SecretBagWritable) MarshalJSON

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

func (*SecretBagWritable) SetData

func (o *SecretBagWritable) SetData(v map[string]string)

SetData sets field value

func (*SecretBagWritable) UnmarshalJSON

func (o *SecretBagWritable) UnmarshalJSON(bytes []byte) (err error)

type SecretBagWritableAllOf

type SecretBagWritableAllOf struct {
	// The privileged data in a secret bag. Required for vault and modify operations.
	Data                 map[string]string `json:"data"`
	AdditionalProperties map[string]interface{}
}

SecretBagWritableAllOf struct for SecretBagWritableAllOf

func NewSecretBagWritableAllOf

func NewSecretBagWritableAllOf(data map[string]string) *SecretBagWritableAllOf

NewSecretBagWritableAllOf instantiates a new SecretBagWritableAllOf 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 NewSecretBagWritableAllOfWithDefaults

func NewSecretBagWritableAllOfWithDefaults() *SecretBagWritableAllOf

NewSecretBagWritableAllOfWithDefaults instantiates a new SecretBagWritableAllOf 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 (*SecretBagWritableAllOf) GetData

func (o *SecretBagWritableAllOf) GetData() map[string]string

GetData returns the Data field value

func (*SecretBagWritableAllOf) GetDataOk

func (o *SecretBagWritableAllOf) GetDataOk() (*map[string]string, bool)

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

func (SecretBagWritableAllOf) MarshalJSON

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

func (*SecretBagWritableAllOf) SetData

func (o *SecretBagWritableAllOf) SetData(v map[string]string)

SetData sets field value

func (*SecretBagWritableAllOf) UnmarshalJSON

func (o *SecretBagWritableAllOf) UnmarshalJSON(bytes []byte) (err error)

type SecretDense

type SecretDense struct {
	SecretWritable
	Meta                 Metadata `json:"meta"`
	AdditionalProperties map[string]interface{}
}

SecretDense struct for SecretDense

func NewSecretDense

func NewSecretDense(meta Metadata, type_ Secrettypes, name string) *SecretDense

NewSecretDense instantiates a new SecretDense 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 NewSecretDenseWithDefaults

func NewSecretDenseWithDefaults() *SecretDense

NewSecretDenseWithDefaults instantiates a new SecretDense 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 (*SecretDense) GetMeta

func (o *SecretDense) GetMeta() Metadata

GetMeta returns the Meta field value

func (*SecretDense) GetMetaOk

func (o *SecretDense) GetMetaOk() (*Metadata, bool)

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

func (SecretDense) MarshalJSON

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

func (*SecretDense) SetMeta

func (o *SecretDense) SetMeta(v Metadata)

SetMeta sets field value

func (*SecretDense) UnmarshalJSON

func (o *SecretDense) UnmarshalJSON(bytes []byte) (err error)

type SecretDenseAllOf

type SecretDenseAllOf struct {
	Meta                 Metadata `json:"meta"`
	AdditionalProperties map[string]interface{}
}

SecretDenseAllOf struct for SecretDenseAllOf

func NewSecretDenseAllOf

func NewSecretDenseAllOf(meta Metadata) *SecretDenseAllOf

NewSecretDenseAllOf instantiates a new SecretDenseAllOf 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 NewSecretDenseAllOfWithDefaults

func NewSecretDenseAllOfWithDefaults() *SecretDenseAllOf

NewSecretDenseAllOfWithDefaults instantiates a new SecretDenseAllOf 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 (*SecretDenseAllOf) GetMeta

func (o *SecretDenseAllOf) GetMeta() Metadata

GetMeta returns the Meta field value

func (*SecretDenseAllOf) GetMetaOk

func (o *SecretDenseAllOf) GetMetaOk() (*Metadata, bool)

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

func (SecretDenseAllOf) MarshalJSON

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

func (*SecretDenseAllOf) SetMeta

func (o *SecretDenseAllOf) SetMeta(v Metadata)

SetMeta sets field value

func (*SecretDenseAllOf) UnmarshalJSON

func (o *SecretDenseAllOf) UnmarshalJSON(bytes []byte) (err error)

type SecretFolderWritable

type SecretFolderWritable struct {
	SecretWritable
	AdditionalProperties map[string]interface{}
}

SecretFolderWritable struct for SecretFolderWritable

func NewSecretFolderWritable

func NewSecretFolderWritable(type_ Secrettypes, name string) *SecretFolderWritable

NewSecretFolderWritable instantiates a new SecretFolderWritable 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 NewSecretFolderWritableWithDefaults

func NewSecretFolderWritableWithDefaults() *SecretFolderWritable

NewSecretFolderWritableWithDefaults instantiates a new SecretFolderWritable 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 (SecretFolderWritable) MarshalJSON

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

func (*SecretFolderWritable) UnmarshalJSON

func (o *SecretFolderWritable) UnmarshalJSON(bytes []byte) (err error)

type SecretList

type SecretList struct {
	Items []SecretSparse `json:"items"`
	// What kind of resource does this list contain?
	Object string `json:"object"`
	// Url of next page of items in list.
	NextUrl NullableString `json:"next_url"`
	// Url of previous page of items in list.
	PreviousUrl          NullableString `json:"previous_url"`
	AdditionalProperties map[string]interface{}
}

SecretList struct for SecretList

func NewSecretList

func NewSecretList(items []SecretSparse, object string, nextUrl NullableString, previousUrl NullableString) *SecretList

NewSecretList instantiates a new SecretList 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 NewSecretListWithDefaults

func NewSecretListWithDefaults() *SecretList

NewSecretListWithDefaults instantiates a new SecretList 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 (*SecretList) GetItems

func (o *SecretList) GetItems() []SecretSparse

GetItems returns the Items field value

func (*SecretList) GetItemsOk

func (o *SecretList) GetItemsOk() (*[]SecretSparse, bool)

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

func (*SecretList) GetNextUrl

func (o *SecretList) GetNextUrl() string

GetNextUrl returns the NextUrl field value If the value is explicit nil, the zero value for string will be returned

func (*SecretList) GetNextUrlOk

func (o *SecretList) GetNextUrlOk() (*string, bool)

GetNextUrlOk returns a tuple with the NextUrl field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*SecretList) GetObject

func (o *SecretList) GetObject() string

GetObject returns the Object field value

func (*SecretList) GetObjectOk

func (o *SecretList) GetObjectOk() (*string, bool)

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

func (*SecretList) GetPreviousUrl

func (o *SecretList) GetPreviousUrl() string

GetPreviousUrl returns the PreviousUrl field value If the value is explicit nil, the zero value for string will be returned

func (*SecretList) GetPreviousUrlOk

func (o *SecretList) GetPreviousUrlOk() (*string, bool)

GetPreviousUrlOk returns a tuple with the PreviousUrl field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (SecretList) MarshalJSON

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

func (*SecretList) SetItems

func (o *SecretList) SetItems(v []SecretSparse)

SetItems sets field value

func (*SecretList) SetNextUrl

func (o *SecretList) SetNextUrl(v string)

SetNextUrl sets field value

func (*SecretList) SetObject

func (o *SecretList) SetObject(v string)

SetObject sets field value

func (*SecretList) SetPreviousUrl

func (o *SecretList) SetPreviousUrl(v string)

SetPreviousUrl sets field value

func (*SecretList) UnmarshalJSON

func (o *SecretList) UnmarshalJSON(bytes []byte) (err error)

type SecretListAllOf

type SecretListAllOf struct {
	Items                []SecretSparse `json:"items"`
	AdditionalProperties map[string]interface{}
}

SecretListAllOf struct for SecretListAllOf

func NewSecretListAllOf

func NewSecretListAllOf(items []SecretSparse) *SecretListAllOf

NewSecretListAllOf instantiates a new SecretListAllOf 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 NewSecretListAllOfWithDefaults

func NewSecretListAllOfWithDefaults() *SecretListAllOf

NewSecretListAllOfWithDefaults instantiates a new SecretListAllOf 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 (*SecretListAllOf) GetItems

func (o *SecretListAllOf) GetItems() []SecretSparse

GetItems returns the Items field value

func (*SecretListAllOf) GetItemsOk

func (o *SecretListAllOf) GetItemsOk() (*[]SecretSparse, bool)

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

func (SecretListAllOf) MarshalJSON

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

func (*SecretListAllOf) SetItems

func (o *SecretListAllOf) SetItems(v []SecretSparse)

SetItems sets field value

func (*SecretListAllOf) UnmarshalJSON

func (o *SecretListAllOf) UnmarshalJSON(bytes []byte) (err error)

type SecretMarshaler

type SecretMarshaler interface {
	MarshalJSON() ([]byte, error)
	UnmarshalJSON(bytes []byte) (err error)
}

SecretMarshaler defines the interface that all SecretXXXWritable must support objects must support

type SecretPatchable

type SecretPatchable struct {
	Type                 Secrettypes `json:"type"`
	AdditionalProperties map[string]interface{}
}

SecretPatchable struct for SecretPatchable

func NewSecretPatchable

func NewSecretPatchable(type_ Secrettypes) *SecretPatchable

NewSecretPatchable instantiates a new SecretPatchable 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 NewSecretPatchableWithDefaults

func NewSecretPatchableWithDefaults() *SecretPatchable

NewSecretPatchableWithDefaults instantiates a new SecretPatchable 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 (*SecretPatchable) GetType

func (o *SecretPatchable) GetType() Secrettypes

GetType returns the Type field value

func (*SecretPatchable) GetTypeOk

func (o *SecretPatchable) GetTypeOk() (*Secrettypes, bool)

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

func (SecretPatchable) MarshalJSON

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

func (*SecretPatchable) SetType

func (o *SecretPatchable) SetType(v Secrettypes)

SetType sets field value

func (*SecretPatchable) UnmarshalJSON

func (o *SecretPatchable) UnmarshalJSON(bytes []byte) (err error)

type SecretSparse

type SecretSparse struct {
	// Unique ID, generated upon creation
	Id string `json:"id"`
	// Names of secrets may contain a alphanumeric characters separated by / to indicate folder membership. Vaulting a bag or text secret within folders will implicitely create the folders.
	Name                 string `json:"name"`
	AdditionalProperties map[string]interface{}
}

SecretSparse struct for SecretSparse

func NewSecretSparse

func NewSecretSparse(id string, name string) *SecretSparse

NewSecretSparse instantiates a new SecretSparse 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 NewSecretSparseWithDefaults

func NewSecretSparseWithDefaults() *SecretSparse

NewSecretSparseWithDefaults instantiates a new SecretSparse 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 (*SecretSparse) GetId

func (o *SecretSparse) GetId() string

GetId returns the Id field value

func (*SecretSparse) GetIdOk

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

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

func (*SecretSparse) GetName

func (o *SecretSparse) GetName() string

GetName returns the Name field value

func (*SecretSparse) GetNameOk

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

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

func (SecretSparse) MarshalJSON

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

func (*SecretSparse) SetId

func (o *SecretSparse) SetId(v string)

SetId sets field value

func (*SecretSparse) SetName

func (o *SecretSparse) SetName(v string)

SetName sets field value

func (*SecretSparse) UnmarshalJSON

func (o *SecretSparse) UnmarshalJSON(bytes []byte) (err error)

type SecretTextPatchable

type SecretTextPatchable struct {
	SecretPatchable
	// The privileged data in a text secret. Required for vault and modify operations.
	Data                 string `json:"data"`
	AdditionalProperties map[string]interface{}
}

SecretTextPatchable struct for SecretTextPatchable

func NewSecretTextPatchable

func NewSecretTextPatchable(data string, type_ Secrettypes) *SecretTextPatchable

NewSecretTextPatchable instantiates a new SecretTextPatchable 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 NewSecretTextPatchableWithDefaults

func NewSecretTextPatchableWithDefaults() *SecretTextPatchable

NewSecretTextPatchableWithDefaults instantiates a new SecretTextPatchable 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 (*SecretTextPatchable) GetData

func (o *SecretTextPatchable) GetData() string

GetData returns the Data field value

func (*SecretTextPatchable) GetDataOk

func (o *SecretTextPatchable) GetDataOk() (*string, bool)

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

func (SecretTextPatchable) MarshalJSON

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

func (*SecretTextPatchable) SetData

func (o *SecretTextPatchable) SetData(v string)

SetData sets field value

func (*SecretTextPatchable) UnmarshalJSON

func (o *SecretTextPatchable) UnmarshalJSON(bytes []byte) (err error)

type SecretTextWritable

type SecretTextWritable struct {
	SecretWritable
	// The privileged data in a text secret. Required for vault and modify operations.
	Data                 string `json:"data"`
	AdditionalProperties map[string]interface{}
}

SecretTextWritable struct for SecretTextWritable

func NewSecretTextWritable

func NewSecretTextWritable(data string, type_ Secrettypes, name string) *SecretTextWritable

NewSecretTextWritable instantiates a new SecretTextWritable 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 NewSecretTextWritableWithDefaults

func NewSecretTextWritableWithDefaults() *SecretTextWritable

NewSecretTextWritableWithDefaults instantiates a new SecretTextWritable 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 (*SecretTextWritable) GetData

func (o *SecretTextWritable) GetData() string

GetData returns the Data field value

func (*SecretTextWritable) GetDataOk

func (o *SecretTextWritable) GetDataOk() (*string, bool)

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

func (SecretTextWritable) MarshalJSON

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

func (*SecretTextWritable) SetData

func (o *SecretTextWritable) SetData(v string)

SetData sets field value

func (*SecretTextWritable) UnmarshalJSON

func (o *SecretTextWritable) UnmarshalJSON(bytes []byte) (err error)

type SecretTextWritableAllOf

type SecretTextWritableAllOf struct {
	// The privileged data in a text secret. Required for vault and modify operations.
	Data                 string `json:"data"`
	AdditionalProperties map[string]interface{}
}

SecretTextWritableAllOf struct for SecretTextWritableAllOf

func NewSecretTextWritableAllOf

func NewSecretTextWritableAllOf(data string) *SecretTextWritableAllOf

NewSecretTextWritableAllOf instantiates a new SecretTextWritableAllOf 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 NewSecretTextWritableAllOfWithDefaults

func NewSecretTextWritableAllOfWithDefaults() *SecretTextWritableAllOf

NewSecretTextWritableAllOfWithDefaults instantiates a new SecretTextWritableAllOf 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 (*SecretTextWritableAllOf) GetData

func (o *SecretTextWritableAllOf) GetData() string

GetData returns the Data field value

func (*SecretTextWritableAllOf) GetDataOk

func (o *SecretTextWritableAllOf) GetDataOk() (*string, bool)

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

func (SecretTextWritableAllOf) MarshalJSON

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

func (*SecretTextWritableAllOf) SetData

func (o *SecretTextWritableAllOf) SetData(v string)

SetData sets field value

func (*SecretTextWritableAllOf) UnmarshalJSON

func (o *SecretTextWritableAllOf) UnmarshalJSON(bytes []byte) (err error)

type SecretWritable

type SecretWritable struct {
	Type Secrettypes `json:"type"`
	// Names of secrets may contain a alphanumeric characters separated by / to indicate folder membership. Vaulting a bag or text secret within folders will implicitely create the folders.
	Name                 string `json:"name"`
	AdditionalProperties map[string]interface{}
}

SecretWritable struct for SecretWritable

func NewSecretWritable

func NewSecretWritable(type_ Secrettypes, name string) *SecretWritable

NewSecretWritable instantiates a new SecretWritable 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 NewSecretWritableWithDefaults

func NewSecretWritableWithDefaults() *SecretWritable

NewSecretWritableWithDefaults instantiates a new SecretWritable 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 (*SecretWritable) GetName

func (o *SecretWritable) GetName() string

GetName returns the Name field value

func (*SecretWritable) GetNameOk

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

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

func (*SecretWritable) GetType

func (o *SecretWritable) GetType() Secrettypes

GetType returns the Type field value

func (*SecretWritable) GetTypeOk

func (o *SecretWritable) GetTypeOk() (*Secrettypes, bool)

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

func (SecretWritable) MarshalJSON

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

func (*SecretWritable) SetName

func (o *SecretWritable) SetName(v string)

SetName sets field value

func (*SecretWritable) SetType

func (o *SecretWritable) SetType(v Secrettypes)

SetType sets field value

func (*SecretWritable) UnmarshalJSON

func (o *SecretWritable) UnmarshalJSON(bytes []byte) (err error)

type SecretsApi

type SecretsApi interface {

	/*
	 * Delete Delete a secret
	 * Deletes a secret from the vault.

	 * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
	 * @param nameOrId The name or id of a secret. Note a name can be a path, and contained / characters should not be url encoded.
	 * @return ApiDeleteRequest
	 */
	Delete(ctx _context.Context, nameOrId string) ApiDeleteRequest

	/*
	 * DeleteExecute executes the request
	 */
	DeleteExecute(r ApiDeleteRequest) (*_nethttp.Response, error)

	/*
			 * Get Get secrets
			 * Gets a secret depending on the `{name}` path parameter.
		Does not include privileged data, see `/privilegeddata/secrets/{nameOrId}` path to retrieve privileged data.
		If {name} is the name of a folder of secrets, the results will only contain items that are direct descendants of the folder.

			 * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
			 * @param nameOrId The name or id of a secret. Note a name can be a path, and contained / characters should not be url encoded.
			 * @return ApiGetRequest
	*/
	Get(ctx _context.Context, nameOrId string) ApiGetRequest

	/*
	 * GetExecute executes the request
	 * @return SecretDense
	 */
	GetExecute(r ApiGetRequest) (SecretDense, *_nethttp.Response, error)

	/*
			 * Modify Modify a secret
			 * Modify a secret.

		Currently supports modifying a secret's privileged data.

		Note for a `bag` type secret, data is modified in its entirety.

			 * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
			 * @param nameOrId The name or id of a secret. Note a name can be a path, and contained / characters should not be url encoded.
			 * @return ApiModifyRequest
	*/
	Modify(ctx _context.Context, nameOrId string) ApiModifyRequest

	/*
	 * ModifyExecute executes the request
	 * @return SecretDense
	 */
	ModifyExecute(r ApiModifyRequest) (SecretDense, *_nethttp.Response, error)

	/*
			 * Retrieve Retrieve privileged data
			 * Retrieves the privileged data stored in the secret.

		## Required Roles
		- TODO

		## Required ACLs
		- retrieve
		- read

			 * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
			 * @param nameOrId The name or id of a secret. Note a name can be a path, and contained / characters should not be url encoded.
			 * @return ApiRetrieveRequest
	*/
	Retrieve(ctx _context.Context, nameOrId string) ApiRetrieveRequest

	/*
	 * RetrieveExecute executes the request
	 * @return PrivilegedData
	 */
	RetrieveExecute(r ApiRetrieveRequest) (PrivilegedData, *_nethttp.Response, error)

	/*
	 * SecretsCreate Create a secret
	 * Creates a secret

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

	/*
	 * SecretsCreateExecute executes the request
	 * @return SecretDense
	 */
	SecretsCreateExecute(r ApiSecretsCreateRequest) (SecretDense, *_nethttp.Response, error)

	/*
			 * SecretsList List secrets
			 * Returns a list of sparse secrets.

		Optionally use the limit, orderBy, filter or search parameters to control the results.

		`Note` all responses are paged by default. The response contains a `previous_url` and `next_url` to access the next or previous page of the list.

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

	/*
	 * SecretsListExecute executes the request
	 * @return SecretList
	 */
	SecretsListExecute(r ApiSecretsListRequest) (SecretList, *_nethttp.Response, error)
}

type SecretsApiService

type SecretsApiService service

SecretsApiService SecretsApi service

func (*SecretsApiService) Delete

func (a *SecretsApiService) Delete(ctx _context.Context, nameOrId string) ApiDeleteRequest

* Delete Delete a secret * Deletes a secret from the vault.

* @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param nameOrId The name or id of a secret. Note a name can be a path, and contained / characters should not be url encoded. * @return ApiDeleteRequest

func (*SecretsApiService) DeleteExecute

func (a *SecretsApiService) DeleteExecute(r ApiDeleteRequest) (*_nethttp.Response, error)

* Execute executes the request

func (*SecretsApiService) Get

func (a *SecretsApiService) Get(ctx _context.Context, nameOrId string) ApiGetRequest
  • Get Get secrets
  • Gets a secret depending on the `{name}` path parameter.

Does not include privileged data, see `/privilegeddata/secrets/{nameOrId}` path to retrieve privileged data. If {name} is the name of a folder of secrets, the results will only contain items that are direct descendants of the folder.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param nameOrId The name or id of a secret. Note a name can be a path, and contained / characters should not be url encoded.
  • @return ApiGetRequest

func (*SecretsApiService) GetExecute

* Execute executes the request * @return SecretDense

func (*SecretsApiService) Modify

func (a *SecretsApiService) Modify(ctx _context.Context, nameOrId string) ApiModifyRequest
  • Modify Modify a secret
  • Modify a secret.

Currently supports modifying a secret's privileged data.

Note for a `bag` type secret, data is modified in its entirety.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param nameOrId The name or id of a secret. Note a name can be a path, and contained / characters should not be url encoded.
  • @return ApiModifyRequest

func (*SecretsApiService) ModifyExecute

* Execute executes the request * @return SecretDense

func (*SecretsApiService) Retrieve

func (a *SecretsApiService) Retrieve(ctx _context.Context, nameOrId string) ApiRetrieveRequest
  • Retrieve Retrieve privileged data
  • Retrieves the privileged data stored in the secret.

## Required Roles - TODO

## Required ACLs - retrieve - read

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param nameOrId The name or id of a secret. Note a name can be a path, and contained / characters should not be url encoded.
  • @return ApiRetrieveRequest

func (*SecretsApiService) RetrieveExecute

* Execute executes the request * @return PrivilegedData

func (*SecretsApiService) SecretsCreate

* SecretsCreate Create a secret * Creates a secret

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

func (*SecretsApiService) SecretsCreateExecute

* Execute executes the request * @return SecretDense

func (*SecretsApiService) SecretsList

  • SecretsList List secrets
  • Returns a list of sparse secrets.

Optionally use the limit, orderBy, filter or search parameters to control the results.

`Note` all responses are paged by default. The response contains a `previous_url` and `next_url` to access the next or previous page of the list.

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

func (*SecretsApiService) SecretsListExecute

* Execute executes the request * @return SecretList

type Secrettypes

type Secrettypes string

Secrettypes Secret type is immutable. After initially vaulting a secret its type cannot be changed.

const (
	TEXT     Secrettypes = "text"
	KEYVALUE Secrettypes = "keyvalue"
	FOLDER   Secrettypes = "folder"
)

List of secrettypes

func (Secrettypes) Ptr

func (v Secrettypes) Ptr() *Secrettypes

Ptr returns reference to secrettypes value

func (*Secrettypes) UnmarshalJSON

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

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

Jump to

Keyboard shortcuts

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