GoodMem
ReferenceClient SDKsGo SDKRequests

SpaceCreationRequest

SpaceCreationRequest documentation for Go SDK

Properties

NameTypeDescriptionNotes
NamestringThe desired name for the space. Must be unique within the user's scope.
LabelsPointer to map[string]stringA set of key-value pairs to categorize or tag the space. Used for filtering and organizational purposes.[optional]
SpaceEmbeddersPointer to []SpaceEmbedderConfigList of embedder configurations to associate with this space. Each specifies an embedder ID and retrieval weight.[optional]
PublicReadPointer to NullableBoolIndicates if the space and its memories can be read by unauthenticated users or users other than the owner. Defaults to false.[optional]
OwnerIdPointer to NullableStringOptional owner ID. If not provided, derived from the authentication context. Requires CREATE_SPACE_ANY permission if specified.[optional]
DefaultChunkingConfigPointer to ChunkingConfiguration[optional]

Methods

NewSpaceCreationRequest

func NewSpaceCreationRequest(name string, ) *SpaceCreationRequest

NewSpaceCreationRequest instantiates a new SpaceCreationRequest 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

NewSpaceCreationRequestWithDefaults

func NewSpaceCreationRequestWithDefaults() *SpaceCreationRequest

NewSpaceCreationRequestWithDefaults instantiates a new SpaceCreationRequest 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

GetName

func (o *SpaceCreationRequest) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

GetNameOk

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

GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetName

func (o *SpaceCreationRequest) SetName(v string)

SetName sets Name field to given value.

GetLabels

func (o *SpaceCreationRequest) GetLabels() map[string]string

GetLabels returns the Labels field if non-nil, zero value otherwise.

GetLabelsOk

func (o *SpaceCreationRequest) GetLabelsOk() (*map[string]string, bool)

GetLabelsOk returns a tuple with the Labels field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetLabels

func (o *SpaceCreationRequest) SetLabels(v map[string]string)

SetLabels sets Labels field to given value.

HasLabels

func (o *SpaceCreationRequest) HasLabels() bool

HasLabels returns a boolean if a field has been set.

SetLabelsNil

func (o *SpaceCreationRequest) SetLabelsNil(b bool)

SetLabelsNil sets the value for Labels to be an explicit nil

UnsetLabels

func (o *SpaceCreationRequest) UnsetLabels()

UnsetLabels ensures that no value is present for Labels, not even an explicit nil

GetSpaceEmbedders

func (o *SpaceCreationRequest) GetSpaceEmbedders() []SpaceEmbedderConfig

GetSpaceEmbedders returns the SpaceEmbedders field if non-nil, zero value otherwise.

GetSpaceEmbeddersOk

func (o *SpaceCreationRequest) GetSpaceEmbeddersOk() (*[]SpaceEmbedderConfig, bool)

GetSpaceEmbeddersOk returns a tuple with the SpaceEmbedders field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSpaceEmbedders

func (o *SpaceCreationRequest) SetSpaceEmbedders(v []SpaceEmbedderConfig)

SetSpaceEmbedders sets SpaceEmbedders field to given value.

HasSpaceEmbedders

func (o *SpaceCreationRequest) HasSpaceEmbedders() bool

HasSpaceEmbedders returns a boolean if a field has been set.

SetSpaceEmbeddersNil

func (o *SpaceCreationRequest) SetSpaceEmbeddersNil(b bool)

SetSpaceEmbeddersNil sets the value for SpaceEmbedders to be an explicit nil

UnsetSpaceEmbedders

func (o *SpaceCreationRequest) UnsetSpaceEmbedders()

UnsetSpaceEmbedders ensures that no value is present for SpaceEmbedders, not even an explicit nil

GetPublicRead

func (o *SpaceCreationRequest) GetPublicRead() bool

GetPublicRead returns the PublicRead field if non-nil, zero value otherwise.

GetPublicReadOk

func (o *SpaceCreationRequest) GetPublicReadOk() (*bool, bool)

GetPublicReadOk returns a tuple with the PublicRead field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPublicRead

func (o *SpaceCreationRequest) SetPublicRead(v bool)

SetPublicRead sets PublicRead field to given value.

HasPublicRead

func (o *SpaceCreationRequest) HasPublicRead() bool

HasPublicRead returns a boolean if a field has been set.

SetPublicReadNil

func (o *SpaceCreationRequest) SetPublicReadNil(b bool)

SetPublicReadNil sets the value for PublicRead to be an explicit nil

UnsetPublicRead

func (o *SpaceCreationRequest) UnsetPublicRead()

UnsetPublicRead ensures that no value is present for PublicRead, not even an explicit nil

GetOwnerId

func (o *SpaceCreationRequest) GetOwnerId() string

GetOwnerId returns the OwnerId field if non-nil, zero value otherwise.

GetOwnerIdOk

func (o *SpaceCreationRequest) GetOwnerIdOk() (*string, bool)

GetOwnerIdOk returns a tuple with the OwnerId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetOwnerId

func (o *SpaceCreationRequest) SetOwnerId(v string)

SetOwnerId sets OwnerId field to given value.

HasOwnerId

func (o *SpaceCreationRequest) HasOwnerId() bool

HasOwnerId returns a boolean if a field has been set.

SetOwnerIdNil

func (o *SpaceCreationRequest) SetOwnerIdNil(b bool)

SetOwnerIdNil sets the value for OwnerId to be an explicit nil

UnsetOwnerId

func (o *SpaceCreationRequest) UnsetOwnerId()

UnsetOwnerId ensures that no value is present for OwnerId, not even an explicit nil

GetDefaultChunkingConfig

func (o *SpaceCreationRequest) GetDefaultChunkingConfig() ChunkingConfiguration

GetDefaultChunkingConfig returns the DefaultChunkingConfig field if non-nil, zero value otherwise.

GetDefaultChunkingConfigOk

func (o *SpaceCreationRequest) GetDefaultChunkingConfigOk() (*ChunkingConfiguration, bool)

GetDefaultChunkingConfigOk returns a tuple with the DefaultChunkingConfig field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDefaultChunkingConfig

func (o *SpaceCreationRequest) SetDefaultChunkingConfig(v ChunkingConfiguration)

SetDefaultChunkingConfig sets DefaultChunkingConfig field to given value.

HasDefaultChunkingConfig

func (o *SpaceCreationRequest) HasDefaultChunkingConfig() bool

HasDefaultChunkingConfig returns a boolean if a field has been set.

↑ Back to Go SDK ↑ Back to Go SDK ↑ Back to Go SDK