You are viewing documentation for version 1 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: AWS::StorageGateway::Client::V20120630

Inherits:
AWS::StorageGateway::Client show all
Defined in:
lib/aws/storage_gateway/client.rb

Constant Summary

Constant Summary

Constants inherited from AWS::StorageGateway::Client

API_VERSION

Instance Attribute Summary

Attributes inherited from Core::Client

#config

Instance Method Summary collapse

Methods inherited from AWS::StorageGateway::Client

#cancel_archival, #cancel_retrieval, #create_tapes, #delete_tape, #delete_tape_archive, #describe_tape_archives, #describe_tape_recovery_points, #describe_tapes, #describe_vtl_devices, #disable_gateway, #retrieve_tape_archive, #retrieve_tape_recovery_point

Methods inherited from Core::Client

#initialize, #log_warning, #operations, #with_http_handler, #with_options

Constructor Details

This class inherits a constructor from AWS::Core::Client

Instance Method Details

#activate_gateway(options = {}) ⇒ Core::Response

Calls the ActivateGateway API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :activation_key - required - (String)
    • :gateway_name - required - (String)
    • :gateway_timezone - required - (String) Valid values include:
      • GMT-12:00
      • GMT-11:00
      • GMT-10:00
      • GMT-9:00
      • GMT-8:00
      • GMT-7:00
      • GMT-6:00
      • GMT-5:00
      • GMT-4:00
      • GMT-3:30
      • GMT-3:00
      • GMT-2:00
      • GMT-1:00
      • GMT
      • GMT+1:00
      • GMT+2:00
      • GMT+3:00
      • GMT+3:30
      • GMT+4:00
      • GMT+4:30
      • GMT+5:00
      • GMT+5:30
      • GMT+5:45
      • GMT+6:00
      • GMT+7:00
      • GMT+8:00
      • GMT+9:00
      • GMT+9:30
      • GMT+10:00
      • GMT+11:00
      • GMT+12:00
    • :gateway_region - required - (String)
    • :gateway_type - (String) Valid values include:
      • STORED
      • CACHED

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :gateway_arn - (String)

#add_cache(options = {}) ⇒ Core::Response

Calls the AddCache API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :gateway_arn - required - (String)
    • :disk_ids - required - (Array<)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :gateway_arn - (String)

#add_upload_buffer(options = {}) ⇒ Core::Response

Calls the AddUploadBuffer API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :gateway_arn - required - (String)
    • :disk_ids - required - (Array<)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :gateway_arn - (String)

#add_working_storage(options = {}) ⇒ Core::Response

Calls the AddWorkingStorage API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :gateway_arn - required - (String)
    • :disk_ids - required - (Array<)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :gateway_arn - (String)

#create_cachedi_scsi_volume(options = {}) ⇒ Core::Response

Calls the CreateCachediSCSIVolume API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :gateway_arn - required - (String)
    • :volume_size_in_bytes - required - (Integer)
    • :snapshot_id - (String)
    • :target_name - required - (String)
    • :network_interface_id - required - (String)
    • :client_token - required - (String)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :volume_arn - (String)
    • :target_arn - (String)

#create_snapshot(options = {}) ⇒ Core::Response

Calls the CreateSnapshot API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :volume_arn - required - (String)
    • :snapshot_description - required - (String)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :volume_arn - (String)
    • :snapshot_id - (String)

#create_snapshot_from_volume_recovery_point(options = {}) ⇒ Core::Response

Calls the CreateSnapshotFromVolumeRecoveryPoint API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :volume_arn - required - (String)
    • :snapshot_description - required - (String)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :snapshot_id - (String)
    • :volume_arn - (String)
    • :volume_recovery_point_time - (String)

#create_storedi_scsi_volume(options = {}) ⇒ Core::Response

Calls the CreateStorediSCSIVolume API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :gateway_arn - required - (String)
    • :disk_id - required - (String)
    • :snapshot_id - (String)
    • :preserve_existing_data - required - (Boolean)
    • :target_name - required - (String)
    • :network_interface_id - required - (String)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :volume_arn - (String)
    • :volume_size_in_bytes - (Integer)
    • :target_arn - (String)

#delete_bandwidth_rate_limit(options = {}) ⇒ Core::Response

Calls the DeleteBandwidthRateLimit API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :gateway_arn - required - (String)
    • :bandwidth_type - required - (String) Valid values include:
      • UPLOAD
      • DOWNLOAD
      • ALL

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :gateway_arn - (String)

#delete_chap_credentials(options = {}) ⇒ Core::Response

Calls the DeleteChapCredentials API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :target_arn - required - (String)
    • :initiator_name - required - (String)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :target_arn - (String)
    • :initiator_name - (String)

