Class: GetStream::Generated::Models::WebhookFailoverConfig

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

Initialize with attributes



44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/getstream_ruby/generated/models/webhook_failover_config.rb', line 44

def initialize(attributes = {})
  super(attributes)
  @gcs_bucket = attributes[:gcs_bucket] || attributes['gcs_bucket'] || nil
  @gcs_credentials = attributes[:gcs_credentials] || attributes['gcs_credentials'] || nil
  @gcs_path = attributes[:gcs_path] || attributes['gcs_path'] || nil
  @s3_api_key = attributes[:s3_api_key] || attributes['s3_api_key'] || nil
  @s3_bucket = attributes[:s3_bucket] || attributes['s3_bucket'] || nil
  @s3_path = attributes[:s3_path] || attributes['s3_path'] || nil
  @s3_region = attributes[:s3_region] || attributes['s3_region'] || nil
  @s3_role_arn = attributes[:s3_role_arn] || attributes['s3_role_arn'] || nil
  @s3_secret = attributes[:s3_secret] || attributes['s3_secret'] || nil
  @type = attributes[:type] || attributes['type'] || nil
end

Instance Attribute Details

#gcs_bucketString

Returns:

  • (String)


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

def gcs_bucket
  @gcs_bucket
end

#gcs_credentialsString

Returns:

  • (String)


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

def gcs_credentials
  @gcs_credentials
end

#gcs_pathString

Returns:

  • (String)


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

def gcs_path
  @gcs_path
end

#s3_api_keyString

Returns:

  • (String)


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

def s3_api_key
  @s3_api_key
end

#s3_bucketString

Returns:

  • (String)


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

def s3_bucket
  @s3_bucket
end

#s3_pathString

Returns:

  • (String)


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

def s3_path
  @s3_path
end

#s3_regionString

Returns:

  • (String)


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

def s3_region
  @s3_region
end

#s3_role_arnString

Returns:

  • (String)


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

def s3_role_arn
  @s3_role_arn
end

#s3_secretString

Returns:

  • (String)


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

def s3_secret
  @s3_secret
end

#typeString

Returns:

  • (String)


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

def type
  @type
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/getstream_ruby/generated/models/webhook_failover_config.rb', line 59

def self.json_field_mappings
  {
    gcs_bucket: 'gcs_bucket',
    gcs_credentials: 'gcs_credentials',
    gcs_path: 'gcs_path',
    s3_api_key: 's3_api_key',
    s3_bucket: 's3_bucket',
    s3_path: 's3_path',
    s3_region: 's3_region',
    s3_role_arn: 's3_role_arn',
    s3_secret: 's3_secret',
    type: 'type'
  }
end