ZCRMSDK 2.1.0 → 3.0.0.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. checksums.yaml +4 -4
  2. data/src/ZCRMSDK.rb +84 -1
  3. data/src/com/zoho/api/authenticator/oauth_token.rb +87 -31
  4. data/src/com/zoho/api/authenticator/store/db_store.rb +48 -28
  5. data/src/com/zoho/api/authenticator/store/file_store.rb +69 -21
  6. data/src/com/zoho/api/authenticator/store/token_store.rb +7 -0
  7. data/src/com/zoho/api/logger/sdk_logger.rb +19 -9
  8. data/src/com/zoho/crm/api/assignment_rules/api_exception.rb +121 -0
  9. data/src/com/zoho/crm/api/assignment_rules/assignment_rule.rb +215 -0
  10. data/src/com/zoho/crm/api/assignment_rules/assignment_rules_operations.rb +61 -0
  11. data/src/com/zoho/crm/api/assignment_rules/default_user.rb +80 -0
  12. data/src/com/zoho/crm/api/assignment_rules/response_handler.rb +10 -0
  13. data/src/com/zoho/crm/api/assignment_rules/response_wrapper.rb +63 -0
  14. data/src/com/zoho/crm/api/attachments/attachment.rb +4 -4
  15. data/src/com/zoho/crm/api/attachments/attachments_operations.rb +6 -6
  16. data/src/com/zoho/crm/api/blue_print/blue_print_operations.rb +2 -2
  17. data/src/com/zoho/crm/api/blue_print/escalation.rb +80 -0
  18. data/src/com/zoho/crm/api/blue_print/field.rb +1107 -0
  19. data/src/com/zoho/crm/api/blue_print/next_transition.rb +38 -0
  20. data/src/com/zoho/crm/api/blue_print/process_info.rb +4 -4
  21. data/src/com/zoho/crm/api/blue_print/transition.rb +19 -1
  22. data/src/com/zoho/crm/api/blue_print/validation_error.rb +57 -0
  23. data/src/com/zoho/crm/api/bulk_read/bulk_read_operations.rb +3 -3
  24. data/src/com/zoho/crm/api/bulk_read/criteria.rb +20 -0
  25. data/src/com/zoho/crm/api/bulk_read/query.rb +5 -4
  26. data/src/com/zoho/crm/api/bulk_write/bulk_write_operations.rb +3 -3
  27. data/src/com/zoho/crm/api/bulk_write/resource.rb +24 -4
  28. data/src/com/zoho/crm/api/contact_roles/contact_roles_operations.rb +7 -7
  29. data/src/com/zoho/crm/api/currencies/currencies_operations.rb +7 -7
  30. data/src/com/zoho/crm/api/custom_views/criteria.rb +5 -4
  31. data/src/com/zoho/crm/api/custom_views/custom_view.rb +100 -41
  32. data/src/com/zoho/crm/api/custom_views/custom_views_operations.rb +2 -2
  33. data/src/com/zoho/crm/api/custom_views/{shared_details.rb → shared_to.rb} +2 -2
  34. data/src/com/zoho/crm/api/dc/au_datacenter.rb +3 -3
  35. data/src/com/zoho/crm/api/dc/cn_datacenter.rb +3 -3
  36. data/src/com/zoho/crm/api/dc/datacenter.rb +3 -2
  37. data/src/com/zoho/crm/api/dc/eu_datacenter.rb +3 -3
  38. data/src/com/zoho/crm/api/dc/in_datacenter.rb +3 -3
  39. data/src/com/zoho/crm/api/dc/us_datacenter.rb +3 -3
  40. data/src/com/zoho/crm/api/email_templates/api_exception.rb +121 -0
  41. data/src/com/zoho/crm/api/email_templates/attachment.rb +118 -0
  42. data/src/com/zoho/crm/api/email_templates/email_template.rb +390 -0
  43. data/src/com/zoho/crm/api/email_templates/email_templates_operations.rb +61 -0
  44. data/src/com/zoho/crm/api/email_templates/response_handler.rb +10 -0
  45. data/src/com/zoho/crm/api/email_templates/response_wrapper.rb +83 -0
  46. data/src/com/zoho/crm/api/field_attachments/api_exception.rb +121 -0
  47. data/src/com/zoho/crm/api/field_attachments/body_wrapper.rb +62 -0
  48. data/src/com/zoho/crm/api/field_attachments/field_attachments_operations.rb +52 -0
  49. data/src/com/zoho/crm/api/field_attachments/file_body_wrapper.rb +64 -0
  50. data/src/com/zoho/crm/api/field_attachments/response_handler.rb +10 -0
  51. data/src/com/zoho/crm/api/fields/external.rb +99 -0
  52. data/src/com/zoho/crm/api/fields/field.rb +192 -38
  53. data/src/com/zoho/crm/api/fields/fields_operations.rb +2 -2
  54. data/src/com/zoho/crm/api/fields/history_tracking.rb +80 -0
  55. data/src/com/zoho/crm/api/fields/maps.rb +80 -0
  56. data/src/com/zoho/crm/api/fields/multi_select_lookup.rb +19 -0
  57. data/src/com/zoho/crm/api/fields/multi_user_lookup.rb +175 -0
  58. data/src/com/zoho/crm/api/fields/pick_list_value.rb +19 -0
  59. data/src/com/zoho/crm/api/fields/related_details.rb +19 -0
  60. data/src/com/zoho/crm/api/files/file_operations.rb +2 -2
  61. data/src/com/zoho/crm/api/initializer.rb +40 -15
  62. data/src/com/zoho/crm/api/inventory_templates/api_exception.rb +121 -0
  63. data/src/com/zoho/crm/api/inventory_templates/inventory_template.rb +352 -0
  64. data/src/com/zoho/crm/api/inventory_templates/inventory_templates_operations.rb +82 -0
  65. data/src/com/zoho/crm/api/inventory_templates/response_handler.rb +10 -0
  66. data/src/com/zoho/crm/api/inventory_templates/response_wrapper.rb +83 -0
  67. data/src/com/zoho/crm/api/layouts/layout.rb +38 -0
  68. data/src/com/zoho/crm/api/layouts/layouts_operations.rb +2 -2
  69. data/src/com/zoho/crm/api/layouts/section.rb +19 -0
  70. data/src/com/zoho/crm/api/modules/module.rb +57 -0
  71. data/src/com/zoho/crm/api/modules/modules_operations.rb +4 -4
  72. data/src/com/zoho/crm/api/notes/notes_operations.rb +7 -7
  73. data/src/com/zoho/crm/api/notification/notification_operations.rb +6 -6
  74. data/src/com/zoho/crm/api/org/org_operations.rb +2 -2
  75. data/src/com/zoho/crm/api/pipeline/action_handler.rb +10 -0
  76. data/src/com/zoho/crm/api/pipeline/action_response.rb +10 -0
  77. data/src/com/zoho/crm/api/pipeline/action_wrapper.rb +63 -0
  78. data/src/com/zoho/crm/api/pipeline/api_exception.rb +129 -0
  79. data/src/com/zoho/crm/api/pipeline/body_wrapper.rb +61 -0
  80. data/src/com/zoho/crm/api/pipeline/forecast_category.rb +80 -0
  81. data/src/com/zoho/crm/api/pipeline/pick_list_value.rb +175 -0
  82. data/src/com/zoho/crm/api/pipeline/pipeline.rb +213 -0
  83. data/src/com/zoho/crm/api/pipeline/pipeline_operations.rb +165 -0
  84. data/src/com/zoho/crm/api/pipeline/response_handler.rb +10 -0
  85. data/src/com/zoho/crm/api/pipeline/response_wrapper.rb +63 -0
  86. data/src/com/zoho/crm/api/pipeline/stage.rb +80 -0
  87. data/src/com/zoho/crm/api/pipeline/success_response.rb +123 -0
  88. data/src/com/zoho/crm/api/pipeline/transfer_action_handler.rb +10 -0
  89. data/src/com/zoho/crm/api/pipeline/transfer_action_response.rb +10 -0
  90. data/src/com/zoho/crm/api/pipeline/transfer_action_wrapper.rb +63 -0
  91. data/src/com/zoho/crm/api/pipeline/transfer_and_delete_wrapper.rb +61 -0
  92. data/src/com/zoho/crm/api/pipeline/transfer_pipe_line.rb +80 -0
  93. data/src/com/zoho/crm/api/profiles/default_view.rb +99 -0
  94. data/src/com/zoho/crm/api/profiles/profile.rb +57 -0
  95. data/src/com/zoho/crm/api/profiles/profiles_operations.rb +2 -2
  96. data/src/com/zoho/crm/api/query/query_operations.rb +1 -1
  97. data/src/com/zoho/crm/api/record/api_exception.rb +2 -0
  98. data/src/com/zoho/crm/api/record/body_wrapper.rb +0 -19
  99. data/src/com/zoho/crm/api/record/count_handler.rb +10 -0
  100. data/src/com/zoho/crm/api/record/count_wrapper.rb +63 -0
  101. data/src/com/zoho/crm/api/record/field.rb +1 -0
  102. data/src/com/zoho/crm/api/record/image_upload.rb +213 -0
  103. data/src/com/zoho/crm/api/record/inventory_line_items.rb +56 -39
  104. data/src/com/zoho/crm/api/record/mass_update_body_wrapper.rb +4 -4
  105. data/src/com/zoho/crm/api/record/mass_update_territory.rb +80 -0
  106. data/src/com/zoho/crm/api/record/multi_select_lookup.rb +99 -0
  107. data/src/com/zoho/crm/api/record/multi_select_picklist.rb +80 -0
  108. data/src/com/zoho/crm/api/record/price_book.rb +31 -0
  109. data/src/com/zoho/crm/api/record/record_operations.rb +201 -111
  110. data/src/com/zoho/crm/api/record/tax.rb +80 -0
  111. data/src/com/zoho/crm/api/record/territory.rb +70 -12
  112. data/src/com/zoho/crm/api/record/widget.rb +80 -0
  113. data/src/com/zoho/crm/api/record/wizard.rb +80 -0
  114. data/src/com/zoho/crm/api/related_lists/related_lists_operations.rb +2 -2
  115. data/src/com/zoho/crm/api/related_records/related_records_operations.rb +8 -36
  116. data/src/com/zoho/crm/api/request_proxy.rb +3 -4
  117. data/src/com/zoho/crm/api/roles/roles_operations.rb +2 -2
  118. data/src/com/zoho/crm/api/sdk_config.rb +2 -68
  119. data/src/com/zoho/crm/api/send_mail/action_handler.rb +10 -0
  120. data/src/com/zoho/crm/api/send_mail/action_response.rb +10 -0
  121. data/src/com/zoho/crm/api/send_mail/action_wrapper.rb +63 -0
  122. data/src/com/zoho/crm/api/send_mail/api_exception.rb +125 -0
  123. data/src/com/zoho/crm/api/send_mail/body_wrapper.rb +61 -0
  124. data/src/com/zoho/crm/api/send_mail/data_subject_request.rb +80 -0
  125. data/src/com/zoho/crm/api/send_mail/inventory_details.rb +100 -0
  126. data/src/com/zoho/crm/api/send_mail/mail.rb +423 -0
  127. data/src/com/zoho/crm/api/send_mail/response_handler.rb +10 -0
  128. data/src/com/zoho/crm/api/send_mail/response_wrapper.rb +63 -0
  129. data/src/com/zoho/crm/api/send_mail/send_mail_operations.rb +61 -0
  130. data/src/com/zoho/crm/api/send_mail/success_response.rb +121 -0
  131. data/src/com/zoho/crm/api/send_mail/template.rb +10 -0
  132. data/src/com/zoho/crm/api/send_mail/user_address.rb +137 -0
  133. data/src/com/zoho/crm/api/share_records/share_records_operations.rb +4 -4
  134. data/src/com/zoho/crm/api/tags/tag.rb +19 -0
  135. data/src/com/zoho/crm/api/tags/tags_operations.rb +11 -11
  136. data/src/com/zoho/crm/api/taxes/taxes_operations.rb +6 -6
  137. data/src/com/zoho/crm/api/territories/response_wrapper.rb +20 -0
  138. data/src/com/zoho/crm/api/territories/territories_operations.rb +2 -2
  139. data/src/com/zoho/crm/api/territories/territory.rb +61 -23
  140. data/src/com/zoho/crm/api/users/users_operations.rb +6 -6
  141. data/src/com/zoho/crm/api/util/api_http_connector.rb +5 -5
  142. data/src/com/zoho/crm/api/util/common_api_handler.rb +0 -1
  143. data/src/com/zoho/crm/api/util/constants.rb +140 -13
  144. data/src/com/zoho/crm/api/util/converter.rb +21 -4
  145. data/src/com/zoho/crm/api/util/form_data_converter.rb +3 -15
  146. data/src/com/zoho/crm/api/util/utility.rb +226 -86
  147. data/src/com/zoho/crm/api/variable_groups/variable_groups_operations.rb +3 -3
  148. data/src/com/zoho/crm/api/variables/variables_operations.rb +9 -9
  149. data/src/com/zoho/crm/api/wizards/api_exception.rb +121 -0
  150. data/src/com/zoho/crm/api/wizards/button.rb +214 -0
  151. data/src/com/zoho/crm/api/wizards/chart_data.rb +118 -0
  152. data/src/com/zoho/crm/api/wizards/connection.rb +80 -0
  153. data/src/com/zoho/crm/api/wizards/container.rb +119 -0
  154. data/src/com/zoho/crm/api/wizards/node.rb +118 -0
  155. data/src/com/zoho/crm/api/wizards/response_handler.rb +10 -0
  156. data/src/com/zoho/crm/api/wizards/response_wrapper.rb +63 -0
  157. data/src/com/zoho/crm/api/wizards/screen.rb +99 -0
  158. data/src/com/zoho/crm/api/wizards/segment.rb +176 -0
  159. data/src/com/zoho/crm/api/wizards/wizard.rb +273 -0
  160. data/src/com/zoho/crm/api/wizards/wizards_operations.rb +61 -0
  161. data/src/resources/JSONDetails.json +1 -1
  162. data/src/version.rb +1 -1
  163. metadata +88 -5
