Class: Aws::BackupStorage::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::BackupStorage::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-backupstorage/lib/aws-sdk-backupstorage/client.rb
Overview
An API client for BackupStorage. To construct a client, you need to configure a :region
and :credentials
.
client = Aws::BackupStorage::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#delete_object(params = {}) ⇒ Struct
Delete Object from the incremental base Backup.
-
#get_chunk(params = {}) ⇒ Types::GetChunkOutput
Gets the specified object's chunk.
-
#get_object_metadata(params = {}) ⇒ Types::GetObjectMetadataOutput
Get metadata associated with an Object.
-
#list_chunks(params = {}) ⇒ Types::ListChunksOutput
List chunks in a given Object.
-
#list_objects(params = {}) ⇒ Types::ListObjectsOutput
List all Objects in a given Backup.
-
#notify_object_complete(params = {}) ⇒ Types::NotifyObjectCompleteOutput
Complete upload.
-
#put_chunk(params = {}) ⇒ Types::PutChunkOutput
Upload chunk.
-
#put_object(params = {}) ⇒ Types::PutObjectOutput
Upload object that can store object metadata String and data blob in single API call using inline chunk field.
-
#start_object(params = {}) ⇒ Types::StartObjectOutput
Start upload containing one or many chunks.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
370 371 372 |
# File 'gems/aws-sdk-backupstorage/lib/aws-sdk-backupstorage/client.rb', line 370 def initialize(*args) super end |
Instance Method Details
#delete_object(params = {}) ⇒ Struct
Delete Object from the incremental base Backup.
397 398 399 400 |
# File 'gems/aws-sdk-backupstorage/lib/aws-sdk-backupstorage/client.rb', line 397 def delete_object(params = {}, = {}) req = build_request(:delete_object, params) req.send_request() end |
#get_chunk(params = {}) ⇒ Types::GetChunkOutput
Gets the specified object's chunk.
435 436 437 438 |
# File 'gems/aws-sdk-backupstorage/lib/aws-sdk-backupstorage/client.rb', line 435 def get_chunk(params = {}, = {}, &block) req = build_request(:get_chunk, params) req.send_request(, &block) end |
#get_object_metadata(params = {}) ⇒ Types::GetObjectMetadataOutput
Get metadata associated with an Object.
475 476 477 478 |
# File 'gems/aws-sdk-backupstorage/lib/aws-sdk-backupstorage/client.rb', line 475 def (params = {}, = {}, &block) req = build_request(:get_object_metadata, params) req.send_request(, &block) end |
#list_chunks(params = {}) ⇒ Types::ListChunksOutput
List chunks in a given Object
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
524 525 526 527 |
# File 'gems/aws-sdk-backupstorage/lib/aws-sdk-backupstorage/client.rb', line 524 def list_chunks(params = {}, = {}) req = build_request(:list_chunks, params) req.send_request() end |
#list_objects(params = {}) ⇒ Types::ListObjectsOutput
List all Objects in a given Backup.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
588 589 590 591 |
# File 'gems/aws-sdk-backupstorage/lib/aws-sdk-backupstorage/client.rb', line 588 def list_objects(params = {}, = {}) req = build_request(:list_objects, params) req.send_request() end |
#notify_object_complete(params = {}) ⇒ Types::NotifyObjectCompleteOutput
Complete upload
651 652 653 654 |
# File 'gems/aws-sdk-backupstorage/lib/aws-sdk-backupstorage/client.rb', line 651 def notify_object_complete(params = {}, = {}) req = build_request(:notify_object_complete, params) req.send_request() end |
#put_chunk(params = {}) ⇒ Types::PutChunkOutput
Upload chunk.
705 706 707 708 |
# File 'gems/aws-sdk-backupstorage/lib/aws-sdk-backupstorage/client.rb', line 705 def put_chunk(params = {}, = {}) req = build_request(:put_chunk, params) req.send_request() end |
#put_object(params = {}) ⇒ Types::PutObjectOutput
Upload object that can store object metadata String and data blob in single API call using inline chunk field.
777 778 779 780 |
# File 'gems/aws-sdk-backupstorage/lib/aws-sdk-backupstorage/client.rb', line 777 def put_object(params = {}, = {}) req = build_request(:put_object, params) req.send_request() end |
#start_object(params = {}) ⇒ Types::StartObjectOutput
Start upload containing one or many chunks.
813 814 815 816 |
# File 'gems/aws-sdk-backupstorage/lib/aws-sdk-backupstorage/client.rb', line 813 def start_object(params = {}, = {}) req = build_request(:start_object, params) req.send_request() end |