ZOHOCRMSDK7_0 1.0.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/src/ZOHOCRMSDK7_0.rb +2 -1
- data/src/com/zoho/crm/api/mass_delete_tags/error_detail1.rb +82 -0
- data/src/com/zoho/crm/api/util/constants.rb +1 -1
- data/src/com/zoho/crm/api/util/utility.rb +16 -7
- data/src/resources/json_details.json +1 -1
- data/src/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2242c31cdb0878d8c74e66dafe21813081883f381d82377ca47739398489fa3b
|
4
|
+
data.tar.gz: 890ebee29acd3e88754a0753f41d2cc8d4f5fd58cff5545febb3e7929f03b0b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d93f6e7b3c1d5d251ad4f9fa2a8962cd07f36d7c7b7b5d42c60fa4b276610739a544665226c11e19555aebb1fc36c87b446a4b649334dbe236e1047a434f18ec
|
7
|
+
data.tar.gz: de00ef2f19f676418cc5fb9442573688029595e5be7ac3a4f57488bc78f4ae0372c4daa3fc2da77abe2641791171754c928d4348578aea9d919318cd7dd21a53
|
data/src/ZOHOCRMSDK7_0.rb
CHANGED
@@ -1469,4 +1469,5 @@ require 'com/zoho/crm/api/mass_delete_tags/status_response_handler.rb'
|
|
1469
1469
|
require 'com/zoho/crm/api/mass_delete_tags/action_response.rb'
|
1470
1470
|
require 'com/zoho/crm/api/mass_delete_tags/mass_delete_tags_operations.rb'
|
1471
1471
|
require 'com/zoho/crm/api/mass_delete_tags/body_wrapper.rb'
|
1472
|
-
require 'com/zoho/crm/api/mass_delete_tags/mass_delete_details.rb'
|
1472
|
+
require 'com/zoho/crm/api/mass_delete_tags/mass_delete_details.rb'
|
1473
|
+
require 'com/zoho/crm/api/mass_delete_tags/error_detail1.rb'
|
@@ -0,0 +1,82 @@
|
|
1
|
+
require_relative '../util/model'
|
2
|
+
|
3
|
+
module ZOHOCRMSDK
|
4
|
+
module MassDeleteTags
|
5
|
+
class ErrorDetail1
|
6
|
+
include Util::Model
|
7
|
+
|
8
|
+
# Creates an instance of ErrorDetail1
|
9
|
+
def initialize
|
10
|
+
@api_name = nil
|
11
|
+
@json_path = nil
|
12
|
+
@key_modified = Hash.new
|
13
|
+
end
|
14
|
+
|
15
|
+
# The method to get the api_name
|
16
|
+
# @return A String value
|
17
|
+
|
18
|
+
def api_name
|
19
|
+
@api_name
|
20
|
+
end
|
21
|
+
|
22
|
+
# The method to set the value to api_name
|
23
|
+
# @param api_name [String] A String
|
24
|
+
|
25
|
+
def api_name=(api_name)
|
26
|
+
if api_name!=nil and !api_name.is_a? String
|
27
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: api_name EXPECTED TYPE: String', nil, nil)
|
28
|
+
end
|
29
|
+
@api_name = api_name
|
30
|
+
@key_modified['api_name'] = 1
|
31
|
+
end
|
32
|
+
|
33
|
+
# The method to get the json_path
|
34
|
+
# @return A String value
|
35
|
+
|
36
|
+
def json_path
|
37
|
+
@json_path
|
38
|
+
end
|
39
|
+
|
40
|
+
# The method to set the value to json_path
|
41
|
+
# @param json_path [String] A String
|
42
|
+
|
43
|
+
def json_path=(json_path)
|
44
|
+
if json_path!=nil and !json_path.is_a? String
|
45
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: json_path EXPECTED TYPE: String', nil, nil)
|
46
|
+
end
|
47
|
+
@json_path = json_path
|
48
|
+
@key_modified['json_path'] = 1
|
49
|
+
end
|
50
|
+
|
51
|
+
# The method to check if the user has modified the given key
|
52
|
+
# @param key [String] A String
|
53
|
+
# @return A Integer value
|
54
|
+
|
55
|
+
def is_key_modified(key)
|
56
|
+
if key!=nil and !key.is_a? String
|
57
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
58
|
+
end
|
59
|
+
if @key_modified.key?(key)
|
60
|
+
return @key_modified[key]
|
61
|
+
end
|
62
|
+
|
63
|
+
nil
|
64
|
+
end
|
65
|
+
|
66
|
+
# The method to mark the given key as modified
|
67
|
+
# @param key [String] A String
|
68
|
+
# @param modification [Integer] A Integer
|
69
|
+
|
70
|
+
def set_key_modified(key, modification)
|
71
|
+
if key!=nil and !key.is_a? String
|
72
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
73
|
+
end
|
74
|
+
if modification!=nil and !modification.is_a? Integer
|
75
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
|
76
|
+
end
|
77
|
+
@key_modified[key] = modification
|
78
|
+
end
|
79
|
+
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
@@ -870,12 +870,16 @@ module ZOHOCRMSDK
|
|
870
870
|
|
871
871
|
def self.classname_to_filename(class_name)
|
872
872
|
changed_class_name = ''
|
873
|
-
camel_case_split = (class_name.to_s.split(/([[:upper:]][[:lower:]]+)/)).delete_if(&:empty?)
|
874
|
-
camel_case_split.each_with_index do |each_name, i|
|
875
|
-
changed_class_name += Constants::UNDERSCORE if i.positive?
|
876
|
-
changed_class_name += each_name.to_s.downcase
|
877
|
-
end
|
878
873
|
|
874
|
+
if class_name != "APIs"
|
875
|
+
camel_case_split = class_name.to_s.split(/(?<=[a-z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])/)
|
876
|
+
camel_case_split.each_with_index do |each_name, i|
|
877
|
+
changed_class_name += Constants::UNDERSCORE if i.positive?
|
878
|
+
changed_class_name += each_name.to_s.downcase
|
879
|
+
end
|
880
|
+
else
|
881
|
+
changed_class_name = class_name.downcase
|
882
|
+
end
|
879
883
|
changed_class_name
|
880
884
|
end
|
881
885
|
|
@@ -889,8 +893,13 @@ module ZOHOCRMSDK
|
|
889
893
|
package_name_split = split_names[-2].to_s.split(Constants::UNDERSCORE)
|
890
894
|
|
891
895
|
package_name_split.each do |name|
|
892
|
-
name
|
893
|
-
|
896
|
+
if name == "apis"
|
897
|
+
name = "APIs"
|
898
|
+
package_to_load += name
|
899
|
+
else
|
900
|
+
name[0] = name[0].to_s.upcase
|
901
|
+
package_to_load += name
|
902
|
+
end
|
894
903
|
end
|
895
904
|
|
896
905
|
package_to_load += Constants::DOUBLE_COLON
|