@@ -13,13 +13,16 @@ module Profiles
13
13
  @permissions_details = nil
14
14
  @name = nil
15
15
  @modified_by = nil
16
+ @defaultview = nil
16
17
  @default = nil
17
18
  @description = nil
18
19
  @id = nil
19
20
  @category = nil
21
+ @custom = nil
20
22
  @created_by = nil
21
23
  @sections = nil
22
24
  @delete = nil
25
+ @permission_type = nil
23
26
  @key_modified = Hash.new
24
27
  end
25
28
 
@@ -131,6 +134,24 @@ module Profiles
131
134
  @key_modified['modified_by'] = 1
132
135
  end
133
136
 
137
+ # The method to get the defaultview
138
+ # @return An instance of DefaultView
139
+
140
+ def defaultview
141
+ @defaultview
142
+ end
143
+
144
+ # The method to set the value to defaultview
145
+ # @param defaultview [DefaultView] An instance of DefaultView
146
+
147
+ def defaultview=(defaultview)
148
+ if defaultview!=nil and !defaultview.is_a? DefaultView
149
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: defaultview EXPECTED TYPE: DefaultView', nil, nil)
150
+ end
151
+ @defaultview = defaultview
152
+ @key_modified['_default_view'] = 1
153
+ end
154
+
134
155
  # The method to get the default
