更新文档内容
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
/*
|
||||
answer
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
|
||||
answer api
|
||||
|
||||
API version: v0.0.1
|
||||
API version: 1.0.0
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
@@ -19,11 +17,11 @@ var _ MappedNullable = &SchemaUpdateInfoRequest{}
|
||||
|
||||
// SchemaUpdateInfoRequest struct for SchemaUpdateInfoRequest
|
||||
type SchemaUpdateInfoRequest struct {
|
||||
Avatar *SchemaAvatarInfo `json:"avatar,omitempty"`
|
||||
Avatar *SchemaUpdateInfoRequestAvatar `json:"avatar,omitempty"`
|
||||
// bio
|
||||
Bio *string `json:"bio,omitempty"`
|
||||
// display_name
|
||||
DisplayName string `json:"display_name"`
|
||||
DisplayName *string `json:"display_name,omitempty"`
|
||||
// location
|
||||
Location *string `json:"location,omitempty"`
|
||||
// username
|
||||
@@ -36,9 +34,8 @@ type SchemaUpdateInfoRequest struct {
|
||||
// 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 NewSchemaUpdateInfoRequest(displayName string) *SchemaUpdateInfoRequest {
|
||||
func NewSchemaUpdateInfoRequest() *SchemaUpdateInfoRequest {
|
||||
this := SchemaUpdateInfoRequest{}
|
||||
this.DisplayName = displayName
|
||||
return &this
|
||||
}
|
||||
|
||||
@@ -51,9 +48,9 @@ func NewSchemaUpdateInfoRequestWithDefaults() *SchemaUpdateInfoRequest {
|
||||
}
|
||||
|
||||
// GetAvatar returns the Avatar field value if set, zero value otherwise.
|
||||
func (o *SchemaUpdateInfoRequest) GetAvatar() SchemaAvatarInfo {
|
||||
func (o *SchemaUpdateInfoRequest) GetAvatar() SchemaUpdateInfoRequestAvatar {
|
||||
if o == nil || IsNil(o.Avatar) {
|
||||
var ret SchemaAvatarInfo
|
||||
var ret SchemaUpdateInfoRequestAvatar
|
||||
return ret
|
||||
}
|
||||
return *o.Avatar
|
||||
@@ -61,7 +58,7 @@ func (o *SchemaUpdateInfoRequest) GetAvatar() SchemaAvatarInfo {
|
||||
|
||||
// GetAvatarOk returns a tuple with the Avatar field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaUpdateInfoRequest) GetAvatarOk() (*SchemaAvatarInfo, bool) {
|
||||
func (o *SchemaUpdateInfoRequest) GetAvatarOk() (*SchemaUpdateInfoRequestAvatar, bool) {
|
||||
if o == nil || IsNil(o.Avatar) {
|
||||
return nil, false
|
||||
}
|
||||
@@ -77,8 +74,8 @@ func (o *SchemaUpdateInfoRequest) HasAvatar() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// SetAvatar gets a reference to the given SchemaAvatarInfo and assigns it to the Avatar field.
|
||||
func (o *SchemaUpdateInfoRequest) SetAvatar(v SchemaAvatarInfo) {
|
||||
// SetAvatar gets a reference to the given SchemaUpdateInfoRequestAvatar and assigns it to the Avatar field.
|
||||
func (o *SchemaUpdateInfoRequest) SetAvatar(v SchemaUpdateInfoRequestAvatar) {
|
||||
o.Avatar = &v
|
||||
}
|
||||
|
||||
@@ -114,28 +111,36 @@ func (o *SchemaUpdateInfoRequest) SetBio(v string) {
|
||||
o.Bio = &v
|
||||
}
|
||||
|
||||
// GetDisplayName returns the DisplayName field value
|
||||
// GetDisplayName returns the DisplayName field value if set, zero value otherwise.
|
||||
func (o *SchemaUpdateInfoRequest) GetDisplayName() string {
|
||||
if o == nil {
|
||||
if o == nil || IsNil(o.DisplayName) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.DisplayName
|
||||
return *o.DisplayName
|
||||
}
|
||||
|
||||
// GetDisplayNameOk returns a tuple with the DisplayName field value
|
||||
// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaUpdateInfoRequest) GetDisplayNameOk() (*string, bool) {
|
||||
if o == nil {
|
||||
if o == nil || IsNil(o.DisplayName) {
|
||||
return nil, false
|
||||
}
|
||||
return &o.DisplayName, true
|
||||
return o.DisplayName, true
|
||||
}
|
||||
|
||||
// SetDisplayName sets field value
|
||||
// HasDisplayName returns a boolean if a field has been set.
|
||||
func (o *SchemaUpdateInfoRequest) HasDisplayName() bool {
|
||||
if o != nil && !IsNil(o.DisplayName) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.
|
||||
func (o *SchemaUpdateInfoRequest) SetDisplayName(v string) {
|
||||
o.DisplayName = v
|
||||
o.DisplayName = &v
|
||||
}
|
||||
|
||||
// GetLocation returns the Location field value if set, zero value otherwise.
|
||||
@@ -250,7 +255,9 @@ func (o SchemaUpdateInfoRequest) ToMap() (map[string]interface{}, error) {
|
||||
if !IsNil(o.Bio) {
|
||||
toSerialize["bio"] = o.Bio
|
||||
}
|
||||
toSerialize["display_name"] = o.DisplayName
|
||||
if !IsNil(o.DisplayName) {
|
||||
toSerialize["display_name"] = o.DisplayName
|
||||
}
|
||||
if !IsNil(o.Location) {
|
||||
toSerialize["location"] = o.Location
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user