Class: GetStream::Generated::Models::CreateExternalStorageRequest

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

Overview

Create external storage

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 = {}) ⇒ CreateExternalStorageRequest

Initialize with attributes



35
36
37
38
39
40
41
42
43
44
# File 'lib/getstream_ruby/generated/models/create_external_storage_request.rb', line 35

def initialize(attributes = {})
  super(attributes)
  @bucket = attributes[:bucket] || attributes['bucket']
  @name = attributes[:name] || attributes['name']
  @storage_type = attributes[:storage_type] || attributes['storage_type']
  @gcs_credentials = attributes[:gcs_credentials] || attributes['gcs_credentials'] || nil
  @path = attributes[:path] || attributes['path'] || nil
  @aws_s3 = attributes[:aws_s3] || attributes['aws_s3'] || nil
  @azure_blob = attributes[:azure_blob] || attributes['azure_blob'] || nil
end

Instance Attribute Details

#aws_s3S3Request

Returns:



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

def aws_s3
  @aws_s3
end

#azure_blobAzureRequest

Returns:



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

def azure_blob
  @azure_blob
end

#bucketString

Returns The name of the bucket on the service provider.

Returns:

  • (String)

    The name of the bucket on the service provider



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

def bucket
  @bucket
end

#gcs_credentialsString

Returns:

  • (String)


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

def gcs_credentials
  @gcs_credentials
end

#nameString

Returns The name of the provider, this must be unique.

Returns:

  • (String)

    The name of the provider, this must be unique



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

def name
  @name
end

#pathString

Returns The path prefix to use for storing files.

Returns:

  • (String)

    The path prefix to use for storing files



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

def path
  @path
end

#storage_typeString

Returns The type of storage to use.

Returns:

  • (String)

    The type of storage to use



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

def storage_type
  @storage_type
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



47
48
49
50
51
52
53
54
55
56
57
# File 'lib/getstream_ruby/generated/models/create_external_storage_request.rb', line 47

def self.json_field_mappings
  {
    bucket: 'bucket',
    name: 'name',
    storage_type: 'storage_type',
    gcs_credentials: 'gcs_credentials',
    path: 'path',
    aws_s3: 'aws_s3',
    azure_blob: 'azure_blob'
  }
end