135
156
  # @return A Boolean value
136
157
 
@@ -203,6 +224,24 @@ module Profiles
203
224
  @key_modified['category'] = 1
204
225
  end
205
226
 
227
+ # The method to get the custom
228
+ # @return A Boolean value
229
+
230
+ def custom
231
+ @custom
232
+ end
233
+
234
+ # The method to set the value to custom
235
+ # @param custom [Boolean] A Boolean
236
+
237
+ def custom=(custom)
238
+ if custom!=nil and ! [true, false].include?custom
239
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: custom EXPECTED TYPE: Boolean', nil, nil)
240
+ end
241
+ @custom = custom
242
+ @key_modified['custom'] = 1
243
+ end
244
+
206
245
  # The method to get the created_by
207
246
  # @return An instance of Users::User
208
247
 
@@ -257,6 +296,24 @@ module Profiles
257
296
  @key_modified['_delete'] = 1
258
297
  end
259
298
 
299
+ # The method to get the permission_type
300
+ # @return A String value
301
+
302
+ def permission_type
303
+ @permission_type
304
+ end
305
+
306
+ # The method to set the value to permission_type
307
+ # @param permission_type [String] A String
308
+
309
+ def permission_type=(permission_type)
310
+ if permission_type!=nil and !permission_type.is_a? String
311
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: permission_type EXPECTED TYPE: String', nil, nil)
312
+ end
313
+ @permission_type = permission_type
314
+ @key_modified['permission_type'] = 1
315
+ end
316
+
260
317
  # The method to check if the user has modified the given key
