Class: Telnyx::Resources::Storage

Inherits:
Object
  • Object
show all
Defined in:
lib/telnyx/resources/storage.rb,
lib/telnyx/resources/storage/buckets.rb,
lib/telnyx/resources/storage/migrations.rb,
lib/telnyx/resources/storage/buckets/usage.rb,
lib/telnyx/resources/storage/migration_sources.rb,
lib/telnyx/resources/storage/migrations/actions.rb,
lib/telnyx/resources/storage/buckets/ssl_certificate.rb

Defined Under Namespace

Classes: Buckets, MigrationSources, Migrations

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Storage

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Storage.

Parameters:



36
37
38
39
40
41
# File 'lib/telnyx/resources/storage.rb', line 36

def initialize(client:)
  @client = client
  @buckets = Telnyx::Resources::Storage::Buckets.new(client: client)
  @migration_sources = Telnyx::Resources::Storage::MigrationSources.new(client: client)
  @migrations = Telnyx::Resources::Storage::Migrations.new(client: client)
end

Instance Attribute Details

#bucketsTelnyx::Resources::Storage::Buckets (readonly)



7
8
9
# File 'lib/telnyx/resources/storage.rb', line 7

def buckets
  @buckets
end

#migration_sourcesTelnyx::Resources::Storage::MigrationSources (readonly)



10
11
12
# File 'lib/telnyx/resources/storage.rb', line 10

def migration_sources
  @migration_sources
end

#migrationsTelnyx::Resources::Storage::Migrations (readonly)



13
14
15
# File 'lib/telnyx/resources/storage.rb', line 13

def migrations
  @migrations
end

Instance Method Details

#list_migration_source_coverage(request_options: {}) ⇒ Telnyx::Models::StorageListMigrationSourceCoverageResponse

List Migration Source coverage



24
25
26
27
28
29
30
31
# File 'lib/telnyx/resources/storage.rb', line 24

def list_migration_source_coverage(params = {})
  @client.request(
    method: :get,
    path: "storage/migration_source_coverage",
    model: Telnyx::Models::StorageListMigrationSourceCoverageResponse,
    options: params[:request_options]
  )
end