Class: GetStream::Generated::Models::PushProviderRequest

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/push_provider_request.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 = {}) ⇒ PushProviderRequest

Initialize with attributes



86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# File 'lib/getstream_ruby/generated/models/push_provider_request.rb', line 86

def initialize(attributes = {})
  super(attributes)
  @name = attributes[:name] || attributes['name']
  @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
  @type = attributes[:type] || attributes['type'] || 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
end

Instance Attribute Details

#apn_auth_key ⇒ String

Returns:

  • (String)


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

def apn_auth_key
  @apn_auth_key
end

#apn_auth_type ⇒ String

Returns:

  • (String)


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

def apn_auth_type
  @apn_auth_type
end

#apn_development ⇒ Boolean

Returns:

  • (Boolean)


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

def apn_development
  @apn_development
end

#apn_host ⇒ String

Returns:

  • (String)


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

def apn_host
  @apn_host
end

#apn_key_id ⇒ String

Returns:

  • (String)


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

def apn_key_id
  @apn_key_id
end

#apn_notification_template ⇒ String

Returns:

  • (String)


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

def apn_notification_template
  @apn_notification_template
end

#apn_p12_cert ⇒ String

Returns:

  • (String)


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

def apn_p12_cert
  @apn_p12_cert
end

#apn_team_id ⇒ String

Returns:

  • (String)


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

def apn_team_id
  @apn_team_id
end

#apn_topic ⇒ String

Returns:

  • (String)


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

def apn_topic
  @apn_topic
end

#description ⇒ String

Returns:

  • (String)


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

def description
  @description
end

#disabled_at ⇒ DateTime

Returns:

  • (DateTime)


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

def disabled_at
  @disabled_at
end

#disabled_reason ⇒ String

Returns:

  • (String)


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

def disabled_reason
  @disabled_reason
end

#firebase_apn_template ⇒ String

Returns:

  • (String)


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

def firebase_apn_template
  @firebase_apn_template
end

#firebase_credentials ⇒ String

Returns:

  • (String)


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

def firebase_credentials
  @firebase_credentials
end

#firebase_data_template ⇒ String

Returns:

  • (String)


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

def firebase_data_template
  @firebase_data_template
end

#firebase_host ⇒ String

Returns:

  • (String)


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

def firebase_host
  @firebase_host
end

#firebase_notification_template ⇒ String

Returns:

  • (String)


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

def firebase_notification_template
  @firebase_notification_template
end

#firebase_server_key ⇒ String

Returns:

  • (String)


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

def firebase_server_key
  @firebase_server_key
end

#huawei_app_id ⇒ String

Returns:

  • (String)


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

def huawei_app_id
  @huawei_app_id
end

#huawei_app_secret ⇒ String

Returns:

  • (String)


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

def huawei_app_secret
  @huawei_app_secret
end

#name ⇒ String

Returns:

  • (String)


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

def name
  @name
end

#type ⇒ String

Returns:

  • (String)


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

def type
  @type
end

#xiaomi_app_secret ⇒ String

Returns:

  • (String)


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

def xiaomi_app_secret
  @xiaomi_app_secret
end

#xiaomi_package_name ⇒ String

Returns:

  • (String)


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

def xiaomi_package_name
  @xiaomi_package_name
end

Class Method Details

.json_field_mappings ⇒ Object

Override field mappings for JSON serialization



115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# File 'lib/getstream_ruby/generated/models/push_provider_request.rb', line 115

def self.json_field_mappings
  {
    name: 'name',
    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',
    type: 'type',
    xiaomi_app_secret: 'xiaomi_app_secret',
    xiaomi_package_name: 'xiaomi_package_name'
  }
end