261
318
  # @param key [String] A String
262
319
  # @return A Integer value
@@ -22,7 +22,7 @@ module Profiles
22
22
  def get_profiles
23
23
  handler_instance = Handler::CommonAPIHandler.new
24
24
  api_path = ''
25
- api_path = api_path + '/crm/v2/settings/profiles'
25
+ api_path = api_path + '/crm/v2.1/settings/profiles'
26
26
  handler_instance.api_path = api_path
27
27
  handler_instance.http_method = Constants::REQUEST_METHOD_GET
28
28
  handler_instance.category_method = 'READ'
@@ -41,7 +41,7 @@ module Profiles
41
41
  end
42
42
  handler_instance = Handler::CommonAPIHandler.new
43
43
  api_path = ''
44
- api_path = api_path + '/crm/v2/settings/profiles/'
44
+ api_path = api_path + '/crm/v2.1/settings/profiles/'
45
45
  api_path = api_path + id.to_s
46
46
  handler_instance.api_path = api_path
47
47
  handler_instance.http_method = Constants::REQUEST_METHOD_GET
@@ -20,7 +20,7 @@ module Query
20
20
  end
21
21
  handler_instance = Handler::CommonAPIHandler.new
22
22
  api_path = ''
23
- api_path = api_path + '/crm/v2/coql'
23
+ api_path = api_path + '/crm/v2.1/coql'
24
24
  handler_instance.api_path = api_path
