Space Model
Space Model documentation for Go SDK
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| SpaceId | string | The unique identifier for this space. | |
| Name | string | The name of the space. | |
| Labels | Pointer to map[string]string | Key-value pairs of metadata associated with the space. | [optional] |
| SpaceEmbedders | []SpaceEmbedder | The list of embedders associated with this space. | |
| CreatedAt | int64 | Timestamp when this space was created (milliseconds since epoch). | |
| UpdatedAt | int64 | Timestamp when this space was last updated (milliseconds since epoch). | |
| OwnerId | string | The ID of the user who owns this space. | |
| CreatedById | string | The ID of the user who created this space. | |
| UpdatedById | string | The ID of the user who last updated this space. | |
| PublicRead | bool | Whether this space is publicly readable by all users. | |
| DefaultChunkingConfig | Pointer to ChunkingConfiguration | [optional] |
Methods
NewSpace
func NewSpace(spaceId string, name string, spaceEmbedders []SpaceEmbedder, createdAt int64, updatedAt int64, ownerId string, createdById string, updatedById string, publicRead bool, ) *Space
NewSpace instantiates a new Space 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
NewSpaceWithDefaults
func NewSpaceWithDefaults() *Space
NewSpaceWithDefaults instantiates a new Space 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
GetSpaceId
func (o *Space) GetSpaceId() string
GetSpaceId returns the SpaceId field if non-nil, zero value otherwise.
GetSpaceIdOk
func (o *Space) GetSpaceIdOk() (*string, bool)
GetSpaceIdOk returns a tuple with the SpaceId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetSpaceId
func (o *Space) SetSpaceId(v string)
SetSpaceId sets SpaceId field to given value.
GetName
func (o *Space) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
GetNameOk
func (o *Space) 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 *Space) SetName(v string)
SetName sets Name field to given value.
GetLabels
func (o *Space) GetLabels() map[string]string
GetLabels returns the Labels field if non-nil, zero value otherwise.
GetLabelsOk
func (o *Space) 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 *Space) SetLabels(v map[string]string)
SetLabels sets Labels field to given value.
HasLabels
func (o *Space) HasLabels() bool
HasLabels returns a boolean if a field has been set.
SetLabelsNil
func (o *Space) SetLabelsNil(b bool)
SetLabelsNil sets the value for Labels to be an explicit nil
UnsetLabels
func (o *Space) UnsetLabels()
UnsetLabels ensures that no value is present for Labels, not even an explicit nil
GetSpaceEmbedders
func (o *Space) GetSpaceEmbedders() []SpaceEmbedder
GetSpaceEmbedders returns the SpaceEmbedders field if non-nil, zero value otherwise.
GetSpaceEmbeddersOk
func (o *Space) GetSpaceEmbeddersOk() (*[]SpaceEmbedder, 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 *Space) SetSpaceEmbedders(v []SpaceEmbedder)
SetSpaceEmbedders sets SpaceEmbedders field to given value.
GetCreatedAt
func (o *Space) GetCreatedAt() int64
GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise.
GetCreatedAtOk
func (o *Space) GetCreatedAtOk() (*int64, bool)
GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetCreatedAt
func (o *Space) SetCreatedAt(v int64)
SetCreatedAt sets CreatedAt field to given value.
GetUpdatedAt
func (o *Space) GetUpdatedAt() int64
GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise.
GetUpdatedAtOk
func (o *Space) GetUpdatedAtOk() (*int64, bool)
GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetUpdatedAt
func (o *Space) SetUpdatedAt(v int64)
SetUpdatedAt sets UpdatedAt field to given value.
GetOwnerId
func (o *Space) GetOwnerId() string
GetOwnerId returns the OwnerId field if non-nil, zero value otherwise.
GetOwnerIdOk
func (o *Space) 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 *Space) SetOwnerId(v string)
SetOwnerId sets OwnerId field to given value.
GetCreatedById
func (o *Space) GetCreatedById() string
GetCreatedById returns the CreatedById field if non-nil, zero value otherwise.
GetCreatedByIdOk
func (o *Space) GetCreatedByIdOk() (*string, bool)
GetCreatedByIdOk returns a tuple with the CreatedById field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetCreatedById
func (o *Space) SetCreatedById(v string)
SetCreatedById sets CreatedById field to given value.
GetUpdatedById
func (o *Space) GetUpdatedById() string
GetUpdatedById returns the UpdatedById field if non-nil, zero value otherwise.
GetUpdatedByIdOk
func (o *Space) GetUpdatedByIdOk() (*string, bool)
GetUpdatedByIdOk returns a tuple with the UpdatedById field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetUpdatedById
func (o *Space) SetUpdatedById(v string)
SetUpdatedById sets UpdatedById field to given value.
GetPublicRead
func (o *Space) GetPublicRead() bool
GetPublicRead returns the PublicRead field if non-nil, zero value otherwise.
GetPublicReadOk
func (o *Space) 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 *Space) SetPublicRead(v bool)
SetPublicRead sets PublicRead field to given value.
GetDefaultChunkingConfig
func (o *Space) GetDefaultChunkingConfig() ChunkingConfiguration
GetDefaultChunkingConfig returns the DefaultChunkingConfig field if non-nil, zero value otherwise.
GetDefaultChunkingConfigOk
func (o *Space) 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 *Space) SetDefaultChunkingConfig(v ChunkingConfiguration)
SetDefaultChunkingConfig sets DefaultChunkingConfig field to given value.
HasDefaultChunkingConfig
func (o *Space) HasDefaultChunkingConfig() bool
HasDefaultChunkingConfig returns a boolean if a field has been set.