ghostcrawl 2.3.5 → 2.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +59 -12
- data/_generated/models/arrival_body.rb +325 -0
- data/_generated/models/arrival_body_profile_id_member1.rb +62 -0
- data/_generated/models/arrival_body_referrer_shape.rb +8 -0
- data/_generated/models/arrival_body_session_id_member1.rb +62 -0
- data/_generated/models/close_popups_body.rb +264 -0
- data/_generated/models/close_popups_body_keep_host_member1.rb +62 -0
- data/_generated/models/close_popups_body_profile_id_member1.rb +62 -0
- data/_generated/models/models.rb +18 -0
- data/_generated/models/mouse_body.rb +264 -0
- data/_generated/models/mouse_body_ops.rb +62 -0
- data/_generated/models/mouse_body_profile_id_member1.rb +62 -0
- data/_generated/models/mouse_body_session_id_member1.rb +62 -0
- data/_generated/models/scrape_request.rb +6 -6
- data/_generated/models/scrape_request_engine.rb +1 -1
- data/_generated/models/session_create_request.rb +3 -3
- data/_generated/models/tab_visit_body.rb +285 -0
- data/_generated/models/tab_visit_body_profile_id_member1.rb +62 -0
- data/_generated/models/tab_visit_body_session_id_member1.rb +62 -0
- data/_generated/models/touch_body.rb +264 -0
- data/_generated/models/touch_body_ops.rb +62 -0
- data/_generated/models/touch_body_profile_id_member1.rb +62 -0
- data/_generated/models/touch_body_session_id_member1.rb +62 -0
- data/_generated/v1/cdp/frame/frame_request_builder.rb +2 -2
- data/_generated/v1/crawl_runs/item/with_run_item_request_builder.rb +3 -3
- data/_generated/v1/page/arrival/arrival.rb +0 -0
- data/_generated/v1/page/arrival/arrival_request_builder.rb +74 -0
- data/_generated/v1/page/close_popups/close_popups.rb +0 -0
- data/_generated/v1/page/close_popups/close_popups_request_builder.rb +74 -0
- data/_generated/v1/page/mouse/mouse.rb +0 -0
- data/_generated/v1/page/mouse/mouse_request_builder.rb +74 -0
- data/_generated/v1/page/page_request_builder.rb +30 -0
- data/_generated/v1/page/tab_visit/tab_visit.rb +0 -0
- data/_generated/v1/page/tab_visit/tab_visit_request_builder.rb +74 -0
- data/_generated/v1/page/touch/touch.rb +0 -0
- data/_generated/v1/page/touch/touch_request_builder.rb +74 -0
- data/_generated/v1/profiles/item/with_name_item_request_builder.rb +2 -2
- data/_generated/v1/schedules/item/runs/runs_request_builder.rb +2 -2
- data/_generated/v1/search/jobs/item/with_job_item_request_builder.rb +2 -2
- data/_generated/v1/sessions/item/takeover/takeover_request_builder.rb +2 -2
- data/_generated/v1/sessions/sessions_request_builder.rb +3 -3
- data/lib/ghostcrawl/client.rb +1001 -46
- data/lib/ghostcrawl/error_codes.rb +26 -25
- data/lib/ghostcrawl/errors.rb +35 -2
- data/lib/ghostcrawl/version.rb +1 -1
- metadata +30 -2
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../ghostcrawl'
|
|
3
|
+
require_relative './models'
|
|
4
|
+
|
|
5
|
+
module GhostCrawl
|
|
6
|
+
module Models
|
|
7
|
+
class TabVisitBody
|
|
8
|
+
include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
|
|
9
|
+
##
|
|
10
|
+
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
11
|
+
@additional_data
|
|
12
|
+
##
|
|
13
|
+
# The dwell_s property
|
|
14
|
+
@dwell_s
|
|
15
|
+
##
|
|
16
|
+
# The profile_id property
|
|
17
|
+
@profile_id
|
|
18
|
+
##
|
|
19
|
+
# The session_id property
|
|
20
|
+
@session_id
|
|
21
|
+
##
|
|
22
|
+
# The url property
|
|
23
|
+
@url
|
|
24
|
+
##
|
|
25
|
+
## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
26
|
+
## @return a i_dictionary
|
|
27
|
+
##
|
|
28
|
+
def additional_data
|
|
29
|
+
return @additional_data
|
|
30
|
+
end
|
|
31
|
+
##
|
|
32
|
+
## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
33
|
+
## @param value Value to set for the AdditionalData property.
|
|
34
|
+
## @return a void
|
|
35
|
+
##
|
|
36
|
+
def additional_data=(value)
|
|
37
|
+
@additional_data = value
|
|
38
|
+
end
|
|
39
|
+
##
|
|
40
|
+
## Instantiates a new TabVisitBody and sets the default values.
|
|
41
|
+
## @return a void
|
|
42
|
+
##
|
|
43
|
+
def initialize()
|
|
44
|
+
@additional_data = Hash.new
|
|
45
|
+
@dwell_s = 3
|
|
46
|
+
end
|
|
47
|
+
##
|
|
48
|
+
## Creates a new instance of the appropriate class based on discriminator value
|
|
49
|
+
## @param parse_node The parse node to use to read the discriminator value and create the object
|
|
50
|
+
## @return a tab_visit_body
|
|
51
|
+
##
|
|
52
|
+
def self.create_from_discriminator_value(parse_node)
|
|
53
|
+
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
|
|
54
|
+
return TabVisitBody.new
|
|
55
|
+
end
|
|
56
|
+
##
|
|
57
|
+
## Gets the dwell_s property value. The dwell_s property
|
|
58
|
+
## @return a double
|
|
59
|
+
##
|
|
60
|
+
def dwell_s
|
|
61
|
+
return @dwell_s
|
|
62
|
+
end
|
|
63
|
+
##
|
|
64
|
+
## Sets the dwell_s property value. The dwell_s property
|
|
65
|
+
## @param value Value to set for the dwell_s property.
|
|
66
|
+
## @return a void
|
|
67
|
+
##
|
|
68
|
+
def dwell_s=(value)
|
|
69
|
+
@dwell_s = value
|
|
70
|
+
end
|
|
71
|
+
##
|
|
72
|
+
## The deserialization information for the current model
|
|
73
|
+
## @return a i_dictionary
|
|
74
|
+
##
|
|
75
|
+
def get_field_deserializers()
|
|
76
|
+
return {
|
|
77
|
+
"dwell_s" => lambda {|n| @dwell_s = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) },
|
|
78
|
+
"profile_id" => lambda {|n| @profile_id = n.get_object_value(lambda {|pn| TabVisitBody::TabVisitBodyProfileId.create_from_discriminator_value(pn) }) },
|
|
79
|
+
"session_id" => lambda {|n| @session_id = n.get_object_value(lambda {|pn| TabVisitBody::TabVisitBodySessionId.create_from_discriminator_value(pn) }) },
|
|
80
|
+
"url" => lambda {|n| @url = n.get_string_value() },
|
|
81
|
+
}
|
|
82
|
+
end
|
|
83
|
+
##
|
|
84
|
+
## Gets the profile_id property value. The profile_id property
|
|
85
|
+
## @return a tab_visit_body_profile_id
|
|
86
|
+
##
|
|
87
|
+
def profile_id
|
|
88
|
+
return @profile_id
|
|
89
|
+
end
|
|
90
|
+
##
|
|
91
|
+
## Sets the profile_id property value. The profile_id property
|
|
92
|
+
## @param value Value to set for the profile_id property.
|
|
93
|
+
## @return a void
|
|
94
|
+
##
|
|
95
|
+
def profile_id=(value)
|
|
96
|
+
@profile_id = value
|
|
97
|
+
end
|
|
98
|
+
##
|
|
99
|
+
## Serializes information the current object
|
|
100
|
+
## @param writer Serialization writer to use to serialize this model
|
|
101
|
+
## @return a void
|
|
102
|
+
##
|
|
103
|
+
def serialize(writer)
|
|
104
|
+
raise StandardError, 'writer cannot be null' if writer.nil?
|
|
105
|
+
writer.write_object_value("dwell_s", @dwell_s)
|
|
106
|
+
writer.write_object_value("profile_id", @profile_id)
|
|
107
|
+
writer.write_object_value("session_id", @session_id)
|
|
108
|
+
writer.write_string_value("url", @url)
|
|
109
|
+
writer.write_additional_data(@additional_data)
|
|
110
|
+
end
|
|
111
|
+
##
|
|
112
|
+
## Gets the session_id property value. The session_id property
|
|
113
|
+
## @return a tab_visit_body_session_id
|
|
114
|
+
##
|
|
115
|
+
def session_id
|
|
116
|
+
return @session_id
|
|
117
|
+
end
|
|
118
|
+
##
|
|
119
|
+
## Sets the session_id property value. The session_id property
|
|
120
|
+
## @param value Value to set for the session_id property.
|
|
121
|
+
## @return a void
|
|
122
|
+
##
|
|
123
|
+
def session_id=(value)
|
|
124
|
+
@session_id = value
|
|
125
|
+
end
|
|
126
|
+
##
|
|
127
|
+
## Gets the url property value. The url property
|
|
128
|
+
## @return a string
|
|
129
|
+
##
|
|
130
|
+
def url
|
|
131
|
+
return @url
|
|
132
|
+
end
|
|
133
|
+
##
|
|
134
|
+
## Sets the url property value. The url property
|
|
135
|
+
## @param value Value to set for the url property.
|
|
136
|
+
## @return a void
|
|
137
|
+
##
|
|
138
|
+
def url=(value)
|
|
139
|
+
@url = value
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
##
|
|
143
|
+
# Composed type wrapper for classes string, TabVisitBodyProfileIdMember1
|
|
144
|
+
class TabVisitBodyProfileId
|
|
145
|
+
include MicrosoftKiotaAbstractions::Parsable
|
|
146
|
+
##
|
|
147
|
+
# Composed type representation for type string
|
|
148
|
+
@string
|
|
149
|
+
##
|
|
150
|
+
# Composed type representation for type TabVisitBodyProfileIdMember1
|
|
151
|
+
@tab_visit_body_profile_id_member1
|
|
152
|
+
##
|
|
153
|
+
## Creates a new instance of the appropriate class based on discriminator value
|
|
154
|
+
## @param parse_node The parse node to use to read the discriminator value and create the object
|
|
155
|
+
## @return a tab_visit_body_profile_id
|
|
156
|
+
##
|
|
157
|
+
def self.create_from_discriminator_value(parse_node)
|
|
158
|
+
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
|
|
159
|
+
return TabVisitBodyProfileId.new
|
|
160
|
+
end
|
|
161
|
+
##
|
|
162
|
+
## The deserialization information for the current model
|
|
163
|
+
## @return a i_dictionary
|
|
164
|
+
##
|
|
165
|
+
def get_field_deserializers()
|
|
166
|
+
return {
|
|
167
|
+
"string" => lambda {|n| @string = n.get_string_value() },
|
|
168
|
+
"TabVisitBody_profile_idMember1" => lambda {|n| @tab_visit_body_profile_id_member1 = n.get_object_value(lambda {|pn| GhostCrawl::Models::TabVisitBodyProfileIdMember1.create_from_discriminator_value(pn) }) },
|
|
169
|
+
}
|
|
170
|
+
end
|
|
171
|
+
##
|
|
172
|
+
## Serializes information the current object
|
|
173
|
+
## @param writer Serialization writer to use to serialize this model
|
|
174
|
+
## @return a void
|
|
175
|
+
##
|
|
176
|
+
def serialize(writer)
|
|
177
|
+
raise StandardError, 'writer cannot be null' if writer.nil?
|
|
178
|
+
writer.write_string_value("string", @string)
|
|
179
|
+
writer.write_object_value("TabVisitBody_profile_idMember1", @tab_visit_body_profile_id_member1)
|
|
180
|
+
end
|
|
181
|
+
##
|
|
182
|
+
## Gets the string property value. Composed type representation for type string
|
|
183
|
+
## @return a string
|
|
184
|
+
##
|
|
185
|
+
def string
|
|
186
|
+
return @string
|
|
187
|
+
end
|
|
188
|
+
##
|
|
189
|
+
## Sets the string property value. Composed type representation for type string
|
|
190
|
+
## @param value Value to set for the string property.
|
|
191
|
+
## @return a void
|
|
192
|
+
##
|
|
193
|
+
def string=(value)
|
|
194
|
+
@string = value
|
|
195
|
+
end
|
|
196
|
+
##
|
|
197
|
+
## Gets the TabVisitBody_profile_idMember1 property value. Composed type representation for type TabVisitBodyProfileIdMember1
|
|
198
|
+
## @return a tab_visit_body_profile_id_member1
|
|
199
|
+
##
|
|
200
|
+
def tab_visit_body_profile_id_member1
|
|
201
|
+
return @tab_visit_body_profile_id_member1
|
|
202
|
+
end
|
|
203
|
+
##
|
|
204
|
+
## Sets the TabVisitBody_profile_idMember1 property value. Composed type representation for type TabVisitBodyProfileIdMember1
|
|
205
|
+
## @param value Value to set for the TabVisitBody_profile_idMember1 property.
|
|
206
|
+
## @return a void
|
|
207
|
+
##
|
|
208
|
+
def tab_visit_body_profile_id_member1=(value)
|
|
209
|
+
@tab_visit_body_profile_id_member1 = value
|
|
210
|
+
end
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
##
|
|
214
|
+
# Composed type wrapper for classes string, TabVisitBodySessionIdMember1
|
|
215
|
+
class TabVisitBodySessionId
|
|
216
|
+
include MicrosoftKiotaAbstractions::Parsable
|
|
217
|
+
##
|
|
218
|
+
# Composed type representation for type string
|
|
219
|
+
@string
|
|
220
|
+
##
|
|
221
|
+
# Composed type representation for type TabVisitBodySessionIdMember1
|
|
222
|
+
@tab_visit_body_session_id_member1
|
|
223
|
+
##
|
|
224
|
+
## Creates a new instance of the appropriate class based on discriminator value
|
|
225
|
+
## @param parse_node The parse node to use to read the discriminator value and create the object
|
|
226
|
+
## @return a tab_visit_body_session_id
|
|
227
|
+
##
|
|
228
|
+
def self.create_from_discriminator_value(parse_node)
|
|
229
|
+
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
|
|
230
|
+
return TabVisitBodySessionId.new
|
|
231
|
+
end
|
|
232
|
+
##
|
|
233
|
+
## The deserialization information for the current model
|
|
234
|
+
## @return a i_dictionary
|
|
235
|
+
##
|
|
236
|
+
def get_field_deserializers()
|
|
237
|
+
return {
|
|
238
|
+
"string" => lambda {|n| @string = n.get_string_value() },
|
|
239
|
+
"TabVisitBody_session_idMember1" => lambda {|n| @tab_visit_body_session_id_member1 = n.get_object_value(lambda {|pn| GhostCrawl::Models::TabVisitBodySessionIdMember1.create_from_discriminator_value(pn) }) },
|
|
240
|
+
}
|
|
241
|
+
end
|
|
242
|
+
##
|
|
243
|
+
## Serializes information the current object
|
|
244
|
+
## @param writer Serialization writer to use to serialize this model
|
|
245
|
+
## @return a void
|
|
246
|
+
##
|
|
247
|
+
def serialize(writer)
|
|
248
|
+
raise StandardError, 'writer cannot be null' if writer.nil?
|
|
249
|
+
writer.write_string_value("string", @string)
|
|
250
|
+
writer.write_object_value("TabVisitBody_session_idMember1", @tab_visit_body_session_id_member1)
|
|
251
|
+
end
|
|
252
|
+
##
|
|
253
|
+
## Gets the string property value. Composed type representation for type string
|
|
254
|
+
## @return a string
|
|
255
|
+
##
|
|
256
|
+
def string
|
|
257
|
+
return @string
|
|
258
|
+
end
|
|
259
|
+
##
|
|
260
|
+
## Sets the string property value. Composed type representation for type string
|
|
261
|
+
## @param value Value to set for the string property.
|
|
262
|
+
## @return a void
|
|
263
|
+
##
|
|
264
|
+
def string=(value)
|
|
265
|
+
@string = value
|
|
266
|
+
end
|
|
267
|
+
##
|
|
268
|
+
## Gets the TabVisitBody_session_idMember1 property value. Composed type representation for type TabVisitBodySessionIdMember1
|
|
269
|
+
## @return a tab_visit_body_session_id_member1
|
|
270
|
+
##
|
|
271
|
+
def tab_visit_body_session_id_member1
|
|
272
|
+
return @tab_visit_body_session_id_member1
|
|
273
|
+
end
|
|
274
|
+
##
|
|
275
|
+
## Sets the TabVisitBody_session_idMember1 property value. Composed type representation for type TabVisitBodySessionIdMember1
|
|
276
|
+
## @param value Value to set for the TabVisitBody_session_idMember1 property.
|
|
277
|
+
## @return a void
|
|
278
|
+
##
|
|
279
|
+
def tab_visit_body_session_id_member1=(value)
|
|
280
|
+
@tab_visit_body_session_id_member1 = value
|
|
281
|
+
end
|
|
282
|
+
end
|
|
283
|
+
end
|
|
284
|
+
end
|
|
285
|
+
end
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../ghostcrawl'
|
|
3
|
+
require_relative './models'
|
|
4
|
+
|
|
5
|
+
module GhostCrawl
|
|
6
|
+
module Models
|
|
7
|
+
class TabVisitBodyProfileIdMember1
|
|
8
|
+
include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
|
|
9
|
+
##
|
|
10
|
+
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
11
|
+
@additional_data
|
|
12
|
+
##
|
|
13
|
+
## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
14
|
+
## @return a i_dictionary
|
|
15
|
+
##
|
|
16
|
+
def additional_data
|
|
17
|
+
return @additional_data
|
|
18
|
+
end
|
|
19
|
+
##
|
|
20
|
+
## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
21
|
+
## @param value Value to set for the AdditionalData property.
|
|
22
|
+
## @return a void
|
|
23
|
+
##
|
|
24
|
+
def additional_data=(value)
|
|
25
|
+
@additional_data = value
|
|
26
|
+
end
|
|
27
|
+
##
|
|
28
|
+
## Instantiates a new TabVisitBodyProfileIdMember1 and sets the default values.
|
|
29
|
+
## @return a void
|
|
30
|
+
##
|
|
31
|
+
def initialize()
|
|
32
|
+
@additional_data = Hash.new
|
|
33
|
+
end
|
|
34
|
+
##
|
|
35
|
+
## Creates a new instance of the appropriate class based on discriminator value
|
|
36
|
+
## @param parse_node The parse node to use to read the discriminator value and create the object
|
|
37
|
+
## @return a tab_visit_body_profile_id_member1
|
|
38
|
+
##
|
|
39
|
+
def self.create_from_discriminator_value(parse_node)
|
|
40
|
+
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
|
|
41
|
+
return TabVisitBodyProfileIdMember1.new
|
|
42
|
+
end
|
|
43
|
+
##
|
|
44
|
+
## The deserialization information for the current model
|
|
45
|
+
## @return a i_dictionary
|
|
46
|
+
##
|
|
47
|
+
def get_field_deserializers()
|
|
48
|
+
return {
|
|
49
|
+
}
|
|
50
|
+
end
|
|
51
|
+
##
|
|
52
|
+
## Serializes information the current object
|
|
53
|
+
## @param writer Serialization writer to use to serialize this model
|
|
54
|
+
## @return a void
|
|
55
|
+
##
|
|
56
|
+
def serialize(writer)
|
|
57
|
+
raise StandardError, 'writer cannot be null' if writer.nil?
|
|
58
|
+
writer.write_additional_data(@additional_data)
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../ghostcrawl'
|
|
3
|
+
require_relative './models'
|
|
4
|
+
|
|
5
|
+
module GhostCrawl
|
|
6
|
+
module Models
|
|
7
|
+
class TabVisitBodySessionIdMember1
|
|
8
|
+
include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
|
|
9
|
+
##
|
|
10
|
+
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
11
|
+
@additional_data
|
|
12
|
+
##
|
|
13
|
+
## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
14
|
+
## @return a i_dictionary
|
|
15
|
+
##
|
|
16
|
+
def additional_data
|
|
17
|
+
return @additional_data
|
|
18
|
+
end
|
|
19
|
+
##
|
|
20
|
+
## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
21
|
+
## @param value Value to set for the AdditionalData property.
|
|
22
|
+
## @return a void
|
|
23
|
+
##
|
|
24
|
+
def additional_data=(value)
|
|
25
|
+
@additional_data = value
|
|
26
|
+
end
|
|
27
|
+
##
|
|
28
|
+
## Instantiates a new TabVisitBodySessionIdMember1 and sets the default values.
|
|
29
|
+
## @return a void
|
|
30
|
+
##
|
|
31
|
+
def initialize()
|
|
32
|
+
@additional_data = Hash.new
|
|
33
|
+
end
|
|
34
|
+
##
|
|
35
|
+
## Creates a new instance of the appropriate class based on discriminator value
|
|
36
|
+
## @param parse_node The parse node to use to read the discriminator value and create the object
|
|
37
|
+
## @return a tab_visit_body_session_id_member1
|
|
38
|
+
##
|
|
39
|
+
def self.create_from_discriminator_value(parse_node)
|
|
40
|
+
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
|
|
41
|
+
return TabVisitBodySessionIdMember1.new
|
|
42
|
+
end
|
|
43
|
+
##
|
|
44
|
+
## The deserialization information for the current model
|
|
45
|
+
## @return a i_dictionary
|
|
46
|
+
##
|
|
47
|
+
def get_field_deserializers()
|
|
48
|
+
return {
|
|
49
|
+
}
|
|
50
|
+
end
|
|
51
|
+
##
|
|
52
|
+
## Serializes information the current object
|
|
53
|
+
## @param writer Serialization writer to use to serialize this model
|
|
54
|
+
## @return a void
|
|
55
|
+
##
|
|
56
|
+
def serialize(writer)
|
|
57
|
+
raise StandardError, 'writer cannot be null' if writer.nil?
|
|
58
|
+
writer.write_additional_data(@additional_data)
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
require 'microsoft_kiota_abstractions'
|
|
2
|
+
require_relative '../ghostcrawl'
|
|
3
|
+
require_relative './models'
|
|
4
|
+
|
|
5
|
+
module GhostCrawl
|
|
6
|
+
module Models
|
|
7
|
+
class TouchBody
|
|
8
|
+
include MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
|
|
9
|
+
##
|
|
10
|
+
# Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
11
|
+
@additional_data
|
|
12
|
+
##
|
|
13
|
+
# The ops property
|
|
14
|
+
@ops
|
|
15
|
+
##
|
|
16
|
+
# The profile_id property
|
|
17
|
+
@profile_id
|
|
18
|
+
##
|
|
19
|
+
# The session_id property
|
|
20
|
+
@session_id
|
|
21
|
+
##
|
|
22
|
+
## Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
23
|
+
## @return a i_dictionary
|
|
24
|
+
##
|
|
25
|
+
def additional_data
|
|
26
|
+
return @additional_data
|
|
27
|
+
end
|
|
28
|
+
##
|
|
29
|
+
## Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
|
30
|
+
## @param value Value to set for the AdditionalData property.
|
|
31
|
+
## @return a void
|
|
32
|
+
##
|
|
33
|
+
def additional_data=(value)
|
|
34
|
+
@additional_data = value
|
|
35
|
+
end
|
|
36
|
+
##
|
|
37
|
+
## Instantiates a new TouchBody and sets the default values.
|
|
38
|
+
## @return a void
|
|
39
|
+
##
|
|
40
|
+
def initialize()
|
|
41
|
+
@additional_data = Hash.new
|
|
42
|
+
end
|
|
43
|
+
##
|
|
44
|
+
## Creates a new instance of the appropriate class based on discriminator value
|
|
45
|
+
## @param parse_node The parse node to use to read the discriminator value and create the object
|
|
46
|
+
## @return a touch_body
|
|
47
|
+
##
|
|
48
|
+
def self.create_from_discriminator_value(parse_node)
|
|
49
|
+
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
|
|
50
|
+
return TouchBody.new
|
|
51
|
+
end
|
|
52
|
+
##
|
|
53
|
+
## The deserialization information for the current model
|
|
54
|
+
## @return a i_dictionary
|
|
55
|
+
##
|
|
56
|
+
def get_field_deserializers()
|
|
57
|
+
return {
|
|
58
|
+
"ops" => lambda {|n| @ops = n.get_collection_of_object_values(lambda {|pn| GhostCrawl::Models::TouchBodyOps.create_from_discriminator_value(pn) }) },
|
|
59
|
+
"profile_id" => lambda {|n| @profile_id = n.get_object_value(lambda {|pn| TouchBody::TouchBodyProfileId.create_from_discriminator_value(pn) }) },
|
|
60
|
+
"session_id" => lambda {|n| @session_id = n.get_object_value(lambda {|pn| TouchBody::TouchBodySessionId.create_from_discriminator_value(pn) }) },
|
|
61
|
+
}
|
|
62
|
+
end
|
|
63
|
+
##
|
|
64
|
+
## Gets the ops property value. The ops property
|
|
65
|
+
## @return a touch_body_ops
|
|
66
|
+
##
|
|
67
|
+
def ops
|
|
68
|
+
return @ops
|
|
69
|
+
end
|
|
70
|
+
##
|
|
71
|
+
## Sets the ops property value. The ops property
|
|
72
|
+
## @param value Value to set for the ops property.
|
|
73
|
+
## @return a void
|
|
74
|
+
##
|
|
75
|
+
def ops=(value)
|
|
76
|
+
@ops = value
|
|
77
|
+
end
|
|
78
|
+
##
|
|
79
|
+
## Gets the profile_id property value. The profile_id property
|
|
80
|
+
## @return a touch_body_profile_id
|
|
81
|
+
##
|
|
82
|
+
def profile_id
|
|
83
|
+
return @profile_id
|
|
84
|
+
end
|
|
85
|
+
##
|
|
86
|
+
## Sets the profile_id property value. The profile_id property
|
|
87
|
+
## @param value Value to set for the profile_id property.
|
|
88
|
+
## @return a void
|
|
89
|
+
##
|
|
90
|
+
def profile_id=(value)
|
|
91
|
+
@profile_id = value
|
|
92
|
+
end
|
|
93
|
+
##
|
|
94
|
+
## Serializes information the current object
|
|
95
|
+
## @param writer Serialization writer to use to serialize this model
|
|
96
|
+
## @return a void
|
|
97
|
+
##
|
|
98
|
+
def serialize(writer)
|
|
99
|
+
raise StandardError, 'writer cannot be null' if writer.nil?
|
|
100
|
+
writer.write_collection_of_object_values("ops", @ops)
|
|
101
|
+
writer.write_object_value("profile_id", @profile_id)
|
|
102
|
+
writer.write_object_value("session_id", @session_id)
|
|
103
|
+
writer.write_additional_data(@additional_data)
|
|
104
|
+
end
|
|
105
|
+
##
|
|
106
|
+
## Gets the session_id property value. The session_id property
|
|
107
|
+
## @return a touch_body_session_id
|
|
108
|
+
##
|
|
109
|
+
def session_id
|
|
110
|
+
return @session_id
|
|
111
|
+
end
|
|
112
|
+
##
|
|
113
|
+
## Sets the session_id property value. The session_id property
|
|
114
|
+
## @param value Value to set for the session_id property.
|
|
115
|
+
## @return a void
|
|
116
|
+
##
|
|
117
|
+
def session_id=(value)
|
|
118
|
+
@session_id = value
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
##
|
|
122
|
+
# Composed type wrapper for classes string, TouchBodyProfileIdMember1
|
|
123
|
+
class TouchBodyProfileId
|
|
124
|
+
include MicrosoftKiotaAbstractions::Parsable
|
|
125
|
+
##
|
|
126
|
+
# Composed type representation for type string
|
|
127
|
+
@string
|
|
128
|
+
##
|
|
129
|
+
# Composed type representation for type TouchBodyProfileIdMember1
|
|
130
|
+
@touch_body_profile_id_member1
|
|
131
|
+
##
|
|
132
|
+
## Creates a new instance of the appropriate class based on discriminator value
|
|
133
|
+
## @param parse_node The parse node to use to read the discriminator value and create the object
|
|
134
|
+
## @return a touch_body_profile_id
|
|
135
|
+
##
|
|
136
|
+
def self.create_from_discriminator_value(parse_node)
|
|
137
|
+
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
|
|
138
|
+
return TouchBodyProfileId.new
|
|
139
|
+
end
|
|
140
|
+
##
|
|
141
|
+
## The deserialization information for the current model
|
|
142
|
+
## @return a i_dictionary
|
|
143
|
+
##
|
|
144
|
+
def get_field_deserializers()
|
|
145
|
+
return {
|
|
146
|
+
"string" => lambda {|n| @string = n.get_string_value() },
|
|
147
|
+
"TouchBody_profile_idMember1" => lambda {|n| @touch_body_profile_id_member1 = n.get_object_value(lambda {|pn| GhostCrawl::Models::TouchBodyProfileIdMember1.create_from_discriminator_value(pn) }) },
|
|
148
|
+
}
|
|
149
|
+
end
|
|
150
|
+
##
|
|
151
|
+
## Serializes information the current object
|
|
152
|
+
## @param writer Serialization writer to use to serialize this model
|
|
153
|
+
## @return a void
|
|
154
|
+
##
|
|
155
|
+
def serialize(writer)
|
|
156
|
+
raise StandardError, 'writer cannot be null' if writer.nil?
|
|
157
|
+
writer.write_string_value("string", @string)
|
|
158
|
+
writer.write_object_value("TouchBody_profile_idMember1", @touch_body_profile_id_member1)
|
|
159
|
+
end
|
|
160
|
+
##
|
|
161
|
+
## Gets the string property value. Composed type representation for type string
|
|
162
|
+
## @return a string
|
|
163
|
+
##
|
|
164
|
+
def string
|
|
165
|
+
return @string
|
|
166
|
+
end
|
|
167
|
+
##
|
|
168
|
+
## Sets the string property value. Composed type representation for type string
|
|
169
|
+
## @param value Value to set for the string property.
|
|
170
|
+
## @return a void
|
|
171
|
+
##
|
|
172
|
+
def string=(value)
|
|
173
|
+
@string = value
|
|
174
|
+
end
|
|
175
|
+
##
|
|
176
|
+
## Gets the TouchBody_profile_idMember1 property value. Composed type representation for type TouchBodyProfileIdMember1
|
|
177
|
+
## @return a touch_body_profile_id_member1
|
|
178
|
+
##
|
|
179
|
+
def touch_body_profile_id_member1
|
|
180
|
+
return @touch_body_profile_id_member1
|
|
181
|
+
end
|
|
182
|
+
##
|
|
183
|
+
## Sets the TouchBody_profile_idMember1 property value. Composed type representation for type TouchBodyProfileIdMember1
|
|
184
|
+
## @param value Value to set for the TouchBody_profile_idMember1 property.
|
|
185
|
+
## @return a void
|
|
186
|
+
##
|
|
187
|
+
def touch_body_profile_id_member1=(value)
|
|
188
|
+
@touch_body_profile_id_member1 = value
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
##
|
|
193
|
+
# Composed type wrapper for classes string, TouchBodySessionIdMember1
|
|
194
|
+
class TouchBodySessionId
|
|
195
|
+
include MicrosoftKiotaAbstractions::Parsable
|
|
196
|
+
##
|
|
197
|
+
# Composed type representation for type string
|
|
198
|
+
@string
|
|
199
|
+
##
|
|
200
|
+
# Composed type representation for type TouchBodySessionIdMember1
|
|
201
|
+
@touch_body_session_id_member1
|
|
202
|
+
##
|
|
203
|
+
## Creates a new instance of the appropriate class based on discriminator value
|
|
204
|
+
## @param parse_node The parse node to use to read the discriminator value and create the object
|
|
205
|
+
## @return a touch_body_session_id
|
|
206
|
+
##
|
|
207
|
+
def self.create_from_discriminator_value(parse_node)
|
|
208
|
+
raise StandardError, 'parse_node cannot be null' if parse_node.nil?
|
|
209
|
+
return TouchBodySessionId.new
|
|
210
|
+
end
|
|
211
|
+
##
|
|
212
|
+
## The deserialization information for the current model
|
|
213
|
+
## @return a i_dictionary
|
|
214
|
+
##
|
|
215
|
+
def get_field_deserializers()
|
|
216
|
+
return {
|
|
217
|
+
"string" => lambda {|n| @string = n.get_string_value() },
|
|
218
|
+
"TouchBody_session_idMember1" => lambda {|n| @touch_body_session_id_member1 = n.get_object_value(lambda {|pn| GhostCrawl::Models::TouchBodySessionIdMember1.create_from_discriminator_value(pn) }) },
|
|
219
|
+
}
|
|
220
|
+
end
|
|
221
|
+
##
|
|
222
|
+
## Serializes information the current object
|
|
223
|
+
## @param writer Serialization writer to use to serialize this model
|
|
224
|
+
## @return a void
|
|
225
|
+
##
|
|
226
|
+
def serialize(writer)
|
|
227
|
+
raise StandardError, 'writer cannot be null' if writer.nil?
|
|
228
|
+
writer.write_string_value("string", @string)
|
|
229
|
+
writer.write_object_value("TouchBody_session_idMember1", @touch_body_session_id_member1)
|
|
230
|
+
end
|
|
231
|
+
##
|
|
232
|
+
## Gets the string property value. Composed type representation for type string
|
|
233
|
+
## @return a string
|
|
234
|
+
##
|
|
235
|
+
def string
|
|
236
|
+
return @string
|
|
237
|
+
end
|
|
238
|
+
##
|
|
239
|
+
## Sets the string property value. Composed type representation for type string
|
|
240
|
+
## @param value Value to set for the string property.
|
|
241
|
+
## @return a void
|
|
242
|
+
##
|
|
243
|
+
def string=(value)
|
|
244
|
+
@string = value
|
|
245
|
+
end
|
|
246
|
+
##
|
|
247
|
+
## Gets the TouchBody_session_idMember1 property value. Composed type representation for type TouchBodySessionIdMember1
|
|
248
|
+
## @return a touch_body_session_id_member1
|
|
249
|
+
##
|
|
250
|
+
def touch_body_session_id_member1
|
|
251
|
+
return @touch_body_session_id_member1
|
|
252
|
+
end
|
|
253
|
+
##
|
|
254
|
+
## Sets the TouchBody_session_idMember1 property value. Composed type representation for type TouchBodySessionIdMember1
|
|
255
|
+
## @param value Value to set for the TouchBody_session_idMember1 property.
|
|
256
|
+
## @return a void
|
|
257
|
+
##
|
|
258
|
+
def touch_body_session_id_member1=(value)
|
|
259
|
+
@touch_body_session_id_member1 = value
|
|
260
|
+
end
|
|
261
|
+
end
|
|
262
|
+
end
|
|
263
|
+
end
|
|
264
|
+
end
|