25
25
  handler_instance.http_method = Constants::REQUEST_METHOD_POST
26
26
  handler_instance.category_method = 'CREATE'
@@ -14,6 +14,7 @@ module Record
14
14
  require_relative 'mass_update_action_handler'
15
15
  require_relative 'mass_update_response'
16
16
  require_relative 'mass_update_response_handler'
17
+ require_relative 'count_handler'
17
18
  class APIException
18
19
  include Util::Model
19
20
  include ResponseHandler
@@ -28,6 +29,7 @@ module Record
28
29
  include MassUpdateActionHandler
29
30
  include MassUpdateResponse
30
31
  include MassUpdateResponseHandler
32
+ include CountHandler
31
33
 
32
34
  # Creates an instance of APIException
33
35
  def initialize
@@ -8,7 +8,6 @@ module Record
8
8
  def initialize
9
9
  @data = nil
10
10
  @trigger = nil
11
- @process = nil
12
11
  @duplicate_check_fields = nil
13
12
  @wf_trigger = nil
14
13
  @lar_id = nil
@@ -51,24 +50,6 @@ module Record
51
50
  @key_modified['trigger'] = 1
52
51
  end
53
52
 
54
- # The method to get the process
55
- # @return An instance of Array
56
-
57
- def process
58
- @process
59
- end
60
-
61
- # The method to set the value to process
62
- # @param process [Array] An instance of Array
63
-
64
- def process=(process)
65
- if process!=nil and !process.is_a? Array
66
- raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: process EXPECTED TYPE: Array', nil, nil)
67
- end
68
- @process = process
69
- @key_modified['process'] = 1
70
- end
71
-
72
53
  # The method to get the duplicate_check_fields
73
54
  # @return An instance of Array
74
55
 
