|
| 1 | +from __future__ import annotations |
| 2 | +from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter |
| 3 | +from kiota_abstractions.utils import lazy_import |
| 4 | +from typing import Any, Callable, Dict, List, Optional, Union |
| 5 | + |
| 6 | +class GetDevicesWithoutCompliancePolicyReportPostRequestBody(AdditionalDataHolder, Parsable): |
| 7 | + @property |
| 8 | + def additional_data(self,) -> Dict[str, Any]: |
| 9 | + """ |
| 10 | + Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. |
| 11 | + Returns: Dict[str, Any] |
| 12 | + """ |
| 13 | + return self._additional_data |
| 14 | + |
| 15 | + @additional_data.setter |
| 16 | + def additional_data(self,value: Dict[str, Any]) -> None: |
| 17 | + """ |
| 18 | + Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. |
| 19 | + Args: |
| 20 | + value: Value to set for the AdditionalData property. |
| 21 | + """ |
| 22 | + self._additional_data = value |
| 23 | + |
| 24 | + def __init__(self,) -> None: |
| 25 | + """ |
| 26 | + Instantiates a new getDevicesWithoutCompliancePolicyReportPostRequestBody and sets the default values. |
| 27 | + """ |
| 28 | + # Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. |
| 29 | + self._additional_data: Dict[str, Any] = {} |
| 30 | + |
| 31 | + # The filter property |
| 32 | + self._filter: Optional[str] = None |
| 33 | + # The groupBy property |
| 34 | + self._group_by: Optional[List[str]] = None |
| 35 | + # The name property |
| 36 | + self._name: Optional[str] = None |
| 37 | + # The orderBy property |
| 38 | + self._order_by: Optional[List[str]] = None |
| 39 | + # The search property |
| 40 | + self._search: Optional[str] = None |
| 41 | + # The select property |
| 42 | + self._select: Optional[List[str]] = None |
| 43 | + # The sessionId property |
| 44 | + self._session_id: Optional[str] = None |
| 45 | + # The skip property |
| 46 | + self._skip: Optional[int] = None |
| 47 | + # The top property |
| 48 | + self._top: Optional[int] = None |
| 49 | + |
| 50 | + @staticmethod |
| 51 | + def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> GetDevicesWithoutCompliancePolicyReportPostRequestBody: |
| 52 | + """ |
| 53 | + Creates a new instance of the appropriate class based on discriminator value |
| 54 | + Args: |
| 55 | + parseNode: The parse node to use to read the discriminator value and create the object |
| 56 | + Returns: GetDevicesWithoutCompliancePolicyReportPostRequestBody |
| 57 | + """ |
| 58 | + if parse_node is None: |
| 59 | + raise Exception("parse_node cannot be undefined") |
| 60 | + return GetDevicesWithoutCompliancePolicyReportPostRequestBody() |
| 61 | + |
| 62 | + @property |
| 63 | + def filter(self,) -> Optional[str]: |
| 64 | + """ |
| 65 | + Gets the filter property value. The filter property |
| 66 | + Returns: Optional[str] |
| 67 | + """ |
| 68 | + return self._filter |
| 69 | + |
| 70 | + @filter.setter |
| 71 | + def filter(self,value: Optional[str] = None) -> None: |
| 72 | + """ |
| 73 | + Sets the filter property value. The filter property |
| 74 | + Args: |
| 75 | + value: Value to set for the filter property. |
| 76 | + """ |
| 77 | + self._filter = value |
| 78 | + |
| 79 | + def get_field_deserializers(self,) -> Dict[str, Callable[[ParseNode], None]]: |
| 80 | + """ |
| 81 | + The deserialization information for the current model |
| 82 | + Returns: Dict[str, Callable[[ParseNode], None]] |
| 83 | + """ |
| 84 | + fields = { |
| 85 | + "filter": lambda n : setattr(self, 'filter', n.get_str_value()), |
| 86 | + "group_by": lambda n : setattr(self, 'group_by', n.get_collection_of_primitive_values(str)), |
| 87 | + "name": lambda n : setattr(self, 'name', n.get_str_value()), |
| 88 | + "order_by": lambda n : setattr(self, 'order_by', n.get_collection_of_primitive_values(str)), |
| 89 | + "search": lambda n : setattr(self, 'search', n.get_str_value()), |
| 90 | + "select": lambda n : setattr(self, 'select', n.get_collection_of_primitive_values(str)), |
| 91 | + "session_id": lambda n : setattr(self, 'session_id', n.get_str_value()), |
| 92 | + "skip": lambda n : setattr(self, 'skip', n.get_int_value()), |
| 93 | + "top": lambda n : setattr(self, 'top', n.get_int_value()), |
| 94 | + } |
| 95 | + return fields |
| 96 | + |
| 97 | + @property |
| 98 | + def group_by(self,) -> Optional[List[str]]: |
| 99 | + """ |
| 100 | + Gets the groupBy property value. The groupBy property |
| 101 | + Returns: Optional[List[str]] |
| 102 | + """ |
| 103 | + return self._group_by |
| 104 | + |
| 105 | + @group_by.setter |
| 106 | + def group_by(self,value: Optional[List[str]] = None) -> None: |
| 107 | + """ |
| 108 | + Sets the groupBy property value. The groupBy property |
| 109 | + Args: |
| 110 | + value: Value to set for the groupBy property. |
| 111 | + """ |
| 112 | + self._group_by = value |
| 113 | + |
| 114 | + @property |
| 115 | + def name(self,) -> Optional[str]: |
| 116 | + """ |
| 117 | + Gets the name property value. The name property |
| 118 | + Returns: Optional[str] |
| 119 | + """ |
| 120 | + return self._name |
| 121 | + |
| 122 | + @name.setter |
| 123 | + def name(self,value: Optional[str] = None) -> None: |
| 124 | + """ |
| 125 | + Sets the name property value. The name property |
| 126 | + Args: |
| 127 | + value: Value to set for the name property. |
| 128 | + """ |
| 129 | + self._name = value |
| 130 | + |
| 131 | + @property |
| 132 | + def order_by(self,) -> Optional[List[str]]: |
| 133 | + """ |
| 134 | + Gets the orderBy property value. The orderBy property |
| 135 | + Returns: Optional[List[str]] |
| 136 | + """ |
| 137 | + return self._order_by |
| 138 | + |
| 139 | + @order_by.setter |
| 140 | + def order_by(self,value: Optional[List[str]] = None) -> None: |
| 141 | + """ |
| 142 | + Sets the orderBy property value. The orderBy property |
| 143 | + Args: |
| 144 | + value: Value to set for the orderBy property. |
| 145 | + """ |
| 146 | + self._order_by = value |
| 147 | + |
| 148 | + @property |
| 149 | + def search(self,) -> Optional[str]: |
| 150 | + """ |
| 151 | + Gets the search property value. The search property |
| 152 | + Returns: Optional[str] |
| 153 | + """ |
| 154 | + return self._search |
| 155 | + |
| 156 | + @search.setter |
| 157 | + def search(self,value: Optional[str] = None) -> None: |
| 158 | + """ |
| 159 | + Sets the search property value. The search property |
| 160 | + Args: |
| 161 | + value: Value to set for the search property. |
| 162 | + """ |
| 163 | + self._search = value |
| 164 | + |
| 165 | + @property |
| 166 | + def select(self,) -> Optional[List[str]]: |
| 167 | + """ |
| 168 | + Gets the select property value. The select property |
| 169 | + Returns: Optional[List[str]] |
| 170 | + """ |
| 171 | + return self._select |
| 172 | + |
| 173 | + @select.setter |
| 174 | + def select(self,value: Optional[List[str]] = None) -> None: |
| 175 | + """ |
| 176 | + Sets the select property value. The select property |
| 177 | + Args: |
| 178 | + value: Value to set for the select property. |
| 179 | + """ |
| 180 | + self._select = value |
| 181 | + |
| 182 | + def serialize(self,writer: SerializationWriter) -> None: |
| 183 | + """ |
| 184 | + Serializes information the current object |
| 185 | + Args: |
| 186 | + writer: Serialization writer to use to serialize this model |
| 187 | + """ |
| 188 | + if writer is None: |
| 189 | + raise Exception("writer cannot be undefined") |
| 190 | + writer.write_str_value("filter", self.filter) |
| 191 | + writer.write_collection_of_primitive_values("groupBy", self.group_by) |
| 192 | + writer.write_str_value("name", self.name) |
| 193 | + writer.write_collection_of_primitive_values("orderBy", self.order_by) |
| 194 | + writer.write_str_value("search", self.search) |
| 195 | + writer.write_collection_of_primitive_values("select", self.select) |
| 196 | + writer.write_str_value("sessionId", self.session_id) |
| 197 | + writer.write_int_value("skip", self.skip) |
| 198 | + writer.write_int_value("top", self.top) |
| 199 | + writer.write_additional_data_value(self.additional_data) |
| 200 | + |
| 201 | + @property |
| 202 | + def session_id(self,) -> Optional[str]: |
| 203 | + """ |
| 204 | + Gets the sessionId property value. The sessionId property |
| 205 | + Returns: Optional[str] |
| 206 | + """ |
| 207 | + return self._session_id |
| 208 | + |
| 209 | + @session_id.setter |
| 210 | + def session_id(self,value: Optional[str] = None) -> None: |
| 211 | + """ |
| 212 | + Sets the sessionId property value. The sessionId property |
| 213 | + Args: |
| 214 | + value: Value to set for the sessionId property. |
| 215 | + """ |
| 216 | + self._session_id = value |
| 217 | + |
| 218 | + @property |
| 219 | + def skip(self,) -> Optional[int]: |
| 220 | + """ |
| 221 | + Gets the skip property value. The skip property |
| 222 | + Returns: Optional[int] |
| 223 | + """ |
| 224 | + return self._skip |
| 225 | + |
| 226 | + @skip.setter |
| 227 | + def skip(self,value: Optional[int] = None) -> None: |
| 228 | + """ |
| 229 | + Sets the skip property value. The skip property |
| 230 | + Args: |
| 231 | + value: Value to set for the skip property. |
| 232 | + """ |
| 233 | + self._skip = value |
| 234 | + |
| 235 | + @property |
| 236 | + def top(self,) -> Optional[int]: |
| 237 | + """ |
| 238 | + Gets the top property value. The top property |
| 239 | + Returns: Optional[int] |
| 240 | + """ |
| 241 | + return self._top |
| 242 | + |
| 243 | + @top.setter |
| 244 | + def top(self,value: Optional[int] = None) -> None: |
| 245 | + """ |
| 246 | + Sets the top property value. The top property |
| 247 | + Args: |
| 248 | + value: Value to set for the top property. |
| 249 | + """ |
| 250 | + self._top = value |
| 251 | + |
| 252 | + |
0 commit comments