Class: GetStream::Generated::Models::PushProvider

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/push_provider.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#==, #inspect, omit_empty_fields, #to_h, #to_json

Constructor Details

#initialize(attributes = {}) ⇒ PushProvider

Initialize with attributes



98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 98

def initialize(attributes = {})
  super(attributes)
  @created_at = attributes[:created_at] || attributes['created_at']
  @name = attributes[:name] || attributes['name']
  @type = attributes[:type] || attributes['type']
  @updated_at = attributes[:updated_at] || attributes['updated_at']
  @apn_auth_key = attributes[:apn_auth_key] || attributes['apn_auth_key'] || nil
  @apn_auth_type = attributes[:apn_auth_type] || attributes['apn_auth_type'] || nil
  @apn_development = attributes[:apn_development] || attributes['apn_development'] || nil
  @apn_host = attributes[:apn_host] || attributes['apn_host'] || nil
  @apn_key_id = attributes[:apn_key_id] || attributes['apn_key_id'] || nil
  @apn_notification_template = attributes[:apn_notification_template] || attributes['apn_notification_template'] || nil
  @apn_p12_cert = attributes[:apn_p12_cert] || attributes['apn_p12_cert'] || nil
  @apn_team_id = attributes[:apn_team_id] || attributes['apn_team_id'] || nil
  @apn_topic = attributes[:apn_topic] || attributes['apn_topic'] || nil
  @description = attributes[:description] || attributes['description'] || nil
  @disabled_at = attributes[:disabled_at] || attributes['disabled_at'] || nil
  @disabled_reason = attributes[:disabled_reason] || attributes['disabled_reason'] || nil
  @firebase_apn_template = attributes[:firebase_apn_template] || attributes['firebase_apn_template'] || nil
  @firebase_credentials = attributes[:firebase_credentials] || attributes['firebase_credentials'] || nil
  @firebase_data_template = attributes[:firebase_data_template] || attributes['firebase_data_template'] || nil
  @firebase_host = attributes[:firebase_host] || attributes['firebase_host'] || nil
  @firebase_notification_template = attributes[:firebase_notification_template] || attributes['firebase_notification_template'] || nil
  @firebase_server_key = attributes[:firebase_server_key] || attributes['firebase_server_key'] || nil
  @huawei_app_id = attributes[:huawei_app_id] || attributes['huawei_app_id'] || nil
  @huawei_app_secret = attributes[:huawei_app_secret] || attributes['huawei_app_secret'] || nil
  @huawei_host = attributes[:huawei_host] || attributes['huawei_host'] || nil
  @xiaomi_app_secret = attributes[:xiaomi_app_secret] || attributes['xiaomi_app_secret'] || nil
  @xiaomi_package_name = attributes[:xiaomi_package_name] || attributes['xiaomi_package_name'] || nil
  @push_templates = attributes[:push_templates] || attributes['push_templates'] || nil
end

Instance Attribute Details

#apn_auth_keyString



26
27
28
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 26

def apn_auth_key
  @apn_auth_key
end

#apn_auth_typeString



29
30
31
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 29

def apn_auth_type
  @apn_auth_type
end

#apn_developmentBoolean



32
33
34
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 32

def apn_development
  @apn_development
end

#apn_hostString



35
36
37
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 35

def apn_host
  @apn_host
end

#apn_key_idString



38
39
40
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 38

def apn_key_id
  @apn_key_id
end

#apn_notification_templateString



41
42
43
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 41

def apn_notification_template
  @apn_notification_template
end

#apn_p12_certString



44
45
46
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 44

def apn_p12_cert
  @apn_p12_cert
end

#apn_team_idString



47
48
49
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 47

def apn_team_id
  @apn_team_id
end

#apn_topicString



50
51
52
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 50

def apn_topic
  @apn_topic
end

#created_atDateTime



14
15
16
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 14

def created_at
  @created_at
end

#descriptionString



53
54
55
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 53

def description
  @description
end

#disabled_atDateTime



56
57
58
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 56

def disabled_at
  @disabled_at
end

#disabled_reasonString



59
60
61
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 59

def disabled_reason
  @disabled_reason
end

#firebase_apn_templateString



62
63
64
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 62

def firebase_apn_template
  @firebase_apn_template
end

#firebase_credentialsString



65
66
67
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 65

def firebase_credentials
  @firebase_credentials
end

#firebase_data_templateString



68
69
70
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 68

def firebase_data_template
  @firebase_data_template
end

#firebase_hostString



71
72
73
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 71

def firebase_host
  @firebase_host
end

#firebase_notification_templateString



74
75
76
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 74

def firebase_notification_template
  @firebase_notification_template
end

#firebase_server_keyString



77
78
79
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 77

def firebase_server_key
  @firebase_server_key
end

#huawei_app_idString



80
81
82
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 80

def huawei_app_id
  @huawei_app_id
end

#huawei_app_secretString



83
84
85
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 83

def huawei_app_secret
  @huawei_app_secret
end

#huawei_hostString



86
87
88
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 86

def huawei_host
  @huawei_host
end

#nameString



17
18
19
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 17

def name
  @name
end

#push_templatesArray<PushTemplate>



95
96
97
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 95

def push_templates
  @push_templates
end

#typeString



20
21
22
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 20

def type
  @type
end

#updated_atDateTime



23
24
25
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 23

def updated_at
  @updated_at
end

#xiaomi_app_secretString



89
90
91
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 89

def xiaomi_app_secret
  @xiaomi_app_secret
end

#xiaomi_package_nameString



92
93
94
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 92

def xiaomi_package_name
  @xiaomi_package_name
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
# File 'lib/getstream_ruby/generated/models/push_provider.rb', line 131

def self.json_field_mappings
  {
    created_at: 'created_at',
    name: 'name',
    type: 'type',
    updated_at: 'updated_at',
    apn_auth_key: 'apn_auth_key',
    apn_auth_type: 'apn_auth_type',
    apn_development: 'apn_development',
    apn_host: 'apn_host',
    apn_key_id: 'apn_key_id',
    apn_notification_template: 'apn_notification_template',
    apn_p12_cert: 'apn_p12_cert',
    apn_team_id: 'apn_team_id',
    apn_topic: 'apn_topic',
    description: 'description',
    disabled_at: 'disabled_at',
    disabled_reason: 'disabled_reason',
    firebase_apn_template: 'firebase_apn_template',
    firebase_credentials: 'firebase_credentials',
    firebase_data_template: 'firebase_data_template',
    firebase_host: 'firebase_host',
    firebase_notification_template: 'firebase_notification_template',
    firebase_server_key: 'firebase_server_key',
    huawei_app_id: 'huawei_app_id',
    huawei_app_secret: 'huawei_app_secret',
    huawei_host: 'huawei_host',
    xiaomi_app_secret: 'xiaomi_app_secret',
    xiaomi_package_name: 'xiaomi_package_name',
    push_templates: 'push_templates'
  }
end