How to use has method of devices Package

Best Rod code snippet using devices.has

model_microsoft_graph_device_management_partner.go

Source:model_microsoft_graph_device_management_partner.go Github

copy

Full Screen

...43 }44 return *o.Id45}46// GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise47// and a boolean to check if the value has been set.48func (o *MicrosoftGraphDeviceManagementPartner) GetIdOk() (string, bool) {49 if o == nil || o.Id == nil {50 var ret string51 return ret, false52 }53 return *o.Id, true54}55// HasId returns a boolean if a field has been set.56func (o *MicrosoftGraphDeviceManagementPartner) HasId() bool {57 if o != nil && o.Id != nil {58 return true59 }60 return false61}62// SetId gets a reference to the given string and assigns it to the Id field.63func (o *MicrosoftGraphDeviceManagementPartner) SetId(v string) {64 o.Id = &v65}66// GetLastHeartbeatDateTime returns the LastHeartbeatDateTime field if non-nil, zero value otherwise.67func (o *MicrosoftGraphDeviceManagementPartner) GetLastHeartbeatDateTime() time.Time {68 if o == nil || o.LastHeartbeatDateTime == nil {69 var ret time.Time70 return ret71 }72 return *o.LastHeartbeatDateTime73}74// GetLastHeartbeatDateTimeOk returns a tuple with the LastHeartbeatDateTime field if it's non-nil, zero value otherwise75// and a boolean to check if the value has been set.76func (o *MicrosoftGraphDeviceManagementPartner) GetLastHeartbeatDateTimeOk() (time.Time, bool) {77 if o == nil || o.LastHeartbeatDateTime == nil {78 var ret time.Time79 return ret, false80 }81 return *o.LastHeartbeatDateTime, true82}83// HasLastHeartbeatDateTime returns a boolean if a field has been set.84func (o *MicrosoftGraphDeviceManagementPartner) HasLastHeartbeatDateTime() bool {85 if o != nil && o.LastHeartbeatDateTime != nil {86 return true87 }88 return false89}90// SetLastHeartbeatDateTime gets a reference to the given time.Time and assigns it to the LastHeartbeatDateTime field.91func (o *MicrosoftGraphDeviceManagementPartner) SetLastHeartbeatDateTime(v time.Time) {92 o.LastHeartbeatDateTime = &v93}94// GetPartnerState returns the PartnerState field if non-nil, zero value otherwise.95func (o *MicrosoftGraphDeviceManagementPartner) GetPartnerState() AnyOfmicrosoftGraphDeviceManagementPartnerTenantState {96 if o == nil || o.PartnerState == nil {97 var ret AnyOfmicrosoftGraphDeviceManagementPartnerTenantState98 return ret99 }100 return *o.PartnerState101}102// GetPartnerStateOk returns a tuple with the PartnerState field if it's non-nil, zero value otherwise103// and a boolean to check if the value has been set.104func (o *MicrosoftGraphDeviceManagementPartner) GetPartnerStateOk() (AnyOfmicrosoftGraphDeviceManagementPartnerTenantState, bool) {105 if o == nil || o.PartnerState == nil {106 var ret AnyOfmicrosoftGraphDeviceManagementPartnerTenantState107 return ret, false108 }109 return *o.PartnerState, true110}111// HasPartnerState returns a boolean if a field has been set.112func (o *MicrosoftGraphDeviceManagementPartner) HasPartnerState() bool {113 if o != nil && o.PartnerState != nil {114 return true115 }116 return false117}118// SetPartnerState gets a reference to the given AnyOfmicrosoftGraphDeviceManagementPartnerTenantState and assigns it to the PartnerState field.119func (o *MicrosoftGraphDeviceManagementPartner) SetPartnerState(v AnyOfmicrosoftGraphDeviceManagementPartnerTenantState) {120 o.PartnerState = &v121}122// GetPartnerAppType returns the PartnerAppType field if non-nil, zero value otherwise.123func (o *MicrosoftGraphDeviceManagementPartner) GetPartnerAppType() AnyOfmicrosoftGraphDeviceManagementPartnerAppType {124 if o == nil || o.PartnerAppType == nil {125 var ret AnyOfmicrosoftGraphDeviceManagementPartnerAppType126 return ret127 }128 return *o.PartnerAppType129}130// GetPartnerAppTypeOk returns a tuple with the PartnerAppType field if it's non-nil, zero value otherwise131// and a boolean to check if the value has been set.132func (o *MicrosoftGraphDeviceManagementPartner) GetPartnerAppTypeOk() (AnyOfmicrosoftGraphDeviceManagementPartnerAppType, bool) {133 if o == nil || o.PartnerAppType == nil {134 var ret AnyOfmicrosoftGraphDeviceManagementPartnerAppType135 return ret, false136 }137 return *o.PartnerAppType, true138}139// HasPartnerAppType returns a boolean if a field has been set.140func (o *MicrosoftGraphDeviceManagementPartner) HasPartnerAppType() bool {141 if o != nil && o.PartnerAppType != nil {142 return true143 }144 return false145}146// SetPartnerAppType gets a reference to the given AnyOfmicrosoftGraphDeviceManagementPartnerAppType and assigns it to the PartnerAppType field.147func (o *MicrosoftGraphDeviceManagementPartner) SetPartnerAppType(v AnyOfmicrosoftGraphDeviceManagementPartnerAppType) {148 o.PartnerAppType = &v149}150// GetSingleTenantAppId returns the SingleTenantAppId field if non-nil, zero value otherwise.151func (o *MicrosoftGraphDeviceManagementPartner) GetSingleTenantAppId() string {152 if o == nil || o.SingleTenantAppId == nil {153 var ret string154 return ret155 }156 return *o.SingleTenantAppId157}158// GetSingleTenantAppIdOk returns a tuple with the SingleTenantAppId field if it's non-nil, zero value otherwise159// and a boolean to check if the value has been set.160func (o *MicrosoftGraphDeviceManagementPartner) GetSingleTenantAppIdOk() (string, bool) {161 if o == nil || o.SingleTenantAppId == nil {162 var ret string163 return ret, false164 }165 return *o.SingleTenantAppId, true166}167// HasSingleTenantAppId returns a boolean if a field has been set.168func (o *MicrosoftGraphDeviceManagementPartner) HasSingleTenantAppId() bool {169 if o != nil && o.SingleTenantAppId != nil {170 return true171 }172 return false173}174// SetSingleTenantAppId gets a reference to the given string and assigns it to the SingleTenantAppId field.175func (o *MicrosoftGraphDeviceManagementPartner) SetSingleTenantAppId(v string) {176 o.SingleTenantAppId = &v177}178// SetSingleTenantAppIdExplicitNull (un)sets SingleTenantAppId to be considered as explicit "null" value179// when serializing to JSON (pass true as argument to set this, false to unset)180// The SingleTenantAppId value is set to nil even if false is passed181func (o *MicrosoftGraphDeviceManagementPartner) SetSingleTenantAppIdExplicitNull(b bool) {182 o.SingleTenantAppId = nil183 o.isExplicitNullSingleTenantAppId = b184}185// GetDisplayName returns the DisplayName field if non-nil, zero value otherwise.186func (o *MicrosoftGraphDeviceManagementPartner) GetDisplayName() string {187 if o == nil || o.DisplayName == nil {188 var ret string189 return ret190 }191 return *o.DisplayName192}193// GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise194// and a boolean to check if the value has been set.195func (o *MicrosoftGraphDeviceManagementPartner) GetDisplayNameOk() (string, bool) {196 if o == nil || o.DisplayName == nil {197 var ret string198 return ret, false199 }200 return *o.DisplayName, true201}202// HasDisplayName returns a boolean if a field has been set.203func (o *MicrosoftGraphDeviceManagementPartner) HasDisplayName() bool {204 if o != nil && o.DisplayName != nil {205 return true206 }207 return false208}209// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.210func (o *MicrosoftGraphDeviceManagementPartner) SetDisplayName(v string) {211 o.DisplayName = &v212}213// SetDisplayNameExplicitNull (un)sets DisplayName to be considered as explicit "null" value214// when serializing to JSON (pass true as argument to set this, false to unset)215// The DisplayName value is set to nil even if false is passed216func (o *MicrosoftGraphDeviceManagementPartner) SetDisplayNameExplicitNull(b bool) {217 o.DisplayName = nil218 o.isExplicitNullDisplayName = b219}220// GetIsConfigured returns the IsConfigured field if non-nil, zero value otherwise.221func (o *MicrosoftGraphDeviceManagementPartner) GetIsConfigured() bool {222 if o == nil || o.IsConfigured == nil {223 var ret bool224 return ret225 }226 return *o.IsConfigured227}228// GetIsConfiguredOk returns a tuple with the IsConfigured field if it's non-nil, zero value otherwise229// and a boolean to check if the value has been set.230func (o *MicrosoftGraphDeviceManagementPartner) GetIsConfiguredOk() (bool, bool) {231 if o == nil || o.IsConfigured == nil {232 var ret bool233 return ret, false234 }235 return *o.IsConfigured, true236}237// HasIsConfigured returns a boolean if a field has been set.238func (o *MicrosoftGraphDeviceManagementPartner) HasIsConfigured() bool {239 if o != nil && o.IsConfigured != nil {240 return true241 }242 return false243}244// SetIsConfigured gets a reference to the given bool and assigns it to the IsConfigured field.245func (o *MicrosoftGraphDeviceManagementPartner) SetIsConfigured(v bool) {246 o.IsConfigured = &v247}248// GetWhenPartnerDevicesWillBeRemovedDateTime returns the WhenPartnerDevicesWillBeRemovedDateTime field if non-nil, zero value otherwise.249func (o *MicrosoftGraphDeviceManagementPartner) GetWhenPartnerDevicesWillBeRemovedDateTime() time.Time {250 if o == nil || o.WhenPartnerDevicesWillBeRemovedDateTime == nil {251 var ret time.Time252 return ret253 }254 return *o.WhenPartnerDevicesWillBeRemovedDateTime255}256// GetWhenPartnerDevicesWillBeRemovedDateTimeOk returns a tuple with the WhenPartnerDevicesWillBeRemovedDateTime field if it's non-nil, zero value otherwise257// and a boolean to check if the value has been set.258func (o *MicrosoftGraphDeviceManagementPartner) GetWhenPartnerDevicesWillBeRemovedDateTimeOk() (time.Time, bool) {259 if o == nil || o.WhenPartnerDevicesWillBeRemovedDateTime == nil {260 var ret time.Time261 return ret, false262 }263 return *o.WhenPartnerDevicesWillBeRemovedDateTime, true264}265// HasWhenPartnerDevicesWillBeRemovedDateTime returns a boolean if a field has been set.266func (o *MicrosoftGraphDeviceManagementPartner) HasWhenPartnerDevicesWillBeRemovedDateTime() bool {267 if o != nil && o.WhenPartnerDevicesWillBeRemovedDateTime != nil {268 return true269 }270 return false271}272// SetWhenPartnerDevicesWillBeRemovedDateTime gets a reference to the given time.Time and assigns it to the WhenPartnerDevicesWillBeRemovedDateTime field.273func (o *MicrosoftGraphDeviceManagementPartner) SetWhenPartnerDevicesWillBeRemovedDateTime(v time.Time) {274 o.WhenPartnerDevicesWillBeRemovedDateTime = &v275}276// SetWhenPartnerDevicesWillBeRemovedDateTimeExplicitNull (un)sets WhenPartnerDevicesWillBeRemovedDateTime to be considered as explicit "null" value277// when serializing to JSON (pass true as argument to set this, false to unset)278// The WhenPartnerDevicesWillBeRemovedDateTime value is set to nil even if false is passed279func (o *MicrosoftGraphDeviceManagementPartner) SetWhenPartnerDevicesWillBeRemovedDateTimeExplicitNull(b bool) {280 o.WhenPartnerDevicesWillBeRemovedDateTime = nil281 o.isExplicitNullWhenPartnerDevicesWillBeRemovedDateTime = b282}283// GetWhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime returns the WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime field if non-nil, zero value otherwise.284func (o *MicrosoftGraphDeviceManagementPartner) GetWhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime() time.Time {285 if o == nil || o.WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime == nil {286 var ret time.Time287 return ret288 }289 return *o.WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime290}291// GetWhenPartnerDevicesWillBeMarkedAsNonCompliantDateTimeOk returns a tuple with the WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime field if it's non-nil, zero value otherwise292// and a boolean to check if the value has been set.293func (o *MicrosoftGraphDeviceManagementPartner) GetWhenPartnerDevicesWillBeMarkedAsNonCompliantDateTimeOk() (time.Time, bool) {294 if o == nil || o.WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime == nil {295 var ret time.Time296 return ret, false297 }298 return *o.WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime, true299}300// HasWhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime returns a boolean if a field has been set.301func (o *MicrosoftGraphDeviceManagementPartner) HasWhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime() bool {302 if o != nil && o.WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime != nil {303 return true304 }305 return false306}307// SetWhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime gets a reference to the given time.Time and assigns it to the WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime field.308func (o *MicrosoftGraphDeviceManagementPartner) SetWhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime(v time.Time) {309 o.WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime = &v310}311// SetWhenPartnerDevicesWillBeMarkedAsNonCompliantDateTimeExplicitNull (un)sets WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime to be considered as explicit "null" value312// when serializing to JSON (pass true as argument to set this, false to unset)313// The WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime value is set to nil even if false is passed314func (o *MicrosoftGraphDeviceManagementPartner) SetWhenPartnerDevicesWillBeMarkedAsNonCompliantDateTimeExplicitNull(b bool) {...