#delete_gateway(options = {}) ⇒ Core::Response

Calls the DeleteGateway API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :gateway_arn - required - (String)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :gateway_arn - (String)

#delete_snapshot_schedule(options = {}) ⇒ Core::Response

Calls the DeleteSnapshotSchedule API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :volume_arn - required - (String)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :volume_arn - (String)

#delete_volume(options = {}) ⇒ Core::Response

Calls the DeleteVolume API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :volume_arn - required - (String)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :volume_arn - (String)

#describe_bandwidth_rate_limit(options = {}) ⇒ Core::Response

Calls the DescribeBandwidthRateLimit API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :gateway_arn - required - (String)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :gateway_arn - (String)
    • :average_upload_rate_limit_in_bits_per_sec - (Integer)
    • :average_download_rate_limit_in_bits_per_sec - (Integer)

#describe_cache(options = {}) ⇒ Core::Response

Calls the DescribeCache API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :gateway_arn - required - (String)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :gateway_arn - (String)
    • :disk_ids - (Array)
    • :cache_allocated_in_bytes - (Integer)
    • :cache_used_percentage - (Numeric)
    • :cache_dirty_percentage - (Numeric)
    • :cache_hit_percentage - (Numeric)
    • :cache_miss_percentage - (Numeric)

#describe_cachedi_scsi_volumes(options = {}) ⇒ Core::Response

Calls the DescribeCachediSCSIVolumes API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :volume_ar_ns - required - (Array<)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :cachedi_scsi_volumes - (Array)
      • :volume_arn - (String)
      • :volume_id - (String)
      • :volume_type - (String)
      • :volume_status - (String)
      • :volume_size_in_bytes - (Integer)
      • :volume_progress - (Numeric)
      • :source_snapshot_id - (String)
      • :volumei_scsi_attributes - (Hash)
        • :target_arn - (String)
        • :network_interface_id - (String)
        • :network_interface_port - (Integer)
        • :lun_number - (Integer)
        • :chap_enabled - (Boolean)

#describe_chap_credentials(options = {}) ⇒ Core::Response

Calls the DescribeChapCredentials API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :target_arn - required - (String)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :chap_credentials - (Array)
      • :target_arn - (String)
      • :secret_to_authenticate_initiator - (String)
      • :initiator_name - (String)
      • :secret_to_authenticate_target - (String)

#describe_gateway_information(options = {}) ⇒ Core::Response

Calls the DescribeGatewayInformation API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :gateway_arn - required - (String)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :gateway_arn - (String)
    • :gateway_id - (String)
    • :gateway_timezone - (String)
    • :gateway_state - (String)
    • :gateway_network_interfaces - (Array)
      • :ipv_4_address - (String)
      • :mac_address - (String)
      • :ipv_6_address - (String)
    • :gateway_type - (String)
    • :next_update_availability_date - (String)

#describe_maintenance_start_time(options = {}) ⇒ Core::Response

Calls the DescribeMaintenanceStartTime API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :gateway_arn - required - (String)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :gateway_arn - (String)
    • :hour_of_day - (Integer)
    • :minute_of_hour - (Integer)
    • :day_of_week - (Integer)
    • :timezone - (String)

#describe_snapshot_schedule(options = {}) ⇒ Core::Response

Calls the DescribeSnapshotSchedule API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :volume_arn - required - (String)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :volume_arn - (String)
    • :start_at - (Integer)
    • :recurrence_in_hours - (Integer)
    • :description - (String)
    • :timezone - (String)

#describe_storedi_scsi_volumes(options = {}) ⇒ Core::Response

Calls the DescribeStorediSCSIVolumes API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :volume_ar_ns - required - (Array<)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :storedi_scsi_volumes - (Array)
      • :volume_arn - (String)
      • :volume_id - (String)
      • :volume_type - (String)
      • :volume_status - (String)
      • :volume_size_in_bytes - (Integer)
      • :volume_progress - (Numeric)
      • :volume_disk_id - (String)
      • :source_snapshot_id - (String)
      • :preserved_existing_data - (Boolean)
      • :volumei_scsi_attributes - (Hash)
        • :target_arn - (String)
        • :network_interface_id - (String)
        • :network_interface_port - (Integer)
        • :lun_number - (Integer)
        • :chap_enabled - (Boolean)

#describe_upload_buffer(options = {}) ⇒ Core::Response

Calls the DescribeUploadBuffer API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :gateway_arn - required - (String)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :gateway_arn - (String)
    • :disk_ids - (Array)
    • :upload_buffer_used_in_bytes - (Integer)
    • :upload_buffer_allocated_in_bytes - (Integer)

