@@ -17,7 +17,7 @@ type SyntheticsMobileTest struct {
1717 // Array with the different device IDs used to run the test.
1818 DeviceIds []string `json:"device_ids,omitempty"`
1919 // Notification message associated with the test.
20- Message * string `json:"message,omitempty "`
20+ Message string `json:"message"`
2121 // The associated monitor ID.
2222 MonitorId * int64 `json:"monitor_id,omitempty"`
2323 // Name of the test.
@@ -44,9 +44,10 @@ type SyntheticsMobileTest struct {
4444// This constructor will assign default values to properties that have it defined,
4545// and makes sure properties required by API are set, but the set of arguments
4646// will change when the set of required properties is changed.
47- func NewSyntheticsMobileTest (config SyntheticsMobileTestConfig , name string , options SyntheticsMobileTestOptions , typeVar SyntheticsMobileTestType ) * SyntheticsMobileTest {
47+ func NewSyntheticsMobileTest (config SyntheticsMobileTestConfig , message string , name string , options SyntheticsMobileTestOptions , typeVar SyntheticsMobileTestType ) * SyntheticsMobileTest {
4848 this := SyntheticsMobileTest {}
4949 this .Config = config
50+ this .Message = message
5051 this .Name = name
5152 this .Options = options
5253 this .Type = typeVar
@@ -114,32 +115,27 @@ func (o *SyntheticsMobileTest) SetDeviceIds(v []string) {
114115 o .DeviceIds = v
115116}
116117
117- // GetMessage returns the Message field value if set, zero value otherwise .
118+ // GetMessage returns the Message field value.
118119func (o * SyntheticsMobileTest ) GetMessage () string {
119- if o == nil || o . Message == nil {
120+ if o == nil {
120121 var ret string
121122 return ret
122123 }
123- return * o .Message
124+ return o .Message
124125}
125126
126- // GetMessageOk returns a tuple with the Message field value if set, nil otherwise
127+ // GetMessageOk returns a tuple with the Message field value
127128// and a boolean to check if the value has been set.
128129func (o * SyntheticsMobileTest ) GetMessageOk () (* string , bool ) {
129- if o == nil || o . Message == nil {
130+ if o == nil {
130131 return nil , false
131132 }
132- return o .Message , true
133- }
134-
135- // HasMessage returns a boolean if a field has been set.
136- func (o * SyntheticsMobileTest ) HasMessage () bool {
137- return o != nil && o .Message != nil
133+ return & o .Message , true
138134}
139135
140- // SetMessage gets a reference to the given string and assigns it to the Message field.
136+ // SetMessage sets field value .
141137func (o * SyntheticsMobileTest ) SetMessage (v string ) {
142- o .Message = & v
138+ o .Message = v
143139}
144140
145141// GetMonitorId returns the MonitorId field value if set, zero value otherwise.
@@ -361,9 +357,7 @@ func (o SyntheticsMobileTest) MarshalJSON() ([]byte, error) {
361357 if o .DeviceIds != nil {
362358 toSerialize ["device_ids" ] = o .DeviceIds
363359 }
364- if o .Message != nil {
365- toSerialize ["message" ] = o .Message
366- }
360+ toSerialize ["message" ] = o .Message
367361 if o .MonitorId != nil {
368362 toSerialize ["monitor_id" ] = o .MonitorId
369363 }
@@ -394,7 +388,7 @@ func (o *SyntheticsMobileTest) UnmarshalJSON(bytes []byte) (err error) {
394388 all := struct {
395389 Config * SyntheticsMobileTestConfig `json:"config"`
396390 DeviceIds []string `json:"device_ids,omitempty"`
397- Message * string `json:"message,omitempty "`
391+ Message * string `json:"message"`
398392 MonitorId * int64 `json:"monitor_id,omitempty"`
399393 Name * string `json:"name"`
400394 Options * SyntheticsMobileTestOptions `json:"options"`
@@ -410,6 +404,9 @@ func (o *SyntheticsMobileTest) UnmarshalJSON(bytes []byte) (err error) {
410404 if all .Config == nil {
411405 return fmt .Errorf ("required field config missing" )
412406 }
407+ if all .Message == nil {
408+ return fmt .Errorf ("required field message missing" )
409+ }
413410 if all .Name == nil {
414411 return fmt .Errorf ("required field name missing" )
415412 }
@@ -432,7 +429,7 @@ func (o *SyntheticsMobileTest) UnmarshalJSON(bytes []byte) (err error) {
432429 }
433430 o .Config = * all .Config
434431 o .DeviceIds = all .DeviceIds
435- o .Message = all .Message
432+ o .Message = * all .Message
436433 o .MonitorId = all .MonitorId
437434 o .Name = * all .Name
438435 if all .Options .UnparsedObject != nil && o .UnparsedObject == nil {
0 commit comments