mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
421 lines
11 KiB
Go
421 lines
11 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 DataroomTrustEdit type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &DataroomTrustEdit{}
|
|
|
|
// DataroomTrustEdit struct for DataroomTrustEdit
|
|
type DataroomTrustEdit struct {
|
|
// Body replaces the item's content.
|
|
Body *string `json:"body,omitempty"`
|
|
// Document replaces the file the item points at — this is how a report is superseded by its next edition. The new document must already exist in the caller org's own store.
|
|
Document *string `json:"document,omitempty"`
|
|
// Framework replaces the standard it speaks to.
|
|
Framework *string `json:"framework,omitempty"`
|
|
// ID is the item to change, taken from the path.
|
|
Id *string `json:"id,omitempty"`
|
|
// Name replaces its title.
|
|
Name *string `json:"name,omitempty"`
|
|
// Retired withdraws the item, or true→false restores it. A retired item leaves the public centre at once and can no longer be granted; grants already made over it stand, because they are part of the record.
|
|
Retired *bool `json:"retired,omitempty"`
|
|
// Summary replaces the line about it.
|
|
Summary *string `json:"summary,omitempty"`
|
|
// Tier moves it between public and gated. Moving an auditor-signed item to public is refused.
|
|
Tier *string `json:"tier,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _DataroomTrustEdit DataroomTrustEdit
|
|
|
|
// NewDataroomTrustEdit instantiates a new DataroomTrustEdit 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 NewDataroomTrustEdit() *DataroomTrustEdit {
|
|
this := DataroomTrustEdit{}
|
|
return &this
|
|
}
|
|
|
|
// NewDataroomTrustEditWithDefaults instantiates a new DataroomTrustEdit 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 NewDataroomTrustEditWithDefaults() *DataroomTrustEdit {
|
|
this := DataroomTrustEdit{}
|
|
return &this
|
|
}
|
|
|
|
// GetBody returns the Body field value if set, zero value otherwise.
|
|
func (o *DataroomTrustEdit) GetBody() string {
|
|
if o == nil || IsNil(o.Body) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Body
|
|
}
|
|
|
|
// GetBodyOk returns a tuple with the Body field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DataroomTrustEdit) GetBodyOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Body) {
|
|
return nil, false
|
|
}
|
|
return o.Body, true
|
|
}
|
|
|
|
// HasBody returns a boolean if a field has been set.
|
|
func (o *DataroomTrustEdit) HasBody() bool {
|
|
if o != nil && !IsNil(o.Body) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetBody gets a reference to the given string and assigns it to the Body field.
|
|
func (o *DataroomTrustEdit) SetBody(v string) {
|
|
o.Body = &v
|
|
}
|
|
|
|
// GetDocument returns the Document field value if set, zero value otherwise.
|
|
func (o *DataroomTrustEdit) GetDocument() string {
|
|
if o == nil || IsNil(o.Document) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Document
|
|
}
|
|
|
|
// GetDocumentOk returns a tuple with the Document field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DataroomTrustEdit) GetDocumentOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Document) {
|
|
return nil, false
|
|
}
|
|
return o.Document, true
|
|
}
|
|
|
|
// HasDocument returns a boolean if a field has been set.
|
|
func (o *DataroomTrustEdit) HasDocument() bool {
|
|
if o != nil && !IsNil(o.Document) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDocument gets a reference to the given string and assigns it to the Document field.
|
|
func (o *DataroomTrustEdit) SetDocument(v string) {
|
|
o.Document = &v
|
|
}
|
|
|
|
// GetFramework returns the Framework field value if set, zero value otherwise.
|
|
func (o *DataroomTrustEdit) GetFramework() string {
|
|
if o == nil || IsNil(o.Framework) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Framework
|
|
}
|
|
|
|
// GetFrameworkOk returns a tuple with the Framework field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DataroomTrustEdit) GetFrameworkOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Framework) {
|
|
return nil, false
|
|
}
|
|
return o.Framework, true
|
|
}
|
|
|
|
// HasFramework returns a boolean if a field has been set.
|
|
func (o *DataroomTrustEdit) HasFramework() bool {
|
|
if o != nil && !IsNil(o.Framework) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetFramework gets a reference to the given string and assigns it to the Framework field.
|
|
func (o *DataroomTrustEdit) SetFramework(v string) {
|
|
o.Framework = &v
|
|
}
|
|
|
|
// GetId returns the Id field value if set, zero value otherwise.
|
|
func (o *DataroomTrustEdit) 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 *DataroomTrustEdit) 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 *DataroomTrustEdit) 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 *DataroomTrustEdit) SetId(v string) {
|
|
o.Id = &v
|
|
}
|
|
|
|
// GetName returns the Name field value if set, zero value otherwise.
|
|
func (o *DataroomTrustEdit) 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 *DataroomTrustEdit) 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 *DataroomTrustEdit) 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 *DataroomTrustEdit) SetName(v string) {
|
|
o.Name = &v
|
|
}
|
|
|
|
// GetRetired returns the Retired field value if set, zero value otherwise.
|
|
func (o *DataroomTrustEdit) GetRetired() bool {
|
|
if o == nil || IsNil(o.Retired) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.Retired
|
|
}
|
|
|
|
// GetRetiredOk returns a tuple with the Retired field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DataroomTrustEdit) GetRetiredOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.Retired) {
|
|
return nil, false
|
|
}
|
|
return o.Retired, true
|
|
}
|
|
|
|
// HasRetired returns a boolean if a field has been set.
|
|
func (o *DataroomTrustEdit) HasRetired() bool {
|
|
if o != nil && !IsNil(o.Retired) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRetired gets a reference to the given bool and assigns it to the Retired field.
|
|
func (o *DataroomTrustEdit) SetRetired(v bool) {
|
|
o.Retired = &v
|
|
}
|
|
|
|
// GetSummary returns the Summary field value if set, zero value otherwise.
|
|
func (o *DataroomTrustEdit) GetSummary() string {
|
|
if o == nil || IsNil(o.Summary) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Summary
|
|
}
|
|
|
|
// GetSummaryOk returns a tuple with the Summary field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DataroomTrustEdit) GetSummaryOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Summary) {
|
|
return nil, false
|
|
}
|
|
return o.Summary, true
|
|
}
|
|
|
|
// HasSummary returns a boolean if a field has been set.
|
|
func (o *DataroomTrustEdit) HasSummary() bool {
|
|
if o != nil && !IsNil(o.Summary) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSummary gets a reference to the given string and assigns it to the Summary field.
|
|
func (o *DataroomTrustEdit) SetSummary(v string) {
|
|
o.Summary = &v
|
|
}
|
|
|
|
// GetTier returns the Tier field value if set, zero value otherwise.
|
|
func (o *DataroomTrustEdit) GetTier() string {
|
|
if o == nil || IsNil(o.Tier) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Tier
|
|
}
|
|
|
|
// GetTierOk returns a tuple with the Tier field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *DataroomTrustEdit) GetTierOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Tier) {
|
|
return nil, false
|
|
}
|
|
return o.Tier, true
|
|
}
|
|
|
|
// HasTier returns a boolean if a field has been set.
|
|
func (o *DataroomTrustEdit) HasTier() bool {
|
|
if o != nil && !IsNil(o.Tier) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTier gets a reference to the given string and assigns it to the Tier field.
|
|
func (o *DataroomTrustEdit) SetTier(v string) {
|
|
o.Tier = &v
|
|
}
|
|
|
|
func (o DataroomTrustEdit) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o DataroomTrustEdit) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.Body) {
|
|
toSerialize["body"] = o.Body
|
|
}
|
|
if !IsNil(o.Document) {
|
|
toSerialize["document"] = o.Document
|
|
}
|
|
if !IsNil(o.Framework) {
|
|
toSerialize["framework"] = o.Framework
|
|
}
|
|
if !IsNil(o.Id) {
|
|
toSerialize["id"] = o.Id
|
|
}
|
|
if !IsNil(o.Name) {
|
|
toSerialize["name"] = o.Name
|
|
}
|
|
if !IsNil(o.Retired) {
|
|
toSerialize["retired"] = o.Retired
|
|
}
|
|
if !IsNil(o.Summary) {
|
|
toSerialize["summary"] = o.Summary
|
|
}
|
|
if !IsNil(o.Tier) {
|
|
toSerialize["tier"] = o.Tier
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *DataroomTrustEdit) UnmarshalJSON(data []byte) (err error) {
|
|
varDataroomTrustEdit := _DataroomTrustEdit{}
|
|
|
|
err = json.Unmarshal(data, &varDataroomTrustEdit)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = DataroomTrustEdit(varDataroomTrustEdit)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "body")
|
|
delete(additionalProperties, "document")
|
|
delete(additionalProperties, "framework")
|
|
delete(additionalProperties, "id")
|
|
delete(additionalProperties, "name")
|
|
delete(additionalProperties, "retired")
|
|
delete(additionalProperties, "summary")
|
|
delete(additionalProperties, "tier")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableDataroomTrustEdit struct {
|
|
value *DataroomTrustEdit
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableDataroomTrustEdit) Get() *DataroomTrustEdit {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableDataroomTrustEdit) Set(val *DataroomTrustEdit) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableDataroomTrustEdit) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableDataroomTrustEdit) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableDataroomTrustEdit(val *DataroomTrustEdit) *NullableDataroomTrustEdit {
|
|
return &NullableDataroomTrustEdit{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableDataroomTrustEdit) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableDataroomTrustEdit) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|