@@ -0,0 +1,10 @@
1
+ module Record
2
+ module CountHandler
3
+
4
+ # Creates an instance of CountHandler
5
+ def initialize
6
+ end
7
+
8
+
9
+ end
10
+ end
@@ -0,0 +1,63 @@
1
+ require_relative '../util/model'
2
+
3
+ module Record
4
+ require_relative 'count_handler'
5
+ class CountWrapper
6
+ include Util::Model
7
+ include CountHandler
8
+
9
+ # Creates an instance of CountWrapper
10
+ def initialize
11
+ @count = nil
12
+ @key_modified = Hash.new
13
+ end
14
+
15
+ # The method to get the count
16
+ # @return A String value
17
+
18
+ def count
19
+ @count
20
+ end
21
+
22
+ # The method to set the value to count
23
+ # @param count [String] A String
24
+
25
+ def count=(count)
26
+ if count!=nil and !count.is_a? String
27
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: count EXPECTED TYPE: String', nil, nil)
28
+ end
29
+ @count = count
30
+ @key_modified['count'] = 1
31
+ end
32
+
33
+ # The method to check if the user has modified the given key
34
+ # @param key [String] A String
35
+ # @return A Integer value
36
+
37
+ def is_key_modified(key)
38
+ if key!=nil and !key.is_a? String
39
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
40
+ end
41
+ if @key_modified.key?(key)
42
+ return @key_modified[key]
43
+ end
44
+
45
+ nil
46
+ end
47
+
48
+ # The method to mark the given key as modified
49
+ # @param key [String] A String
50
+ # @param modification [Integer] A Integer
51
+
52
+ def set_key_modified(key, modification)
53
+ if key!=nil and !key.is_a? String
54
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
55
+ end
56
+ if modification!=nil and !modification.is_a? Integer
57
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
58
+ end
59
+ @key_modified[key] = modification
60
+ end
61
+
62
+ end
63
+ end
@@ -5,6 +5,7 @@ require_relative '../record/pricing_details'
5
5
  require_relative '../record/record'
6
6
  require_relative '../record/recurring_activity'
7
7
  require_relative '../record/remind_at'
8
+ require_relative '../record/tax'
8
9
  require_relative '../tags/tag'
9
10
  require_relative '../users/user'
10
11
  require_relative '../util/choice'
