Class: Telnyx::Resources::Storage
- Inherits:
-
Object
- Object
- Telnyx::Resources::Storage
- 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
- #buckets ⇒ Telnyx::Resources::Storage::Buckets readonly
- #migration_sources ⇒ Telnyx::Resources::Storage::MigrationSources readonly
- #migrations ⇒ Telnyx::Resources::Storage::Migrations readonly
Instance Method Summary collapse
-
#initialize(client:) ⇒ Storage
constructor
private
A new instance of Storage.
-
#list_migration_source_coverage(request_options: {}) ⇒ Telnyx::Models::StorageListMigrationSourceCoverageResponse
List Migration Source coverage.
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.
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
#buckets ⇒ Telnyx::Resources::Storage::Buckets (readonly)
7 8 9 |
# File 'lib/telnyx/resources/storage.rb', line 7 def buckets @buckets end |
#migration_sources ⇒ Telnyx::Resources::Storage::MigrationSources (readonly)
10 11 12 |
# File 'lib/telnyx/resources/storage.rb', line 10 def migration_sources @migration_sources end |
#migrations ⇒ Telnyx::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 |