mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
649 lines
18 KiB
Go
649 lines
18 KiB
Go
/*
|
|
Hanzo Cloud API
|
|
|
|
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
|
|
|
API version: v1
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package hanzoai
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the DataroomDataroomLink type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &DataroomDataroomLink{}
|
|
|
|
// DataroomDataroomLink struct for DataroomDataroomLink
|
|
type DataroomDataroomLink struct {
|
|
// AllowDownload is whether a visitor may download, rather than only view.
|
|
AllowDownload *bool `json:"allowDownload,omitempty"`
|
|
// AllowList narrows which addresses pass the email gate. An entry may be a full address, an \"@domain.com\" suffix, or a bare \"domain.com\". An EMPTY list admits everyone.
|
|
AllowList []string `json:"allowList,omitempty"`
|
|
// CreatedAt is when the link was minted, in unix milliseconds.
|
|
CreatedAt *int64 `json:"createdAt,omitempty"`
|
|
// DataroomId is the room the link opens, null for a single-document link.
|
|
DataroomId *string `json:"dataroomId,omitempty"`
|
|
// DenyList rejects addresses, in the same three forms as the allow list, and is checked BEFORE it — so deny always wins.
|
|
DenyList []string `json:"denyList,omitempty"`
|
|
// DocumentId is the document the link opens, null for a room link.
|
|
DocumentId *string `json:"documentId,omitempty"`
|
|
// EmailProtected is whether a visitor must state an address to enter.
|
|
EmailProtected *bool `json:"emailProtected,omitempty"`
|
|
// ExpiresAt is when the link closes, in unix milliseconds; null never expires.
|
|
ExpiresAt *int64 `json:"expiresAt,omitempty"`
|
|
// HasPassword reports THAT a password is set. The stored form is a bcrypt hash and no route returns it.
|
|
HasPassword *bool `json:"hasPassword,omitempty"`
|
|
// ID is the link id — the public token a visitor opens the room with.
|
|
Id *string `json:"id,omitempty"`
|
|
// IsArchived is whether the link has been retired.
|
|
IsArchived *bool `json:"isArchived,omitempty"`
|
|
// LinkType is DATAROOM_LINK or DOCUMENT_LINK.
|
|
LinkType *string `json:"linkType,omitempty"`
|
|
// Name is the link's label, null when none was given.
|
|
Name *string `json:"name,omitempty"`
|
|
// UpdatedAt is when the link last changed, in unix milliseconds.
|
|
UpdatedAt *int64 `json:"updatedAt,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _DataroomDataroomLink DataroomDataroomLink
|
|
|
|
// NewDataroomDataroomLink instantiates a new DataroomDataroomLink 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 NewDataroomDataroomLink() *DataroomDataroomLink {
|
|
this := DataroomDataroomLink{}
|
|
return &this
|
|
}
|
|
|
|
// NewDataroomDataroomLinkWithDefaults instantiates a new DataroomDataroomLink 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 NewDataroomDataroomLinkWithDefaults() *DataroomDataroomLink {
|
|
this := DataroomDataroomLink{}
|
|
return &this
|
|
}
|
|
|
|
// GetAllowDownload returns the AllowDownload field value if set, zero value otherwise.
|
|
func (o *DataroomDataroomLink) GetAllowDownload() bool {
|
|
if o == nil || IsNil(o.AllowDownload) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.AllowDownload
|
|
}
|
|
|
|
// GetAllowDownloadOk returns a tuple with the AllowDownload field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DataroomDataroomLink) GetAllowDownloadOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.AllowDownload) {
|
|
return nil, false
|
|
}
|
|
return o.AllowDownload, true
|
|
}
|
|
|
|
// HasAllowDownload returns a boolean if a field has been set.
|
|
func (o *DataroomDataroomLink) HasAllowDownload() bool {
|
|
if o != nil && !IsNil(o.AllowDownload) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAllowDownload gets a reference to the given bool and assigns it to the AllowDownload field.
|
|
func (o *DataroomDataroomLink) SetAllowDownload(v bool) {
|
|
o.AllowDownload = &v
|
|
}
|
|
|
|
// GetAllowList returns the AllowList field value if set, zero value otherwise.
|
|
func (o *DataroomDataroomLink) GetAllowList() []string {
|
|
if o == nil || IsNil(o.AllowList) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.AllowList
|
|
}
|
|
|
|
// GetAllowListOk returns a tuple with the AllowList field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DataroomDataroomLink) GetAllowListOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.AllowList) {
|
|
return nil, false
|
|
}
|
|
return o.AllowList, true
|
|
}
|
|
|
|
// HasAllowList returns a boolean if a field has been set.
|
|
func (o *DataroomDataroomLink) HasAllowList() bool {
|
|
if o != nil && !IsNil(o.AllowList) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAllowList gets a reference to the given []string and assigns it to the AllowList field.
|
|
func (o *DataroomDataroomLink) SetAllowList(v []string) {
|
|
o.AllowList = v
|
|
}
|
|
|
|
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
|
|
func (o *DataroomDataroomLink) GetCreatedAt() int64 {
|
|
if o == nil || IsNil(o.CreatedAt) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.CreatedAt
|
|
}
|
|
|
|
// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DataroomDataroomLink) GetCreatedAtOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.CreatedAt) {
|
|
return nil, false
|
|
}
|
|
return o.CreatedAt, true
|
|
}
|
|
|
|
// HasCreatedAt returns a boolean if a field has been set.
|
|
func (o *DataroomDataroomLink) HasCreatedAt() bool {
|
|
if o != nil && !IsNil(o.CreatedAt) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCreatedAt gets a reference to the given int64 and assigns it to the CreatedAt field.
|
|
func (o *DataroomDataroomLink) SetCreatedAt(v int64) {
|
|
o.CreatedAt = &v
|
|
}
|
|
|
|
// GetDataroomId returns the DataroomId field value if set, zero value otherwise.
|
|
func (o *DataroomDataroomLink) GetDataroomId() string {
|
|
if o == nil || IsNil(o.DataroomId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.DataroomId
|
|
}
|
|
|
|
// GetDataroomIdOk returns a tuple with the DataroomId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DataroomDataroomLink) GetDataroomIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.DataroomId) {
|
|
return nil, false
|
|
}
|
|
return o.DataroomId, true
|
|
}
|
|
|
|
// HasDataroomId returns a boolean if a field has been set.
|
|
func (o *DataroomDataroomLink) HasDataroomId() bool {
|
|
if o != nil && !IsNil(o.DataroomId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDataroomId gets a reference to the given string and assigns it to the DataroomId field.
|
|
func (o *DataroomDataroomLink) SetDataroomId(v string) {
|
|
o.DataroomId = &v
|
|
}
|
|
|
|
// GetDenyList returns the DenyList field value if set, zero value otherwise.
|
|
func (o *DataroomDataroomLink) GetDenyList() []string {
|
|
if o == nil || IsNil(o.DenyList) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.DenyList
|
|
}
|
|
|
|
// GetDenyListOk returns a tuple with the DenyList field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DataroomDataroomLink) GetDenyListOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.DenyList) {
|
|
return nil, false
|
|
}
|
|
return o.DenyList, true
|
|
}
|
|
|
|
// HasDenyList returns a boolean if a field has been set.
|
|
func (o *DataroomDataroomLink) HasDenyList() bool {
|
|
if o != nil && !IsNil(o.DenyList) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDenyList gets a reference to the given []string and assigns it to the DenyList field.
|
|
func (o *DataroomDataroomLink) SetDenyList(v []string) {
|
|
o.DenyList = v
|
|
}
|
|
|
|
// GetDocumentId returns the DocumentId field value if set, zero value otherwise.
|
|
func (o *DataroomDataroomLink) GetDocumentId() string {
|
|
if o == nil || IsNil(o.DocumentId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.DocumentId
|
|
}
|
|
|
|
// GetDocumentIdOk returns a tuple with the DocumentId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DataroomDataroomLink) GetDocumentIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.DocumentId) {
|
|
return nil, false
|
|
}
|
|
return o.DocumentId, true
|
|
}
|
|
|
|
// HasDocumentId returns a boolean if a field has been set.
|
|
func (o *DataroomDataroomLink) HasDocumentId() bool {
|
|
if o != nil && !IsNil(o.DocumentId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDocumentId gets a reference to the given string and assigns it to the DocumentId field.
|
|
func (o *DataroomDataroomLink) SetDocumentId(v string) {
|
|
o.DocumentId = &v
|
|
}
|
|
|
|
// GetEmailProtected returns the EmailProtected field value if set, zero value otherwise.
|
|
func (o *DataroomDataroomLink) GetEmailProtected() bool {
|
|
if o == nil || IsNil(o.EmailProtected) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.EmailProtected
|
|
}
|
|
|
|
// GetEmailProtectedOk returns a tuple with the EmailProtected field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DataroomDataroomLink) GetEmailProtectedOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.EmailProtected) {
|
|
return nil, false
|
|
}
|
|
return o.EmailProtected, true
|
|
}
|
|
|
|
// HasEmailProtected returns a boolean if a field has been set.
|
|
func (o *DataroomDataroomLink) HasEmailProtected() bool {
|
|
if o != nil && !IsNil(o.EmailProtected) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetEmailProtected gets a reference to the given bool and assigns it to the EmailProtected field.
|
|
func (o *DataroomDataroomLink) SetEmailProtected(v bool) {
|
|
o.EmailProtected = &v
|
|
}
|
|
|
|
// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise.
|
|
func (o *DataroomDataroomLink) GetExpiresAt() int64 {
|
|
if o == nil || IsNil(o.ExpiresAt) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.ExpiresAt
|
|
}
|
|
|
|
// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DataroomDataroomLink) GetExpiresAtOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.ExpiresAt) {
|
|
return nil, false
|
|
}
|
|
return o.ExpiresAt, true
|
|
}
|
|
|
|
// HasExpiresAt returns a boolean if a field has been set.
|
|
func (o *DataroomDataroomLink) HasExpiresAt() bool {
|
|
if o != nil && !IsNil(o.ExpiresAt) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetExpiresAt gets a reference to the given int64 and assigns it to the ExpiresAt field.
|
|
func (o *DataroomDataroomLink) SetExpiresAt(v int64) {
|
|
o.ExpiresAt = &v
|
|
}
|
|
|
|
// GetHasPassword returns the HasPassword field value if set, zero value otherwise.
|
|
func (o *DataroomDataroomLink) GetHasPassword() bool {
|
|
if o == nil || IsNil(o.HasPassword) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.HasPassword
|
|
}
|
|
|
|
// GetHasPasswordOk returns a tuple with the HasPassword field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DataroomDataroomLink) GetHasPasswordOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.HasPassword) {
|
|
return nil, false
|
|
}
|
|
return o.HasPassword, true
|
|
}
|
|
|
|
// HasHasPassword returns a boolean if a field has been set.
|
|
func (o *DataroomDataroomLink) HasHasPassword() bool {
|
|
if o != nil && !IsNil(o.HasPassword) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetHasPassword gets a reference to the given bool and assigns it to the HasPassword field.
|
|
func (o *DataroomDataroomLink) SetHasPassword(v bool) {
|
|
o.HasPassword = &v
|
|
}
|
|
|
|
// GetId returns the Id field value if set, zero value otherwise.
|
|
func (o *DataroomDataroomLink) GetId() string {
|
|
if o == nil || IsNil(o.Id) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Id
|
|
}
|
|
|
|
// 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 (o *DataroomDataroomLink) GetIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Id) {
|
|
return nil, false
|
|
}
|
|
return o.Id, true
|
|
}
|
|
|
|
// HasId returns a boolean if a field has been set.
|
|
func (o *DataroomDataroomLink) HasId() bool {
|
|
if o != nil && !IsNil(o.Id) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetId gets a reference to the given string and assigns it to the Id field.
|
|
func (o *DataroomDataroomLink) SetId(v string) {
|
|
o.Id = &v
|
|
}
|
|
|
|
// GetIsArchived returns the IsArchived field value if set, zero value otherwise.
|
|
func (o *DataroomDataroomLink) GetIsArchived() bool {
|
|
if o == nil || IsNil(o.IsArchived) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.IsArchived
|
|
}
|
|
|
|
// GetIsArchivedOk returns a tuple with the IsArchived field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DataroomDataroomLink) GetIsArchivedOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.IsArchived) {
|
|
return nil, false
|
|
}
|
|
return o.IsArchived, true
|
|
}
|
|
|
|
// HasIsArchived returns a boolean if a field has been set.
|
|
func (o *DataroomDataroomLink) HasIsArchived() bool {
|
|
if o != nil && !IsNil(o.IsArchived) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetIsArchived gets a reference to the given bool and assigns it to the IsArchived field.
|
|
func (o *DataroomDataroomLink) SetIsArchived(v bool) {
|
|
o.IsArchived = &v
|
|
}
|
|
|
|
// GetLinkType returns the LinkType field value if set, zero value otherwise.
|
|
func (o *DataroomDataroomLink) GetLinkType() string {
|
|
if o == nil || IsNil(o.LinkType) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.LinkType
|
|
}
|
|
|
|
// GetLinkTypeOk returns a tuple with the LinkType field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DataroomDataroomLink) GetLinkTypeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.LinkType) {
|
|
return nil, false
|
|
}
|
|
return o.LinkType, true
|
|
}
|
|
|
|
// HasLinkType returns a boolean if a field has been set.
|
|
func (o *DataroomDataroomLink) HasLinkType() bool {
|
|
if o != nil && !IsNil(o.LinkType) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetLinkType gets a reference to the given string and assigns it to the LinkType field.
|
|
func (o *DataroomDataroomLink) SetLinkType(v string) {
|
|
o.LinkType = &v
|
|
}
|
|
|
|
// GetName returns the Name field value if set, zero value otherwise.
|
|
func (o *DataroomDataroomLink) GetName() string {
|
|
if o == nil || IsNil(o.Name) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Name
|
|
}
|
|
|
|
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DataroomDataroomLink) GetNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Name) {
|
|
return nil, false
|
|
}
|
|
return o.Name, true
|
|
}
|
|
|
|
// HasName returns a boolean if a field has been set.
|
|
func (o *DataroomDataroomLink) HasName() bool {
|
|
if o != nil && !IsNil(o.Name) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetName gets a reference to the given string and assigns it to the Name field.
|
|
func (o *DataroomDataroomLink) SetName(v string) {
|
|
o.Name = &v
|
|
}
|
|
|
|
// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
|
|
func (o *DataroomDataroomLink) GetUpdatedAt() int64 {
|
|
if o == nil || IsNil(o.UpdatedAt) {
|
|
var ret int64
|
|
return ret
|
|
}
|
|
return *o.UpdatedAt
|
|
}
|
|
|
|
// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DataroomDataroomLink) GetUpdatedAtOk() (*int64, bool) {
|
|
if o == nil || IsNil(o.UpdatedAt) {
|
|
return nil, false
|
|
}
|
|
return o.UpdatedAt, true
|
|
}
|
|
|
|
// HasUpdatedAt returns a boolean if a field has been set.
|
|
func (o *DataroomDataroomLink) HasUpdatedAt() bool {
|
|
if o != nil && !IsNil(o.UpdatedAt) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUpdatedAt gets a reference to the given int64 and assigns it to the UpdatedAt field.
|
|
func (o *DataroomDataroomLink) SetUpdatedAt(v int64) {
|
|
o.UpdatedAt = &v
|
|
}
|
|
|
|
func (o DataroomDataroomLink) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o DataroomDataroomLink) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.AllowDownload) {
|
|
toSerialize["allowDownload"] = o.AllowDownload
|
|
}
|
|
if !IsNil(o.AllowList) {
|
|
toSerialize["allowList"] = o.AllowList
|
|
}
|
|
if !IsNil(o.CreatedAt) {
|
|
toSerialize["createdAt"] = o.CreatedAt
|
|
}
|
|
if !IsNil(o.DataroomId) {
|
|
toSerialize["dataroomId"] = o.DataroomId
|
|
}
|
|
if !IsNil(o.DenyList) {
|
|
toSerialize["denyList"] = o.DenyList
|
|
}
|
|
if !IsNil(o.DocumentId) {
|
|
toSerialize["documentId"] = o.DocumentId
|
|
}
|
|
if !IsNil(o.EmailProtected) {
|
|
toSerialize["emailProtected"] = o.EmailProtected
|
|
}
|
|
if !IsNil(o.ExpiresAt) {
|
|
toSerialize["expiresAt"] = o.ExpiresAt
|
|
}
|
|
if !IsNil(o.HasPassword) {
|
|
toSerialize["hasPassword"] = o.HasPassword
|
|
}
|
|
if !IsNil(o.Id) {
|
|
toSerialize["id"] = o.Id
|
|
}
|
|
if !IsNil(o.IsArchived) {
|
|
toSerialize["isArchived"] = o.IsArchived
|
|
}
|
|
if !IsNil(o.LinkType) {
|
|
toSerialize["linkType"] = o.LinkType
|
|
}
|
|
if !IsNil(o.Name) {
|
|
toSerialize["name"] = o.Name
|
|
}
|
|
if !IsNil(o.UpdatedAt) {
|
|
toSerialize["updatedAt"] = o.UpdatedAt
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *DataroomDataroomLink) UnmarshalJSON(data []byte) (err error) {
|
|
varDataroomDataroomLink := _DataroomDataroomLink{}
|
|
|
|
err = json.Unmarshal(data, &varDataroomDataroomLink)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = DataroomDataroomLink(varDataroomDataroomLink)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "allowDownload")
|
|
delete(additionalProperties, "allowList")
|
|
delete(additionalProperties, "createdAt")
|
|
delete(additionalProperties, "dataroomId")
|
|
delete(additionalProperties, "denyList")
|
|
delete(additionalProperties, "documentId")
|
|
delete(additionalProperties, "emailProtected")
|
|
delete(additionalProperties, "expiresAt")
|
|
delete(additionalProperties, "hasPassword")
|
|
delete(additionalProperties, "id")
|
|
delete(additionalProperties, "isArchived")
|
|
delete(additionalProperties, "linkType")
|
|
delete(additionalProperties, "name")
|
|
delete(additionalProperties, "updatedAt")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableDataroomDataroomLink struct {
|
|
value *DataroomDataroomLink
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableDataroomDataroomLink) Get() *DataroomDataroomLink {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableDataroomDataroomLink) Set(val *DataroomDataroomLink) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableDataroomDataroomLink) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableDataroomDataroomLink) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableDataroomDataroomLink(val *DataroomDataroomLink) *NullableDataroomDataroomLink {
|
|
return &NullableDataroomDataroomLink{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableDataroomDataroomLink) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableDataroomDataroomLink) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|