@@ -0,0 +1,213 @@
1
+ require_relative '../util/model'
2
+
3
+ module Record
4
+ class ImageUpload
5
+ include Util::Model
6
+
7
+ # Creates an instance of ImageUpload
8
+ def initialize
9
+ @description = nil
10
+ @preview_id = nil
11
+ @encrypted_id = nil
12
+ @file_name = nil
13
+ @state = nil
14
+ @file_id = nil
15
+ @size = nil
16
+ @sequence_number = nil
17
+ @id = nil
18
+ @key_modified = Hash.new
19
+ end
20
+
21
+ # The method to get the description
22
+ # @return A String value
23
+
24
+ def description
25
+ @description
26
+ end
27
+
28
+ # The method to set the value to description
29
+ # @param description [String] A String
30
+
31
+ def description=(description)
32
+ if description!=nil and !description.is_a? String
33
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: description EXPECTED TYPE: String', nil, nil)
34
+ end
35
+ @description = description
36
+ @key_modified['Description'] = 1
37
+ end
38
+
39
+ # The method to get the preview_id
40
+ # @return A String value
41
+
42
+ def preview_id
43
+ @preview_id
44
+ end
45
+
46
+ # The method to set the value to preview_id
47
+ # @param preview_id [String] A String
48
+
49
+ def preview_id=(preview_id)
50
+ if preview_id!=nil and !preview_id.is_a? String
51
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: preview_id EXPECTED TYPE: String', nil, nil)
52
+ end
53
+ @preview_id = preview_id
54
+ @key_modified['Preview_Id'] = 1
55
+ end
56
+
57
+ # The method to get the encrypted_id
58
+ # @return A String value
59
+
60
+ def encrypted_id
61
+ @encrypted_id
62
+ end
63
+
64
+ # The method to set the value to encrypted_id
65
+ # @param encrypted_id [String] A String
66
+
67
+ def encrypted_id=(encrypted_id)
68
+ if encrypted_id!=nil and !encrypted_id.is_a? String
69
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: encrypted_id EXPECTED TYPE: String', nil, nil)
70
+ end
71
+ @encrypted_id = encrypted_id
72
+ @key_modified['Encrypted_Id'] = 1
73
+ end
74
+
75
+ # The method to get the file_name
76
+ # @return A String value
77
+
78
+ def file_name
79
+ @file_name
80
+ end
81
+
82
+ # The method to set the value to file_name
83
+ # @param file_name [String] A String
84
+
85
+ def file_name=(file_name)
86
+ if file_name!=nil and !file_name.is_a? String
87
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: file_name EXPECTED TYPE: String', nil, nil)
88
+ end
89
+ @file_name = file_name
90
+ @key_modified['File_Name'] = 1
91
+ end
92
+
93
+ # The method to get the state
94
+ # @return A String value
95
+
96
+ def state
97
+ @state
98
+ end
99
+
100
+ # The method to set the value to state
101
+ # @param state [String] A String
102
+
103
+ def state=(state)
104
+ if state!=nil and !state.is_a? String
105
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: state EXPECTED TYPE: String', nil, nil)
106
+ end
107
+ @state = state
108
+ @key_modified['State'] = 1
109
+ end
110
+
111
+ # The method to get the file_id
112
+ # @return A String value
113
+
114
+ def file_id
115
+ @file_id
116
+ end
117
+
118
+ # The method to set the value to file_id
119
+ # @param file_id [String] A String
120
+
121
+ def file_id=(file_id)
122
+ if file_id!=nil and !file_id.is_a? String
123
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: file_id EXPECTED TYPE: String', nil, nil)
124
+ end
125
+ @file_id = file_id
126
+ @key_modified['File_Id'] = 1
127
+ end
128
+
129
+ # The method to get the size
130
+ # @return A Integer value
131
+
132
+ def size
133
+ @size
134
+ end
135
+
136
+ # The method to set the value to size
137
+ # @param size [Integer] A Integer
138
+
139
+ def size=(size)
140
+ if size!=nil and !size.is_a? Integer
141
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: size EXPECTED TYPE: Integer', nil, nil)
142
+ end
143
+ @size = size
144
+ @key_modified['Size'] = 1
145
+ end
146
+
147
+ # The method to get the sequence_number
148
+ # @return A Integer value
149
+
150
+ def sequence_number
151
+ @sequence_number
152
+ end
153
+
154
+ # The method to set the value to sequence_number
155
+ # @param sequence_number [Integer] A Integer
156
+
157
+ def sequence_number=(sequence_number)
158
+ if sequence_number!=nil and !sequence_number.is_a? Integer
159
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: sequence_number EXPECTED TYPE: Integer', nil, nil)
160
+ end
161
+ @sequence_number = sequence_number
162
+ @key_modified['Sequence_Number'] = 1
163
+ end
164
+
165
+ # The method to get the id
166
+ # @return A Integer value
167
+
168
+ def id
169
+ @id
170
+ end
171
+
172
+ # The method to set the value to id
173
+ # @param id [Integer] A Integer
174
+
175
+ def id=(id)
176
+ if id!=nil and !id.is_a? Integer
177
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: Integer', nil, nil)
178
+ end
179
+ @id = id
180
+ @key_modified['id'] = 1
181
+ end
182
+
183
+ # The method to check if the user has modified the given key
184
+ # @param key [String] A String
185
+ # @return A Integer value
186
+
187
+ def is_key_modified(key)
188
+ if key!=nil and !key.is_a? String
189
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
190
+ end
191
+ if @key_modified.key?(key)
192
+ return @key_modified[key]
193
+ end
194
+
195
+ nil
196
+ end
197
+
198
+ # The method to mark the given key as modified
199
+ # @param key [String] A String
200
+ # @param modification [Integer] A Integer
201
+
202
+ def set_key_modified(key, modification)
203
+ if key!=nil and !key.is_a? String
204
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
205
+ end
206
+ if modification!=nil and !modification.is_a? Integer
207
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
208
+ end
209
+ @key_modified[key] = modification
210
+ end
211
+
212
+ end
213
+ end