#describe_working_storage(options = {}) ⇒ Core::Response

Calls the DescribeWorkingStorage API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :gateway_arn - required - (String)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :gateway_arn - (String)
    • :disk_ids - (Array)
    • :working_storage_used_in_bytes - (Integer)
    • :working_storage_allocated_in_bytes - (Integer)

#list_gateways(options = {}) ⇒ Core::Response

Calls the ListGateways API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :marker - (String)
    • :limit - (Integer)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :gateways - (Array)
      • :gateway_arn - (String)
    • :marker - (String)

#list_local_disks(options = {}) ⇒ Core::Response

Calls the ListLocalDisks API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :gateway_arn - required - (String)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :gateway_arn - (String)
    • :disks - (Array)
      • :disk_id - (String)
      • :disk_path - (String)
      • :disk_node - (String)
      • :disk_size_in_bytes - (Integer)
      • :disk_allocation_type - (String)
      • :disk_allocation_resource - (String)

#list_volume_recovery_points(options = {}) ⇒ Core::Response

Calls the ListVolumeRecoveryPoints API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :gateway_arn - required - (String)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :gateway_arn - (String)
    • :volume_recovery_point_infos - (Array)
      • :volume_arn - (String)
      • :volume_size_in_bytes - (Integer)
      • :volume_usage_in_bytes - (Integer)
      • :volume_recovery_point_time - (String)

#list_volumes(options = {}) ⇒ Core::Response

Calls the ListVolumes API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :gateway_arn - required - (String)
    • :marker - (String)
    • :limit - (Integer)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :gateway_arn - (String)
    • :marker - (String)
    • :volume_infos - (Array)
      • :volume_arn - (String)
      • :volume_type - (String)

#shutdown_gateway(options = {}) ⇒ Core::Response

Calls the ShutdownGateway API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :gateway_arn - required - (String)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :gateway_arn - (String)

#start_gateway(options = {}) ⇒ Core::Response

Calls the StartGateway API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :gateway_arn - required - (String)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :gateway_arn - (String)

#update_bandwidth_rate_limit(options = {}) ⇒ Core::Response

Calls the UpdateBandwidthRateLimit API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :gateway_arn - required - (String)
    • :average_upload_rate_limit_in_bits_per_sec - (Integer)
    • :average_download_rate_limit_in_bits_per_sec - (Integer)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :gateway_arn - (String)

#update_chap_credentials(options = {}) ⇒ Core::Response

Calls the UpdateChapCredentials API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :target_arn - required - (String)
    • :secret_to_authenticate_initiator - required - (String)
    • :initiator_name - required - (String)
    • :secret_to_authenticate_target - (String)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :target_arn - (String)
    • :initiator_name - (String)

#update_gateway_information(options = {}) ⇒ Core::Response

Calls the UpdateGatewayInformation API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :gateway_arn - required - (String)
    • :gateway_name - (String)
    • :gateway_timezone - (String) Valid values include:
      • GMT-12:00
      • GMT-11:00
      • GMT-10:00
      • GMT-9:00
      • GMT-8:00
      • GMT-7:00
      • GMT-6:00
      • GMT-5:00
      • GMT-4:00
      • GMT-3:30
      • GMT-3:00
      • GMT-2:00
      • GMT-1:00
      • GMT
      • GMT+1:00
      • GMT+2:00
      • GMT+3:00
      • GMT+3:30
      • GMT+4:00
      • GMT+4:30
      • GMT+5:00
      • GMT+5:30
      • GMT+5:45
      • GMT+6:00
      • GMT+7:00
      • GMT+8:00
      • GMT+9:00
      • GMT+9:30
      • GMT+10:00
      • GMT+11:00
      • GMT+12:00

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :gateway_arn - (String)

#update_gateway_software_now(options = {}) ⇒ Core::Response

Calls the UpdateGatewaySoftwareNow API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :gateway_arn - required - (String)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :gateway_arn - (String)

#update_maintenance_start_time(options = {}) ⇒ Core::Response

Calls the UpdateMaintenanceStartTime API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :gateway_arn - required - (String)
    • :hour_of_day - required - (Integer)
    • :minute_of_hour - required - (Integer)
    • :day_of_week - required - (Integer)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :gateway_arn - (String)

#update_snapshot_schedule(options = {}) ⇒ Core::Response

Calls the UpdateSnapshotSchedule API operation.

Parameters:

  • options (Hash) (defaults to: {})
    • :volume_arn - required - (String)
    • :start_at - required - (Integer)
    • :recurrence_in_hours - required - (Integer)
    • :description - (String)

Returns:

  • (Core::Response)

    The #data method of the response object returns a hash with the following structure:

    • :volume_arn - (String)