first version
This commit is contained in:
155
model_schema_follow_req.go
Normal file
155
model_schema_follow_req.go
Normal file
@@ -0,0 +1,155 @@
|
||||
/*
|
||||
answer
|
||||
|
||||
answer api
|
||||
|
||||
API version: v0.0.1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the SchemaFollowReq type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &SchemaFollowReq{}
|
||||
|
||||
// SchemaFollowReq struct for SchemaFollowReq
|
||||
type SchemaFollowReq struct {
|
||||
// is cancel
|
||||
IsCancel *bool `json:"is_cancel,omitempty"`
|
||||
// object id
|
||||
ObjectId string `json:"object_id"`
|
||||
}
|
||||
|
||||
// NewSchemaFollowReq instantiates a new SchemaFollowReq 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 NewSchemaFollowReq(objectId string) *SchemaFollowReq {
|
||||
this := SchemaFollowReq{}
|
||||
this.ObjectId = objectId
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewSchemaFollowReqWithDefaults instantiates a new SchemaFollowReq 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 NewSchemaFollowReqWithDefaults() *SchemaFollowReq {
|
||||
this := SchemaFollowReq{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetIsCancel returns the IsCancel field value if set, zero value otherwise.
|
||||
func (o *SchemaFollowReq) GetIsCancel() bool {
|
||||
if o == nil || IsNil(o.IsCancel) {
|
||||
var ret bool
|
||||
return ret
|
||||
}
|
||||
return *o.IsCancel
|
||||
}
|
||||
|
||||
// GetIsCancelOk returns a tuple with the IsCancel field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaFollowReq) GetIsCancelOk() (*bool, bool) {
|
||||
if o == nil || IsNil(o.IsCancel) {
|
||||
return nil, false
|
||||
}
|
||||
return o.IsCancel, true
|
||||
}
|
||||
|
||||
// HasIsCancel returns a boolean if a field has been set.
|
||||
func (o *SchemaFollowReq) HasIsCancel() bool {
|
||||
if o != nil && !IsNil(o.IsCancel) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetIsCancel gets a reference to the given bool and assigns it to the IsCancel field.
|
||||
func (o *SchemaFollowReq) SetIsCancel(v bool) {
|
||||
o.IsCancel = &v
|
||||
}
|
||||
|
||||
// GetObjectId returns the ObjectId field value
|
||||
func (o *SchemaFollowReq) GetObjectId() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.ObjectId
|
||||
}
|
||||
|
||||
// GetObjectIdOk returns a tuple with the ObjectId field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaFollowReq) GetObjectIdOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.ObjectId, true
|
||||
}
|
||||
|
||||
// SetObjectId sets field value
|
||||
func (o *SchemaFollowReq) SetObjectId(v string) {
|
||||
o.ObjectId = v
|
||||
}
|
||||
|
||||
func (o SchemaFollowReq) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o SchemaFollowReq) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.IsCancel) {
|
||||
toSerialize["is_cancel"] = o.IsCancel
|
||||
}
|
||||
toSerialize["object_id"] = o.ObjectId
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableSchemaFollowReq struct {
|
||||
value *SchemaFollowReq
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableSchemaFollowReq) Get() *SchemaFollowReq {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableSchemaFollowReq) Set(val *SchemaFollowReq) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableSchemaFollowReq) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableSchemaFollowReq) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableSchemaFollowReq(val *SchemaFollowReq) *NullableSchemaFollowReq {
|
||||
return &NullableSchemaFollowReq{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableSchemaFollowReq) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableSchemaFollowReq) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user