/
model_update_network_floor_plan_request_center.go
164 lines (133 loc) · 5.53 KB
/
model_update_network_floor_plan_request_center.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
/*
Meraki Dashboard API
A RESTful API to programmatically manage and monitor Cisco Meraki networks at scale. > Date: 07 February, 2024 > > [Recent Updates](https://meraki.io/whats-new/) --- [API Documentation](https://meraki.io/api) [Community Support](https://meraki.io/community) [Meraki Homepage](https://www.meraki.com)
API version: 1.43.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package client
import (
"encoding/json"
)
// checks if the UpdateNetworkFloorPlanRequestCenter type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &UpdateNetworkFloorPlanRequestCenter{}
// UpdateNetworkFloorPlanRequestCenter The longitude and latitude of the center of your floor plan. If you want to change the geolocation data of your floor plan, either the 'center' or two adjacent corners (e.g. 'topLeftCorner' and 'bottomLeftCorner') must be specified. If 'center' is specified, the floor plan is placed over that point with no rotation. If two adjacent corners are specified, the floor plan is rotated to line up with the two specified points. The aspect ratio of the floor plan's image is preserved regardless of which corners/center are specified. (This means if that more than two corners are specified, only two corners may be used to preserve the floor plan's aspect ratio.). No two points can have the same latitude, longitude pair.
type UpdateNetworkFloorPlanRequestCenter struct {
// Latitude
Lat *float32 `json:"lat,omitempty"`
// Longitude
Lng *float32 `json:"lng,omitempty"`
}
// NewUpdateNetworkFloorPlanRequestCenter instantiates a new UpdateNetworkFloorPlanRequestCenter 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 NewUpdateNetworkFloorPlanRequestCenter() *UpdateNetworkFloorPlanRequestCenter {
this := UpdateNetworkFloorPlanRequestCenter{}
return &this
}
// NewUpdateNetworkFloorPlanRequestCenterWithDefaults instantiates a new UpdateNetworkFloorPlanRequestCenter 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 NewUpdateNetworkFloorPlanRequestCenterWithDefaults() *UpdateNetworkFloorPlanRequestCenter {
this := UpdateNetworkFloorPlanRequestCenter{}
return &this
}
// GetLat returns the Lat field value if set, zero value otherwise.
func (o *UpdateNetworkFloorPlanRequestCenter) GetLat() float32 {
if o == nil || IsNil(o.Lat) {
var ret float32
return ret
}
return *o.Lat
}
// GetLatOk returns a tuple with the Lat field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateNetworkFloorPlanRequestCenter) GetLatOk() (*float32, bool) {
if o == nil || IsNil(o.Lat) {
return nil, false
}
return o.Lat, true
}
// HasLat returns a boolean if a field has been set.
func (o *UpdateNetworkFloorPlanRequestCenter) HasLat() bool {
if o != nil && !IsNil(o.Lat) {
return true
}
return false
}
// SetLat gets a reference to the given float32 and assigns it to the Lat field.
func (o *UpdateNetworkFloorPlanRequestCenter) SetLat(v float32) {
o.Lat = &v
}
// GetLng returns the Lng field value if set, zero value otherwise.
func (o *UpdateNetworkFloorPlanRequestCenter) GetLng() float32 {
if o == nil || IsNil(o.Lng) {
var ret float32
return ret
}
return *o.Lng
}
// GetLngOk returns a tuple with the Lng field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateNetworkFloorPlanRequestCenter) GetLngOk() (*float32, bool) {
if o == nil || IsNil(o.Lng) {
return nil, false
}
return o.Lng, true
}
// HasLng returns a boolean if a field has been set.
func (o *UpdateNetworkFloorPlanRequestCenter) HasLng() bool {
if o != nil && !IsNil(o.Lng) {
return true
}
return false
}
// SetLng gets a reference to the given float32 and assigns it to the Lng field.
func (o *UpdateNetworkFloorPlanRequestCenter) SetLng(v float32) {
o.Lng = &v
}
func (o UpdateNetworkFloorPlanRequestCenter) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o UpdateNetworkFloorPlanRequestCenter) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Lat) {
toSerialize["lat"] = o.Lat
}
if !IsNil(o.Lng) {
toSerialize["lng"] = o.Lng
}
return toSerialize, nil
}
type NullableUpdateNetworkFloorPlanRequestCenter struct {
value *UpdateNetworkFloorPlanRequestCenter
isSet bool
}
func (v NullableUpdateNetworkFloorPlanRequestCenter) Get() *UpdateNetworkFloorPlanRequestCenter {
return v.value
}
func (v *NullableUpdateNetworkFloorPlanRequestCenter) Set(val *UpdateNetworkFloorPlanRequestCenter) {
v.value = val
v.isSet = true
}
func (v NullableUpdateNetworkFloorPlanRequestCenter) IsSet() bool {
return v.isSet
}
func (v *NullableUpdateNetworkFloorPlanRequestCenter) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableUpdateNetworkFloorPlanRequestCenter(val *UpdateNetworkFloorPlanRequestCenter) *NullableUpdateNetworkFloorPlanRequestCenter {
return &NullableUpdateNetworkFloorPlanRequestCenter{value: val, isSet: true}
}
func (v NullableUpdateNetworkFloorPlanRequestCenter) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableUpdateNetworkFloorPlanRequestCenter) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}