Full Screen

Full Screen

model_device_management_partner.go

Source:model_device_management_partner.go Github

copy

Full Screen

...42 }43 return *o.LastHeartbeatDateTime44}45// GetLastHeartbeatDateTimeOk returns a tuple with the LastHeartbeatDateTime field if it's non-nil, zero value otherwise46// and a boolean to check if the value has been set.47func (o *DeviceManagementPartner) GetLastHeartbeatDateTimeOk() (time.Time, bool) {48 if o == nil || o.LastHeartbeatDateTime == nil {49 var ret time.Time50 return ret, false51 }52 return *o.LastHeartbeatDateTime, true53}54// HasLastHeartbeatDateTime returns a boolean if a field has been set.55func (o *DeviceManagementPartner) HasLastHeartbeatDateTime() bool {56 if o != nil && o.LastHeartbeatDateTime != nil {57 return true58 }59 return false60}61// SetLastHeartbeatDateTime gets a reference to the given time.Time and assigns it to the LastHeartbeatDateTime field.62func (o *DeviceManagementPartner) SetLastHeartbeatDateTime(v time.Time) {63 o.LastHeartbeatDateTime = &v64}65// GetPartnerState returns the PartnerState field if non-nil, zero value otherwise.66func (o *DeviceManagementPartner) GetPartnerState() AnyOfmicrosoftGraphDeviceManagementPartnerTenantState {67 if o == nil || o.PartnerState == nil {68 var ret AnyOfmicrosoftGraphDeviceManagementPartnerTenantState69 return ret70 }71 return *o.PartnerState72}73// GetPartnerStateOk returns a tuple with the PartnerState field if it's non-nil, zero value otherwise74// and a boolean to check if the value has been set.75func (o *DeviceManagementPartner) GetPartnerStateOk() (AnyOfmicrosoftGraphDeviceManagementPartnerTenantState, bool) {76 if o == nil || o.PartnerState == nil {77 var ret AnyOfmicrosoftGraphDeviceManagementPartnerTenantState78 return ret, false79 }80 return *o.PartnerState, true81}82// HasPartnerState returns a boolean if a field has been set.83func (o *DeviceManagementPartner) HasPartnerState() bool {84 if o != nil && o.PartnerState != nil {85 return true86 }87 return false88}89// SetPartnerState gets a reference to the given AnyOfmicrosoftGraphDeviceManagementPartnerTenantState and assigns it to the PartnerState field.90func (o *DeviceManagementPartner) SetPartnerState(v AnyOfmicrosoftGraphDeviceManagementPartnerTenantState) {91 o.PartnerState = &v92}93// GetPartnerAppType returns the PartnerAppType field if non-nil, zero value otherwise.94func (o *DeviceManagementPartner) GetPartnerAppType() AnyOfmicrosoftGraphDeviceManagementPartnerAppType {95 if o == nil || o.PartnerAppType == nil {96 var ret AnyOfmicrosoftGraphDeviceManagementPartnerAppType97 return ret98 }99 return *o.PartnerAppType100}101// GetPartnerAppTypeOk returns a tuple with the PartnerAppType field if it's non-nil, zero value otherwise102// and a boolean to check if the value has been set.103func (o *DeviceManagementPartner) GetPartnerAppTypeOk() (AnyOfmicrosoftGraphDeviceManagementPartnerAppType, bool) {104 if o == nil || o.PartnerAppType == nil {105 var ret AnyOfmicrosoftGraphDeviceManagementPartnerAppType106 return ret, false107 }108 return *o.PartnerAppType, true109}110// HasPartnerAppType returns a boolean if a field has been set.111func (o *DeviceManagementPartner) HasPartnerAppType() bool {112 if o != nil && o.PartnerAppType != nil {113 return true114 }115 return false116}117// SetPartnerAppType gets a reference to the given AnyOfmicrosoftGraphDeviceManagementPartnerAppType and assigns it to the PartnerAppType field.118func (o *DeviceManagementPartner) SetPartnerAppType(v AnyOfmicrosoftGraphDeviceManagementPartnerAppType) {119 o.PartnerAppType = &v120}121// GetSingleTenantAppId returns the SingleTenantAppId field if non-nil, zero value otherwise.122func (o *DeviceManagementPartner) GetSingleTenantAppId() string {123 if o == nil || o.SingleTenantAppId == nil {124 var ret string125 return ret126 }127 return *o.SingleTenantAppId128}129// GetSingleTenantAppIdOk returns a tuple with the SingleTenantAppId field if it's non-nil, zero value otherwise130// and a boolean to check if the value has been set.131func (o *DeviceManagementPartner) GetSingleTenantAppIdOk() (string, bool) {132 if o == nil || o.SingleTenantAppId == nil {133 var ret string134 return ret, false135 }136 return *o.SingleTenantAppId, true137}138// HasSingleTenantAppId returns a boolean if a field has been set.139func (o *DeviceManagementPartner) HasSingleTenantAppId() bool {140 if o != nil && o.SingleTenantAppId != nil {141 return true142 }143 return false144}145// SetSingleTenantAppId gets a reference to the given string and assigns it to the SingleTenantAppId field.146func (o *DeviceManagementPartner) SetSingleTenantAppId(v string) {147 o.SingleTenantAppId = &v148}149// SetSingleTenantAppIdExplicitNull (un)sets SingleTenantAppId to be considered as explicit "null" value150// when serializing to JSON (pass true as argument to set this, false to unset)151// The SingleTenantAppId value is set to nil even if false is passed152func (o *DeviceManagementPartner) SetSingleTenantAppIdExplicitNull(b bool) {153 o.SingleTenantAppId = nil154 o.isExplicitNullSingleTenantAppId = b155}156// GetDisplayName returns the DisplayName field if non-nil, zero value otherwise.157func (o *DeviceManagementPartner) GetDisplayName() string {158 if o == nil || o.DisplayName == nil {159 var ret string160 return ret161 }162 return *o.DisplayName163}164// GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise165// and a boolean to check if the value has been set.166func (o *DeviceManagementPartner) GetDisplayNameOk() (string, bool) {167 if o == nil || o.DisplayName == nil {168 var ret string169 return ret, false170 }171 return *o.DisplayName, true172}173// HasDisplayName returns a boolean if a field has been set.174func (o *DeviceManagementPartner) HasDisplayName() bool {175 if o != nil && o.DisplayName != nil {176 return true177 }178 return false179}180// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.181func (o *DeviceManagementPartner) SetDisplayName(v string) {182 o.DisplayName = &v183}184// SetDisplayNameExplicitNull (un)sets DisplayName to be considered as explicit "null" value185// when serializing to JSON (pass true as argument to set this, false to unset)186// The DisplayName value is set to nil even if false is passed187func (o *DeviceManagementPartner) SetDisplayNameExplicitNull(b bool) {188 o.DisplayName = nil189 o.isExplicitNullDisplayName = b190}191// GetIsConfigured returns the IsConfigured field if non-nil, zero value otherwise.192func (o *DeviceManagementPartner) GetIsConfigured() bool {193 if o == nil || o.IsConfigured == nil {194 var ret bool195 return ret196 }197 return *o.IsConfigured198}199// GetIsConfiguredOk returns a tuple with the IsConfigured field if it's non-nil, zero value otherwise200// and a boolean to check if the value has been set.201func (o *DeviceManagementPartner) GetIsConfiguredOk() (bool, bool) {202 if o == nil || o.IsConfigured == nil {203 var ret bool204 return ret, false205 }206 return *o.IsConfigured, true207}208// HasIsConfigured returns a boolean if a field has been set.209func (o *DeviceManagementPartner) HasIsConfigured() bool {210 if o != nil && o.IsConfigured != nil {211 return true212 }213 return false214}215// SetIsConfigured gets a reference to the given bool and assigns it to the IsConfigured field.216func (o *DeviceManagementPartner) SetIsConfigured(v bool) {217 o.IsConfigured = &v218}219// GetWhenPartnerDevicesWillBeRemovedDateTime returns the WhenPartnerDevicesWillBeRemovedDateTime field if non-nil, zero value otherwise.220func (o *DeviceManagementPartner) GetWhenPartnerDevicesWillBeRemovedDateTime() time.Time {221 if o == nil || o.WhenPartnerDevicesWillBeRemovedDateTime == nil {222 var ret time.Time223 return ret224 }225 return *o.WhenPartnerDevicesWillBeRemovedDateTime226}227// GetWhenPartnerDevicesWillBeRemovedDateTimeOk returns a tuple with the WhenPartnerDevicesWillBeRemovedDateTime field if it's non-nil, zero value otherwise228// and a boolean to check if the value has been set.229func (o *DeviceManagementPartner) GetWhenPartnerDevicesWillBeRemovedDateTimeOk() (time.Time, bool) {230 if o == nil || o.WhenPartnerDevicesWillBeRemovedDateTime == nil {231 var ret time.Time232 return ret, false233 }234 return *o.WhenPartnerDevicesWillBeRemovedDateTime, true235}236// HasWhenPartnerDevicesWillBeRemovedDateTime returns a boolean if a field has been set.237func (o *DeviceManagementPartner) HasWhenPartnerDevicesWillBeRemovedDateTime() bool {238 if o != nil && o.WhenPartnerDevicesWillBeRemovedDateTime != nil {239 return true240 }241 return false242}243// SetWhenPartnerDevicesWillBeRemovedDateTime gets a reference to the given time.Time and assigns it to the WhenPartnerDevicesWillBeRemovedDateTime field.244func (o *DeviceManagementPartner) SetWhenPartnerDevicesWillBeRemovedDateTime(v time.Time) {245 o.WhenPartnerDevicesWillBeRemovedDateTime = &v246}247// SetWhenPartnerDevicesWillBeRemovedDateTimeExplicitNull (un)sets WhenPartnerDevicesWillBeRemovedDateTime to be considered as explicit "null" value248// when serializing to JSON (pass true as argument to set this, false to unset)249// The WhenPartnerDevicesWillBeRemovedDateTime value is set to nil even if false is passed250func (o *DeviceManagementPartner) SetWhenPartnerDevicesWillBeRemovedDateTimeExplicitNull(b bool) {251 o.WhenPartnerDevicesWillBeRemovedDateTime = nil252 o.isExplicitNullWhenPartnerDevicesWillBeRemovedDateTime = b253}254// GetWhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime returns the WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime field if non-nil, zero value otherwise.255func (o *DeviceManagementPartner) GetWhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime() time.Time {256 if o == nil || o.WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime == nil {257 var ret time.Time258 return ret259 }260 return *o.WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime261}262// GetWhenPartnerDevicesWillBeMarkedAsNonCompliantDateTimeOk returns a tuple with the WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime field if it's non-nil, zero value otherwise263// and a boolean to check if the value has been set.264func (o *DeviceManagementPartner) GetWhenPartnerDevicesWillBeMarkedAsNonCompliantDateTimeOk() (time.Time, bool) {265 if o == nil || o.WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime == nil {266 var ret time.Time267 return ret, false268 }269 return *o.WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime, true270}271// HasWhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime returns a boolean if a field has been set.272func (o *DeviceManagementPartner) HasWhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime() bool {273 if o != nil && o.WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime != nil {274 return true275 }276 return false277}278// SetWhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime gets a reference to the given time.Time and assigns it to the WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime field.279func (o *DeviceManagementPartner) SetWhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime(v time.Time) {280 o.WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime = &v281}282// SetWhenPartnerDevicesWillBeMarkedAsNonCompliantDateTimeExplicitNull (un)sets WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime to be considered as explicit "null" value283// when serializing to JSON (pass true as argument to set this, false to unset)284// The WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime value is set to nil even if false is passed285func (o *DeviceManagementPartner) SetWhenPartnerDevicesWillBeMarkedAsNonCompliantDateTimeExplicitNull(b bool) {...

