pingram 1.0.6 → 1.0.9
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/Gemfile.lock +2 -2
- data/lib/pingram/api/components_api.rb +2 -0
- data/lib/pingram/api/email_api.rb +88 -0
- data/lib/pingram/api/numbers_api.rb +4 -4
- data/lib/pingram/api/profile_api.rb +154 -0
- data/lib/pingram/api/push_settings_api.rb +4 -0
- data/lib/pingram/api/sms_api.rb +88 -0
- data/lib/pingram/api/templates_api.rb +2 -0
- data/lib/pingram/api/types_api.rb +2 -0
- data/lib/pingram/api/user_api.rb +4 -0
- data/lib/pingram/api/webhooks_api.rb +2 -0
- data/lib/pingram/api_client.rb +1 -1
- data/lib/pingram/api_error.rb +40 -4
- data/lib/pingram/client_wrapper.rb +32 -2
- data/lib/pingram/models/accept_invite_request.rb +164 -0
- data/lib/pingram/models/accept_invite_response.rb +225 -0
- data/lib/pingram/models/api_error_body.rb +223 -0
- data/lib/pingram/models/api_error_response.rb +192 -0
- data/lib/pingram/models/change_email_request.rb +164 -0
- data/lib/pingram/models/change_phone_request.rb +164 -0
- data/lib/pingram/models/get_logs_response_messages_inner.rb +13 -1
- data/lib/pingram/models/get_logs_response_messages_inner_media_inner.rb +173 -0
- data/lib/pingram/models/get_templates_list_response_inner.rb +2 -1
- data/lib/pingram/models/get_templates_list_response_inner_any_of2.rb +16 -4
- data/lib/pingram/models/get_templates_list_response_inner_any_of3.rb +16 -42
- data/lib/pingram/models/get_templates_list_response_inner_any_of4.rb +4 -22
- data/lib/pingram/models/get_templates_list_response_inner_any_of5.rb +42 -111
- data/lib/pingram/models/get_templates_list_response_inner_any_of6.rb +440 -0
- data/lib/pingram/models/{get_templates_list_response_inner_any_of5_metadata.rb → get_templates_list_response_inner_any_of6_metadata.rb} +4 -4
- data/lib/pingram/models/{get_templates_list_response_inner_any_of5_metadata_entities_inner.rb → get_templates_list_response_inner_any_of6_metadata_entities_inner.rb} +4 -4
- data/lib/pingram/models/{get_templates_list_response_inner_any_of5_metadata_entities_inner_external_ref.rb → get_templates_list_response_inner_any_of6_metadata_entities_inner_external_ref.rb} +3 -3
- data/lib/pingram/models/logs_get_response_logs_inner.rb +52 -21
- data/lib/pingram/models/send_email_api_response.rb +104 -0
- data/lib/pingram/models/send_email_api_response_any_of.rb +193 -0
- data/lib/pingram/models/send_email_api_response_any_of1.rb +191 -0
- data/lib/pingram/models/send_email_api_response_any_of1_error.rb +223 -0
- data/lib/pingram/models/send_email_request.rb +335 -0
- data/lib/pingram/models/{sender_post_body_options_email_attachments_inner_any_of1.rb → send_email_request_attachments_inner.rb} +19 -28
- data/lib/pingram/models/send_sms_request.rb +249 -0
- data/lib/pingram/models/send_sms_response.rb +104 -0
- data/lib/pingram/models/send_sms_response_any_of.rb +193 -0
- data/lib/pingram/models/send_sms_response_any_of1.rb +191 -0
- data/lib/pingram/models/send_sms_response_any_of1_error.rb +223 -0
- data/lib/pingram/models/sender_post_body_options_email_attachments_inner.rb +2 -2
- data/lib/pingram/models/sender_post_body_options_email_attachments_inner_any_of.rb +25 -16
- data/lib/pingram/models/sender_post_body_slack.rb +1 -1
- data/lib/pingram/models/sender_post_body_sms.rb +16 -4
- data/lib/pingram/version.rb +1 -1
- data/lib/pingram.rb +25 -4
- data/vendor/bundle/ruby/3.2.0/cache/psych-5.4.0.gem +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-13.0.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/date-3.5.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.8.2/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.8.2/mkmf.log +3 -3
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{psych-5.3.1 → psych-5.4.0}/gem_make.out +10 -10
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{psych-5.3.1 → psych-5.4.0}/psych.so +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.8.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.2.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/README.md +2 -2
- data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/ext/psych/psych_parser.c +14 -3
- data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/versions.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych.so +0 -0
- data/vendor/bundle/ruby/3.2.0/specifications/{psych-5.3.1.gemspec → psych-5.4.0.gemspec} +2 -2
- metadata +87 -66
- data/vendor/bundle/ruby/3.2.0/cache/psych-5.3.1.gem +0 -0
- /data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{psych-5.3.1 → psych-5.4.0}/gem.build_complete +0 -0
- /data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{psych-5.3.1 → psych-5.4.0}/mkmf.log +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/CONTRIBUTING.md +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/LICENSE +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/ext/psych/Makefile +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/ext/psych/depend +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/ext/psych/extconf.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/ext/psych/psych.c +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/ext/psych/psych.h +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/ext/psych/psych_emitter.c +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/ext/psych/psych_emitter.h +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/ext/psych/psych_parser.h +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/ext/psych/psych_to_ruby.c +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/ext/psych/psych_to_ruby.h +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/ext/psych/psych_yaml_tree.c +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/ext/psych/psych_yaml_tree.h +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/class_loader.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/coder.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/core_ext.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/exception.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/handler.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/handlers/document_stream.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/handlers/recorder.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/json/ruby_events.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/json/stream.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/json/tree_builder.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/json/yaml_events.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/nodes/alias.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/nodes/document.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/nodes/mapping.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/nodes/node.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/nodes/scalar.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/nodes/sequence.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/nodes/stream.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/nodes.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/omap.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/parser.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/scalar_scanner.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/set.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/stream.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/streaming.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/syntax_error.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/tree_builder.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/visitors/depth_first.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/visitors/emitter.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/visitors/json_tree.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/visitors/to_ruby.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/visitors/visitor.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/visitors/yaml_tree.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/visitors.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych/y.rb +0 -0
- /data/vendor/bundle/ruby/3.2.0/gems/{psych-5.3.1 → psych-5.4.0}/lib/psych.rb +0 -0
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pingram
|
|
3
|
+
|
|
4
|
+
#Internal API for notification delivery and management
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.19.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Pingram
|
|
17
|
+
class GetLogsResponseMessagesInnerMediaInner < ApiModelBase
|
|
18
|
+
attr_accessor :url
|
|
19
|
+
|
|
20
|
+
attr_accessor :content_type
|
|
21
|
+
|
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
|
+
def self.attribute_map
|
|
24
|
+
{
|
|
25
|
+
:'url' => :'url',
|
|
26
|
+
:'content_type' => :'contentType'
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Returns attribute mapping this model knows about
|
|
31
|
+
def self.acceptable_attribute_map
|
|
32
|
+
attribute_map
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Returns all the JSON keys this model knows about
|
|
36
|
+
def self.acceptable_attributes
|
|
37
|
+
acceptable_attribute_map.values
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Attribute type mapping.
|
|
41
|
+
def self.openapi_types
|
|
42
|
+
{
|
|
43
|
+
:'url' => :'String',
|
|
44
|
+
:'content_type' => :'String'
|
|
45
|
+
}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# List of attributes with nullable: true
|
|
49
|
+
def self.openapi_nullable
|
|
50
|
+
Set.new([
|
|
51
|
+
])
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Initializes the object
|
|
55
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
56
|
+
def initialize(attributes = {})
|
|
57
|
+
if (!attributes.is_a?(Hash))
|
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::GetLogsResponseMessagesInnerMediaInner` initialize method"
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
62
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
63
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
64
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::GetLogsResponseMessagesInnerMediaInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
66
|
+
end
|
|
67
|
+
h[k.to_sym] = v
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if attributes.key?(:'url')
|
|
71
|
+
self.url = attributes[:'url']
|
|
72
|
+
else
|
|
73
|
+
self.url = nil
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
if attributes.key?(:'content_type')
|
|
77
|
+
self.content_type = attributes[:'content_type']
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
82
|
+
# @return Array for valid properties with the reasons
|
|
83
|
+
def list_invalid_properties
|
|
84
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
85
|
+
invalid_properties = Array.new
|
|
86
|
+
if @url.nil?
|
|
87
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
invalid_properties
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Check to see if the all the properties in the model are valid
|
|
94
|
+
# @return true if the model is valid
|
|
95
|
+
def valid?
|
|
96
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
97
|
+
return false if @url.nil?
|
|
98
|
+
true
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Custom attribute writer method with validation
|
|
102
|
+
# @param [Object] url Value to be assigned
|
|
103
|
+
def url=(url)
|
|
104
|
+
if url.nil?
|
|
105
|
+
fail ArgumentError, 'url cannot be nil'
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
@url = url
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Checks equality by comparing each attribute.
|
|
112
|
+
# @param [Object] Object to be compared
|
|
113
|
+
def ==(o)
|
|
114
|
+
return true if self.equal?(o)
|
|
115
|
+
self.class == o.class &&
|
|
116
|
+
url == o.url &&
|
|
117
|
+
content_type == o.content_type
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# @see the `==` method
|
|
121
|
+
# @param [Object] Object to be compared
|
|
122
|
+
def eql?(o)
|
|
123
|
+
self == o
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Calculates hash code according to all attributes.
|
|
127
|
+
# @return [Integer] Hash code
|
|
128
|
+
def hash
|
|
129
|
+
[url, content_type].hash
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Builds the object from hash
|
|
133
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
134
|
+
# @return [Object] Returns the model itself
|
|
135
|
+
def self.build_from_hash(attributes)
|
|
136
|
+
return nil unless attributes.is_a?(Hash)
|
|
137
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
138
|
+
transformed_hash = {}
|
|
139
|
+
openapi_types.each_pair do |key, type|
|
|
140
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
141
|
+
transformed_hash["#{key}"] = nil
|
|
142
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
143
|
+
# check to ensure the input is an array given that the attribute
|
|
144
|
+
# is documented as an array but the input is not
|
|
145
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
146
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
147
|
+
end
|
|
148
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
149
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
new(transformed_hash)
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Returns the object in the form of hash
|
|
156
|
+
# @return [Hash] Returns the object in the form of hash
|
|
157
|
+
def to_hash
|
|
158
|
+
hash = {}
|
|
159
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
160
|
+
value = self.send(attr)
|
|
161
|
+
if value.nil?
|
|
162
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
163
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
hash[param] = _to_hash(value)
|
|
167
|
+
end
|
|
168
|
+
hash
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
end
|
|
@@ -25,7 +25,8 @@ module Pingram
|
|
|
25
25
|
:'GetTemplatesListResponseInnerAnyOf2',
|
|
26
26
|
:'GetTemplatesListResponseInnerAnyOf3',
|
|
27
27
|
:'GetTemplatesListResponseInnerAnyOf4',
|
|
28
|
-
:'GetTemplatesListResponseInnerAnyOf5'
|
|
28
|
+
:'GetTemplatesListResponseInnerAnyOf5',
|
|
29
|
+
:'GetTemplatesListResponseInnerAnyOf6'
|
|
29
30
|
]
|
|
30
31
|
end
|
|
31
32
|
|
|
@@ -29,6 +29,9 @@ module Pingram
|
|
|
29
29
|
|
|
30
30
|
attr_accessor :text
|
|
31
31
|
|
|
32
|
+
# Set when sending MMS (outbound).
|
|
33
|
+
attr_accessor :media_urls
|
|
34
|
+
|
|
32
35
|
class EnumAttributeValidator
|
|
33
36
|
attr_reader :datatype
|
|
34
37
|
attr_reader :allowable_values
|
|
@@ -60,7 +63,8 @@ module Pingram
|
|
|
60
63
|
:'channel' => :'channel',
|
|
61
64
|
:'default' => :'default',
|
|
62
65
|
:'is_default_for' => :'isDefaultFor',
|
|
63
|
-
:'text' => :'text'
|
|
66
|
+
:'text' => :'text',
|
|
67
|
+
:'media_urls' => :'mediaUrls'
|
|
64
68
|
}
|
|
65
69
|
end
|
|
66
70
|
|
|
@@ -83,7 +87,8 @@ module Pingram
|
|
|
83
87
|
:'channel' => :'ChannelsEnum',
|
|
84
88
|
:'default' => :'Boolean',
|
|
85
89
|
:'is_default_for' => :'Hash<String, Boolean>',
|
|
86
|
-
:'text' => :'String'
|
|
90
|
+
:'text' => :'String',
|
|
91
|
+
:'media_urls' => :'Array<String>'
|
|
87
92
|
}
|
|
88
93
|
end
|
|
89
94
|
|
|
@@ -150,6 +155,12 @@ module Pingram
|
|
|
150
155
|
else
|
|
151
156
|
self.text = nil
|
|
152
157
|
end
|
|
158
|
+
|
|
159
|
+
if attributes.key?(:'media_urls')
|
|
160
|
+
if (value = attributes[:'media_urls']).is_a?(Array)
|
|
161
|
+
self.media_urls = value
|
|
162
|
+
end
|
|
163
|
+
end
|
|
153
164
|
end
|
|
154
165
|
|
|
155
166
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -268,7 +279,8 @@ module Pingram
|
|
|
268
279
|
channel == o.channel &&
|
|
269
280
|
default == o.default &&
|
|
270
281
|
is_default_for == o.is_default_for &&
|
|
271
|
-
text == o.text
|
|
282
|
+
text == o.text &&
|
|
283
|
+
media_urls == o.media_urls
|
|
272
284
|
end
|
|
273
285
|
|
|
274
286
|
# @see the `==` method
|
|
@@ -280,7 +292,7 @@ module Pingram
|
|
|
280
292
|
# Calculates hash code according to all attributes.
|
|
281
293
|
# @return [Integer] Hash code
|
|
282
294
|
def hash
|
|
283
|
-
[env_id, notification_id, template_id, channel, default, is_default_for, text].hash
|
|
295
|
+
[env_id, notification_id, template_id, channel, default, is_default_for, text, media_urls].hash
|
|
284
296
|
end
|
|
285
297
|
|
|
286
298
|
# Builds the object from hash
|
|
@@ -27,9 +27,7 @@ module Pingram
|
|
|
27
27
|
|
|
28
28
|
attr_accessor :is_default_for
|
|
29
29
|
|
|
30
|
-
attr_accessor :
|
|
31
|
-
|
|
32
|
-
attr_accessor :message
|
|
30
|
+
attr_accessor :text
|
|
33
31
|
|
|
34
32
|
class EnumAttributeValidator
|
|
35
33
|
attr_reader :datatype
|
|
@@ -62,8 +60,7 @@ module Pingram
|
|
|
62
60
|
:'channel' => :'channel',
|
|
63
61
|
:'default' => :'default',
|
|
64
62
|
:'is_default_for' => :'isDefaultFor',
|
|
65
|
-
:'
|
|
66
|
-
:'message' => :'message'
|
|
63
|
+
:'text' => :'text'
|
|
67
64
|
}
|
|
68
65
|
end
|
|
69
66
|
|
|
@@ -86,8 +83,7 @@ module Pingram
|
|
|
86
83
|
:'channel' => :'ChannelsEnum',
|
|
87
84
|
:'default' => :'Boolean',
|
|
88
85
|
:'is_default_for' => :'Hash<String, Boolean>',
|
|
89
|
-
:'
|
|
90
|
-
:'message' => :'String'
|
|
86
|
+
:'text' => :'String'
|
|
91
87
|
}
|
|
92
88
|
end
|
|
93
89
|
|
|
@@ -149,16 +145,10 @@ module Pingram
|
|
|
149
145
|
end
|
|
150
146
|
end
|
|
151
147
|
|
|
152
|
-
if attributes.key?(:'
|
|
153
|
-
self.
|
|
154
|
-
else
|
|
155
|
-
self.title = nil
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
if attributes.key?(:'message')
|
|
159
|
-
self.message = attributes[:'message']
|
|
148
|
+
if attributes.key?(:'text')
|
|
149
|
+
self.text = attributes[:'text']
|
|
160
150
|
else
|
|
161
|
-
self.
|
|
151
|
+
self.text = nil
|
|
162
152
|
end
|
|
163
153
|
end
|
|
164
154
|
|
|
@@ -187,12 +177,8 @@ module Pingram
|
|
|
187
177
|
invalid_properties.push('invalid value for "default", default cannot be nil.')
|
|
188
178
|
end
|
|
189
179
|
|
|
190
|
-
if @
|
|
191
|
-
invalid_properties.push('invalid value for "
|
|
192
|
-
end
|
|
193
|
-
|
|
194
|
-
if @message.nil?
|
|
195
|
-
invalid_properties.push('invalid value for "message", message cannot be nil.')
|
|
180
|
+
if @text.nil?
|
|
181
|
+
invalid_properties.push('invalid value for "text", text cannot be nil.')
|
|
196
182
|
end
|
|
197
183
|
|
|
198
184
|
invalid_properties
|
|
@@ -207,8 +193,7 @@ module Pingram
|
|
|
207
193
|
return false if @template_id.nil?
|
|
208
194
|
return false if @channel.nil?
|
|
209
195
|
return false if @default.nil?
|
|
210
|
-
return false if @
|
|
211
|
-
return false if @message.nil?
|
|
196
|
+
return false if @text.nil?
|
|
212
197
|
true
|
|
213
198
|
end
|
|
214
199
|
|
|
@@ -263,23 +248,13 @@ module Pingram
|
|
|
263
248
|
end
|
|
264
249
|
|
|
265
250
|
# Custom attribute writer method with validation
|
|
266
|
-
# @param [Object]
|
|
267
|
-
def
|
|
268
|
-
if
|
|
269
|
-
fail ArgumentError, '
|
|
270
|
-
end
|
|
271
|
-
|
|
272
|
-
@title = title
|
|
273
|
-
end
|
|
274
|
-
|
|
275
|
-
# Custom attribute writer method with validation
|
|
276
|
-
# @param [Object] message Value to be assigned
|
|
277
|
-
def message=(message)
|
|
278
|
-
if message.nil?
|
|
279
|
-
fail ArgumentError, 'message cannot be nil'
|
|
251
|
+
# @param [Object] text Value to be assigned
|
|
252
|
+
def text=(text)
|
|
253
|
+
if text.nil?
|
|
254
|
+
fail ArgumentError, 'text cannot be nil'
|
|
280
255
|
end
|
|
281
256
|
|
|
282
|
-
@
|
|
257
|
+
@text = text
|
|
283
258
|
end
|
|
284
259
|
|
|
285
260
|
# Checks equality by comparing each attribute.
|
|
@@ -293,8 +268,7 @@ module Pingram
|
|
|
293
268
|
channel == o.channel &&
|
|
294
269
|
default == o.default &&
|
|
295
270
|
is_default_for == o.is_default_for &&
|
|
296
|
-
|
|
297
|
-
message == o.message
|
|
271
|
+
text == o.text
|
|
298
272
|
end
|
|
299
273
|
|
|
300
274
|
# @see the `==` method
|
|
@@ -306,7 +280,7 @@ module Pingram
|
|
|
306
280
|
# Calculates hash code according to all attributes.
|
|
307
281
|
# @return [Integer] Hash code
|
|
308
282
|
def hash
|
|
309
|
-
[env_id, notification_id, template_id, channel, default, is_default_for,
|
|
283
|
+
[env_id, notification_id, template_id, channel, default, is_default_for, text].hash
|
|
310
284
|
end
|
|
311
285
|
|
|
312
286
|
# Builds the object from hash
|
|
@@ -31,10 +31,6 @@ module Pingram
|
|
|
31
31
|
|
|
32
32
|
attr_accessor :message
|
|
33
33
|
|
|
34
|
-
attr_accessor :icon
|
|
35
|
-
|
|
36
|
-
attr_accessor :url
|
|
37
|
-
|
|
38
34
|
class EnumAttributeValidator
|
|
39
35
|
attr_reader :datatype
|
|
40
36
|
attr_reader :allowable_values
|
|
@@ -67,9 +63,7 @@ module Pingram
|
|
|
67
63
|
:'default' => :'default',
|
|
68
64
|
:'is_default_for' => :'isDefaultFor',
|
|
69
65
|
:'title' => :'title',
|
|
70
|
-
:'message' => :'message'
|
|
71
|
-
:'icon' => :'icon',
|
|
72
|
-
:'url' => :'url'
|
|
66
|
+
:'message' => :'message'
|
|
73
67
|
}
|
|
74
68
|
end
|
|
75
69
|
|
|
@@ -93,9 +87,7 @@ module Pingram
|
|
|
93
87
|
:'default' => :'Boolean',
|
|
94
88
|
:'is_default_for' => :'Hash<String, Boolean>',
|
|
95
89
|
:'title' => :'String',
|
|
96
|
-
:'message' => :'String'
|
|
97
|
-
:'icon' => :'String',
|
|
98
|
-
:'url' => :'String'
|
|
90
|
+
:'message' => :'String'
|
|
99
91
|
}
|
|
100
92
|
end
|
|
101
93
|
|
|
@@ -168,14 +160,6 @@ module Pingram
|
|
|
168
160
|
else
|
|
169
161
|
self.message = nil
|
|
170
162
|
end
|
|
171
|
-
|
|
172
|
-
if attributes.key?(:'icon')
|
|
173
|
-
self.icon = attributes[:'icon']
|
|
174
|
-
end
|
|
175
|
-
|
|
176
|
-
if attributes.key?(:'url')
|
|
177
|
-
self.url = attributes[:'url']
|
|
178
|
-
end
|
|
179
163
|
end
|
|
180
164
|
|
|
181
165
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -310,9 +294,7 @@ module Pingram
|
|
|
310
294
|
default == o.default &&
|
|
311
295
|
is_default_for == o.is_default_for &&
|
|
312
296
|
title == o.title &&
|
|
313
|
-
message == o.message
|
|
314
|
-
icon == o.icon &&
|
|
315
|
-
url == o.url
|
|
297
|
+
message == o.message
|
|
316
298
|
end
|
|
317
299
|
|
|
318
300
|
# @see the `==` method
|
|
@@ -324,7 +306,7 @@ module Pingram
|
|
|
324
306
|
# Calculates hash code according to all attributes.
|
|
325
307
|
# @return [Integer] Hash code
|
|
326
308
|
def hash
|
|
327
|
-
[env_id, notification_id, template_id, channel, default, is_default_for, title, message
|
|
309
|
+
[env_id, notification_id, template_id, channel, default, is_default_for, title, message].hash
|
|
328
310
|
end
|
|
329
311
|
|
|
330
312
|
# Builds the object from hash
|
|
@@ -27,29 +27,13 @@ module Pingram
|
|
|
27
27
|
|
|
28
28
|
attr_accessor :is_default_for
|
|
29
29
|
|
|
30
|
-
attr_accessor :
|
|
30
|
+
attr_accessor :title
|
|
31
31
|
|
|
32
|
-
attr_accessor :
|
|
33
|
-
|
|
34
|
-
attr_accessor :username
|
|
32
|
+
attr_accessor :message
|
|
35
33
|
|
|
36
34
|
attr_accessor :icon
|
|
37
35
|
|
|
38
|
-
attr_accessor :
|
|
39
|
-
|
|
40
|
-
attr_accessor :reply_broadcast
|
|
41
|
-
|
|
42
|
-
attr_accessor :parse
|
|
43
|
-
|
|
44
|
-
attr_accessor :link_names
|
|
45
|
-
|
|
46
|
-
attr_accessor :mrkdwn
|
|
47
|
-
|
|
48
|
-
attr_accessor :unfurl_links
|
|
49
|
-
|
|
50
|
-
attr_accessor :unfurl_media
|
|
51
|
-
|
|
52
|
-
attr_accessor :metadata
|
|
36
|
+
attr_accessor :url
|
|
53
37
|
|
|
54
38
|
class EnumAttributeValidator
|
|
55
39
|
attr_reader :datatype
|
|
@@ -82,18 +66,10 @@ module Pingram
|
|
|
82
66
|
:'channel' => :'channel',
|
|
83
67
|
:'default' => :'default',
|
|
84
68
|
:'is_default_for' => :'isDefaultFor',
|
|
85
|
-
:'
|
|
86
|
-
:'
|
|
87
|
-
:'username' => :'username',
|
|
69
|
+
:'title' => :'title',
|
|
70
|
+
:'message' => :'message',
|
|
88
71
|
:'icon' => :'icon',
|
|
89
|
-
:'
|
|
90
|
-
:'reply_broadcast' => :'reply_broadcast',
|
|
91
|
-
:'parse' => :'parse',
|
|
92
|
-
:'link_names' => :'link_names',
|
|
93
|
-
:'mrkdwn' => :'mrkdwn',
|
|
94
|
-
:'unfurl_links' => :'unfurl_links',
|
|
95
|
-
:'unfurl_media' => :'unfurl_media',
|
|
96
|
-
:'metadata' => :'metadata'
|
|
72
|
+
:'url' => :'url'
|
|
97
73
|
}
|
|
98
74
|
end
|
|
99
75
|
|
|
@@ -116,18 +92,10 @@ module Pingram
|
|
|
116
92
|
:'channel' => :'ChannelsEnum',
|
|
117
93
|
:'default' => :'Boolean',
|
|
118
94
|
:'is_default_for' => :'Hash<String, Boolean>',
|
|
119
|
-
:'
|
|
120
|
-
:'
|
|
121
|
-
:'username' => :'String',
|
|
95
|
+
:'title' => :'String',
|
|
96
|
+
:'message' => :'String',
|
|
122
97
|
:'icon' => :'String',
|
|
123
|
-
:'
|
|
124
|
-
:'reply_broadcast' => :'Boolean',
|
|
125
|
-
:'parse' => :'String',
|
|
126
|
-
:'link_names' => :'Boolean',
|
|
127
|
-
:'mrkdwn' => :'Boolean',
|
|
128
|
-
:'unfurl_links' => :'Boolean',
|
|
129
|
-
:'unfurl_media' => :'Boolean',
|
|
130
|
-
:'metadata' => :'GetTemplatesListResponseInnerAnyOf5Metadata'
|
|
98
|
+
:'url' => :'String'
|
|
131
99
|
}
|
|
132
100
|
end
|
|
133
101
|
|
|
@@ -189,56 +157,24 @@ module Pingram
|
|
|
189
157
|
end
|
|
190
158
|
end
|
|
191
159
|
|
|
192
|
-
if attributes.key?(:'
|
|
193
|
-
self.
|
|
160
|
+
if attributes.key?(:'title')
|
|
161
|
+
self.title = attributes[:'title']
|
|
194
162
|
else
|
|
195
|
-
self.
|
|
163
|
+
self.title = nil
|
|
196
164
|
end
|
|
197
165
|
|
|
198
|
-
if attributes.key?(:'
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
end
|
|
203
|
-
|
|
204
|
-
if attributes.key?(:'username')
|
|
205
|
-
self.username = attributes[:'username']
|
|
166
|
+
if attributes.key?(:'message')
|
|
167
|
+
self.message = attributes[:'message']
|
|
168
|
+
else
|
|
169
|
+
self.message = nil
|
|
206
170
|
end
|
|
207
171
|
|
|
208
172
|
if attributes.key?(:'icon')
|
|
209
173
|
self.icon = attributes[:'icon']
|
|
210
174
|
end
|
|
211
175
|
|
|
212
|
-
if attributes.key?(:'
|
|
213
|
-
self.
|
|
214
|
-
end
|
|
215
|
-
|
|
216
|
-
if attributes.key?(:'reply_broadcast')
|
|
217
|
-
self.reply_broadcast = attributes[:'reply_broadcast']
|
|
218
|
-
end
|
|
219
|
-
|
|
220
|
-
if attributes.key?(:'parse')
|
|
221
|
-
self.parse = attributes[:'parse']
|
|
222
|
-
end
|
|
223
|
-
|
|
224
|
-
if attributes.key?(:'link_names')
|
|
225
|
-
self.link_names = attributes[:'link_names']
|
|
226
|
-
end
|
|
227
|
-
|
|
228
|
-
if attributes.key?(:'mrkdwn')
|
|
229
|
-
self.mrkdwn = attributes[:'mrkdwn']
|
|
230
|
-
end
|
|
231
|
-
|
|
232
|
-
if attributes.key?(:'unfurl_links')
|
|
233
|
-
self.unfurl_links = attributes[:'unfurl_links']
|
|
234
|
-
end
|
|
235
|
-
|
|
236
|
-
if attributes.key?(:'unfurl_media')
|
|
237
|
-
self.unfurl_media = attributes[:'unfurl_media']
|
|
238
|
-
end
|
|
239
|
-
|
|
240
|
-
if attributes.key?(:'metadata')
|
|
241
|
-
self.metadata = attributes[:'metadata']
|
|
176
|
+
if attributes.key?(:'url')
|
|
177
|
+
self.url = attributes[:'url']
|
|
242
178
|
end
|
|
243
179
|
end
|
|
244
180
|
|
|
@@ -267,8 +203,12 @@ module Pingram
|
|
|
267
203
|
invalid_properties.push('invalid value for "default", default cannot be nil.')
|
|
268
204
|
end
|
|
269
205
|
|
|
270
|
-
if @
|
|
271
|
-
invalid_properties.push('invalid value for "
|
|
206
|
+
if @title.nil?
|
|
207
|
+
invalid_properties.push('invalid value for "title", title cannot be nil.')
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
if @message.nil?
|
|
211
|
+
invalid_properties.push('invalid value for "message", message cannot be nil.')
|
|
272
212
|
end
|
|
273
213
|
|
|
274
214
|
invalid_properties
|
|
@@ -283,9 +223,8 @@ module Pingram
|
|
|
283
223
|
return false if @template_id.nil?
|
|
284
224
|
return false if @channel.nil?
|
|
285
225
|
return false if @default.nil?
|
|
286
|
-
return false if @
|
|
287
|
-
|
|
288
|
-
return false unless parse_validator.valid?(@parse)
|
|
226
|
+
return false if @title.nil?
|
|
227
|
+
return false if @message.nil?
|
|
289
228
|
true
|
|
290
229
|
end
|
|
291
230
|
|
|
@@ -340,23 +279,23 @@ module Pingram
|
|
|
340
279
|
end
|
|
341
280
|
|
|
342
281
|
# Custom attribute writer method with validation
|
|
343
|
-
# @param [Object]
|
|
344
|
-
def
|
|
345
|
-
if
|
|
346
|
-
fail ArgumentError, '
|
|
282
|
+
# @param [Object] title Value to be assigned
|
|
283
|
+
def title=(title)
|
|
284
|
+
if title.nil?
|
|
285
|
+
fail ArgumentError, 'title cannot be nil'
|
|
347
286
|
end
|
|
348
287
|
|
|
349
|
-
@
|
|
288
|
+
@title = title
|
|
350
289
|
end
|
|
351
290
|
|
|
352
|
-
# Custom attribute writer method
|
|
353
|
-
# @param [Object]
|
|
354
|
-
def
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
fail ArgumentError, "invalid value for \"parse\", must be one of #{validator.allowable_values}."
|
|
291
|
+
# Custom attribute writer method with validation
|
|
292
|
+
# @param [Object] message Value to be assigned
|
|
293
|
+
def message=(message)
|
|
294
|
+
if message.nil?
|
|
295
|
+
fail ArgumentError, 'message cannot be nil'
|
|
358
296
|
end
|
|
359
|
-
|
|
297
|
+
|
|
298
|
+
@message = message
|
|
360
299
|
end
|
|
361
300
|
|
|
362
301
|
# Checks equality by comparing each attribute.
|
|
@@ -370,18 +309,10 @@ module Pingram
|
|
|
370
309
|
channel == o.channel &&
|
|
371
310
|
default == o.default &&
|
|
372
311
|
is_default_for == o.is_default_for &&
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
username == o.username &&
|
|
312
|
+
title == o.title &&
|
|
313
|
+
message == o.message &&
|
|
376
314
|
icon == o.icon &&
|
|
377
|
-
|
|
378
|
-
reply_broadcast == o.reply_broadcast &&
|
|
379
|
-
parse == o.parse &&
|
|
380
|
-
link_names == o.link_names &&
|
|
381
|
-
mrkdwn == o.mrkdwn &&
|
|
382
|
-
unfurl_links == o.unfurl_links &&
|
|
383
|
-
unfurl_media == o.unfurl_media &&
|
|
384
|
-
metadata == o.metadata
|
|
315
|
+
url == o.url
|
|
385
316
|
end
|
|
386
317
|
|
|
387
318
|
# @see the `==` method
|
|
@@ -393,7 +324,7 @@ module Pingram
|
|
|
393
324
|
# Calculates hash code according to all attributes.
|
|
394
325
|
# @return [Integer] Hash code
|
|
395
326
|
def hash
|
|
396
|
-
[env_id, notification_id, template_id, channel, default, is_default_for,
|
|
327
|
+
[env_id, notification_id, template_id, channel, default, is_default_for, title, message, icon, url].hash
|
|
397
328
|
end
|
|
398
329
|
|
|
399
330
|
# Builds the object from hash
|