* add sample spec for oneof and anyof with required properties * omit bytes import for oneOf and anyOf models * generate sample client for new spec
1.9 KiB
Object
Properties
Name | Type | Description | Notes |
---|---|---|---|
Field1 | string | Specifies an action name to be used with the Android Intent class. | |
Field2 | string | Specifies an action name to be used with the Android Intent class. |
Methods
NewObject
func NewObject(field1 string, field2 string, ) *Object
NewObject instantiates a new Object 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
NewObjectWithDefaults
func NewObjectWithDefaults() *Object
NewObjectWithDefaults instantiates a new Object 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
GetField1
func (o *Object) GetField1() string
GetField1 returns the Field1 field if non-nil, zero value otherwise.
GetField1Ok
func (o *Object) GetField1Ok() (*string, bool)
GetField1Ok returns a tuple with the Field1 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetField1
func (o *Object) SetField1(v string)
SetField1 sets Field1 field to given value.
GetField2
func (o *Object) GetField2() string
GetField2 returns the Field2 field if non-nil, zero value otherwise.
GetField2Ok
func (o *Object) GetField2Ok() (*string, bool)
GetField2Ok returns a tuple with the Field2 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetField2
func (o *Object) SetField2(v string)
SetField2 sets Field2 field to given value.