Full Screen

Full Screen

model_detected_app.go

Source:model_detected_app.go Github

copy

Full Screen

...32 }33 return *o.DisplayName34}35// GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise36// and a boolean to check if the value has been set.37func (o *DetectedApp) GetDisplayNameOk() (string, bool) {38 if o == nil || o.DisplayName == nil {39 var ret string40 return ret, false41 }42 return *o.DisplayName, true43}44// HasDisplayName returns a boolean if a field has been set.45func (o *DetectedApp) HasDisplayName() bool {46 if o != nil && o.DisplayName != nil {47 return true48 }49 return false50}51// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.52func (o *DetectedApp) SetDisplayName(v string) {53 o.DisplayName = &v54}55// SetDisplayNameExplicitNull (un)sets DisplayName to be considered as explicit "null" value56// when serializing to JSON (pass true as argument to set this, false to unset)57// The DisplayName value is set to nil even if false is passed58func (o *DetectedApp) SetDisplayNameExplicitNull(b bool) {59 o.DisplayName = nil60 o.isExplicitNullDisplayName = b61}62// GetVersion returns the Version field if non-nil, zero value otherwise.63func (o *DetectedApp) GetVersion() string {64 if o == nil || o.Version == nil {65 var ret string66 return ret67 }68 return *o.Version69}70// GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise71// and a boolean to check if the value has been set.72func (o *DetectedApp) GetVersionOk() (string, bool) {73 if o == nil || o.Version == nil {74 var ret string75 return ret, false76 }77 return *o.Version, true78}79// HasVersion returns a boolean if a field has been set.80func (o *DetectedApp) HasVersion() bool {81 if o != nil && o.Version != nil {82 return true83 }84 return false85}86// SetVersion gets a reference to the given string and assigns it to the Version field.87func (o *DetectedApp) SetVersion(v string) {88 o.Version = &v89}90// SetVersionExplicitNull (un)sets Version to be considered as explicit "null" value91// when serializing to JSON (pass true as argument to set this, false to unset)92// The Version value is set to nil even if false is passed93func (o *DetectedApp) SetVersionExplicitNull(b bool) {94 o.Version = nil95 o.isExplicitNullVersion = b96}97// GetSizeInByte returns the SizeInByte field if non-nil, zero value otherwise.98func (o *DetectedApp) GetSizeInByte() int64 {99 if o == nil || o.SizeInByte == nil {100 var ret int64101 return ret102 }103 return *o.SizeInByte104}105// GetSizeInByteOk returns a tuple with the SizeInByte field if it's non-nil, zero value otherwise106// and a boolean to check if the value has been set.107func (o *DetectedApp) GetSizeInByteOk() (int64, bool) {108 if o == nil || o.SizeInByte == nil {109 var ret int64110 return ret, false111 }112 return *o.SizeInByte, true113}114// HasSizeInByte returns a boolean if a field has been set.115func (o *DetectedApp) HasSizeInByte() bool {116 if o != nil && o.SizeInByte != nil {117 return true118 }119 return false120}121// SetSizeInByte gets a reference to the given int64 and assigns it to the SizeInByte field.122func (o *DetectedApp) SetSizeInByte(v int64) {123 o.SizeInByte = &v124}125// GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise.126func (o *DetectedApp) GetDeviceCount() int32 {127 if o == nil || o.DeviceCount == nil {128 var ret int32129 return ret130 }131 return *o.DeviceCount132}133// GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise134// and a boolean to check if the value has been set.135func (o *DetectedApp) GetDeviceCountOk() (int32, bool) {136 if o == nil || o.DeviceCount == nil {137 var ret int32138 return ret, false139 }140 return *o.DeviceCount, true141}142// HasDeviceCount returns a boolean if a field has been set.143func (o *DetectedApp) HasDeviceCount() bool {144 if o != nil && o.DeviceCount != nil {145 return true146 }147 return false148}149// SetDeviceCount gets a reference to the given int32 and assigns it to the DeviceCount field.150func (o *DetectedApp) SetDeviceCount(v int32) {151 o.DeviceCount = &v152}153// GetManagedDevices returns the ManagedDevices field if non-nil, zero value otherwise.154func (o *DetectedApp) GetManagedDevices() []MicrosoftGraphManagedDevice {155 if o == nil || o.ManagedDevices == nil {156 var ret []MicrosoftGraphManagedDevice157 return ret158 }159 return *o.ManagedDevices160}161// GetManagedDevicesOk returns a tuple with the ManagedDevices field if it's non-nil, zero value otherwise162// and a boolean to check if the value has been set.163func (o *DetectedApp) GetManagedDevicesOk() ([]MicrosoftGraphManagedDevice, bool) {164 if o == nil || o.ManagedDevices == nil {165 var ret []MicrosoftGraphManagedDevice166 return ret, false167 }168 return *o.ManagedDevices, true169}170// HasManagedDevices returns a boolean if a field has been set.171func (o *DetectedApp) HasManagedDevices() bool {172 if o != nil && o.ManagedDevices != nil {173 return true174 }175 return false176}177// SetManagedDevices gets a reference to the given []MicrosoftGraphManagedDevice and assigns it to the ManagedDevices field.178func (o *DetectedApp) SetManagedDevices(v []MicrosoftGraphManagedDevice) {179 o.ManagedDevices = &v180}181// MarshalJSON returns the JSON representation of the model.182func (o DetectedApp) MarshalJSON() ([]byte, error) {183 toSerialize := map[string]interface{}{}184 if o.DisplayName == nil {...

Full Screen

Full Screen

has

Using AI Code Generation

copy

Full Screen

1import "fmt"2func main() {3 d1 := devices{1, 2}4 d2 := devices{2, 3}5 fmt.Println(d1.has(d2))6}7import "fmt"8func main() {9 d1 := devices{1, 2}10 d2 := devices{2, 3}11 fmt.Println(d1.has(d2))12}13./2.go:7:11: d1.has undefined (type devices has no field or method has)14./2.go:7:16: d2 undefined (type devices has no field or method has)

Full Screen

Full Screen

has

Using AI Code Generation

copy

Full Screen

1import (2type Devices struct {3}4func (d *Devices) has() {5 fmt.Println(d.name, "has")6}7type Computer struct {8}9func (c *Computer) has() {10 fmt.Println(c.name, "has")11}12func main() {13 c := Computer{Devices{"computer"}}14 c.Devices.has()15 c.has()16}

Full Screen

Full Screen

has

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 devices := Devices{}4 fmt.Println(devices.Has("iphone"))5}6type Devices struct {7}8func (devices Devices) Has(device string) bool {9}

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Rod automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful