aws-sdk-storagegateway 1.51.0 → 1.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-storagegateway.rb +1 -1
- data/lib/aws-sdk-storagegateway/client.rb +112 -1
- data/lib/aws-sdk-storagegateway/client_api.rb +60 -0
- data/lib/aws-sdk-storagegateway/types.rb +166 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30b8c2e5eb51fe07223e84fbe814ed47b5afdcc8cfc52d2000d5068618265a07
|
4
|
+
data.tar.gz: a129e51b4367992983d2d810f676e6fcb69019acb484ffda7d9c63f07a5121e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03e192276701a01d7dc63e84008357c1f727bcf35d18e5e89d73ad3d9de6a244c2baaae8b1027ddb11bc29cc1c4d84e0dc2e1f5b3a267a4119790f8ad6e1a74c
|
7
|
+
data.tar.gz: 822466de77c5f423ed09081fb759d26209f3fb13e94a5b6641c49d0ff47e66d6fd9aba2d0ee7d1b93f063f60707c27a24d3649faff60f5c45417590483cf68d0
|
@@ -2828,6 +2828,65 @@ module Aws::StorageGateway
|
|
2828
2828
|
req.send_request(options)
|
2829
2829
|
end
|
2830
2830
|
|
2831
|
+
# Returns information about the bandwidth rate limit schedule of a
|
2832
|
+
# gateway. By default, gateways do not have bandwidth rate limit
|
2833
|
+
# schedules, which means no bandwidth rate limiting is in effect. This
|
2834
|
+
# operation is supported only in the volume and tape gateway types.
|
2835
|
+
#
|
2836
|
+
# This operation returns information about a gateway's bandwidth rate
|
2837
|
+
# limit schedule. A bandwidth rate limit schedule consists of one or
|
2838
|
+
# more bandwidth rate limit intervals. A bandwidth rate limit interval
|
2839
|
+
# defines a period of time on one or more days of the week, during which
|
2840
|
+
# bandwidth rate limits are specified for uploading, downloading, or
|
2841
|
+
# both.
|
2842
|
+
#
|
2843
|
+
# A bandwidth rate limit interval consists of one or more days of the
|
2844
|
+
# week, a start hour and minute, an ending hour and minute, and
|
2845
|
+
# bandwidth rate limits for uploading and downloading
|
2846
|
+
#
|
2847
|
+
# If no bandwidth rate limit schedule intervals are set for the gateway,
|
2848
|
+
# this operation returns an empty response. To specify which gateway to
|
2849
|
+
# describe, use the Amazon Resource Name (ARN) of the gateway in your
|
2850
|
+
# request.
|
2851
|
+
#
|
2852
|
+
# @option params [required, String] :gateway_arn
|
2853
|
+
# The Amazon Resource Name (ARN) of the gateway. Use the ListGateways
|
2854
|
+
# operation to return a list of gateways for your account and AWS
|
2855
|
+
# Region.
|
2856
|
+
#
|
2857
|
+
# @return [Types::DescribeBandwidthRateLimitScheduleOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2858
|
+
#
|
2859
|
+
# * {Types::DescribeBandwidthRateLimitScheduleOutput#gateway_arn #gateway_arn} => String
|
2860
|
+
# * {Types::DescribeBandwidthRateLimitScheduleOutput#bandwidth_rate_limit_intervals #bandwidth_rate_limit_intervals} => Array<Types::BandwidthRateLimitInterval>
|
2861
|
+
#
|
2862
|
+
# @example Request syntax with placeholder values
|
2863
|
+
#
|
2864
|
+
# resp = client.describe_bandwidth_rate_limit_schedule({
|
2865
|
+
# gateway_arn: "GatewayARN", # required
|
2866
|
+
# })
|
2867
|
+
#
|
2868
|
+
# @example Response structure
|
2869
|
+
#
|
2870
|
+
# resp.gateway_arn #=> String
|
2871
|
+
# resp.bandwidth_rate_limit_intervals #=> Array
|
2872
|
+
# resp.bandwidth_rate_limit_intervals[0].start_hour_of_day #=> Integer
|
2873
|
+
# resp.bandwidth_rate_limit_intervals[0].start_minute_of_hour #=> Integer
|
2874
|
+
# resp.bandwidth_rate_limit_intervals[0].end_hour_of_day #=> Integer
|
2875
|
+
# resp.bandwidth_rate_limit_intervals[0].end_minute_of_hour #=> Integer
|
2876
|
+
# resp.bandwidth_rate_limit_intervals[0].days_of_week #=> Array
|
2877
|
+
# resp.bandwidth_rate_limit_intervals[0].days_of_week[0] #=> Integer
|
2878
|
+
# resp.bandwidth_rate_limit_intervals[0].average_upload_rate_limit_in_bits_per_sec #=> Integer
|
2879
|
+
# resp.bandwidth_rate_limit_intervals[0].average_download_rate_limit_in_bits_per_sec #=> Integer
|
2880
|
+
#
|
2881
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeBandwidthRateLimitSchedule AWS API Documentation
|
2882
|
+
#
|
2883
|
+
# @overload describe_bandwidth_rate_limit_schedule(params = {})
|
2884
|
+
# @param [Hash] params ({})
|
2885
|
+
def describe_bandwidth_rate_limit_schedule(params = {}, options = {})
|
2886
|
+
req = build_request(:describe_bandwidth_rate_limit_schedule, params)
|
2887
|
+
req.send_request(options)
|
2888
|
+
end
|
2889
|
+
|
2831
2890
|
# Returns information about the cache of a gateway. This operation is
|
2832
2891
|
# only supported in the cached volume, tape, and file gateway types.
|
2833
2892
|
#
|
@@ -4604,6 +4663,8 @@ module Aws::StorageGateway
|
|
4604
4663
|
# * {Types::ListTapePoolsOutput#pool_infos #pool_infos} => Array<Types::PoolInfo>
|
4605
4664
|
# * {Types::ListTapePoolsOutput#marker #marker} => String
|
4606
4665
|
#
|
4666
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
4667
|
+
#
|
4607
4668
|
# @example Request syntax with placeholder values
|
4608
4669
|
#
|
4609
4670
|
# resp = client.list_tape_pools({
|
@@ -5638,6 +5699,56 @@ module Aws::StorageGateway
|
|
5638
5699
|
req.send_request(options)
|
5639
5700
|
end
|
5640
5701
|
|
5702
|
+
# Updates the bandwidth rate limit schedule for a specified gateway. By
|
5703
|
+
# default, gateways do not have bandwidth rate limit schedules, which
|
5704
|
+
# means no bandwidth rate limiting is in effect. Use this to initiate or
|
5705
|
+
# update a gateway's bandwidth rate limit schedule. This operation is
|
5706
|
+
# supported in the volume and tape gateway types.
|
5707
|
+
#
|
5708
|
+
# @option params [required, String] :gateway_arn
|
5709
|
+
# The Amazon Resource Name (ARN) of the gateway. Use the ListGateways
|
5710
|
+
# operation to return a list of gateways for your account and AWS
|
5711
|
+
# Region.
|
5712
|
+
#
|
5713
|
+
# @option params [required, Array<Types::BandwidthRateLimitInterval>] :bandwidth_rate_limit_intervals
|
5714
|
+
# An array containing bandwidth rate limit schedule intervals for a
|
5715
|
+
# gateway. When no bandwidth rate limit intervals have been scheduled,
|
5716
|
+
# the array is empty.
|
5717
|
+
#
|
5718
|
+
# @return [Types::UpdateBandwidthRateLimitScheduleOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5719
|
+
#
|
5720
|
+
# * {Types::UpdateBandwidthRateLimitScheduleOutput#gateway_arn #gateway_arn} => String
|
5721
|
+
#
|
5722
|
+
# @example Request syntax with placeholder values
|
5723
|
+
#
|
5724
|
+
# resp = client.update_bandwidth_rate_limit_schedule({
|
5725
|
+
# gateway_arn: "GatewayARN", # required
|
5726
|
+
# bandwidth_rate_limit_intervals: [ # required
|
5727
|
+
# {
|
5728
|
+
# start_hour_of_day: 1, # required
|
5729
|
+
# start_minute_of_hour: 1, # required
|
5730
|
+
# end_hour_of_day: 1, # required
|
5731
|
+
# end_minute_of_hour: 1, # required
|
5732
|
+
# days_of_week: [1], # required
|
5733
|
+
# average_upload_rate_limit_in_bits_per_sec: 1,
|
5734
|
+
# average_download_rate_limit_in_bits_per_sec: 1,
|
5735
|
+
# },
|
5736
|
+
# ],
|
5737
|
+
# })
|
5738
|
+
#
|
5739
|
+
# @example Response structure
|
5740
|
+
#
|
5741
|
+
# resp.gateway_arn #=> String
|
5742
|
+
#
|
5743
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateBandwidthRateLimitSchedule AWS API Documentation
|
5744
|
+
#
|
5745
|
+
# @overload update_bandwidth_rate_limit_schedule(params = {})
|
5746
|
+
# @param [Hash] params ({})
|
5747
|
+
def update_bandwidth_rate_limit_schedule(params = {}, options = {})
|
5748
|
+
req = build_request(:update_bandwidth_rate_limit_schedule, params)
|
5749
|
+
req.send_request(options)
|
5750
|
+
end
|
5751
|
+
|
5641
5752
|
# Updates the Challenge-Handshake Authentication Protocol (CHAP)
|
5642
5753
|
# credentials for a specified iSCSI target. By default, a gateway does
|
5643
5754
|
# not have CHAP enabled; however, for added security, you might use it.
|
@@ -6518,7 +6629,7 @@ module Aws::StorageGateway
|
|
6518
6629
|
params: params,
|
6519
6630
|
config: config)
|
6520
6631
|
context[:gem_name] = 'aws-sdk-storagegateway'
|
6521
|
-
context[:gem_version] = '1.
|
6632
|
+
context[:gem_version] = '1.52.0'
|
6522
6633
|
Seahorse::Client::Request.new(handlers, context)
|
6523
6634
|
end
|
6524
6635
|
|
@@ -37,6 +37,8 @@ module Aws::StorageGateway
|
|
37
37
|
AutomaticTapeCreationRules = Shapes::ListShape.new(name: 'AutomaticTapeCreationRules')
|
38
38
|
AvailabilityMonitorTestStatus = Shapes::StringShape.new(name: 'AvailabilityMonitorTestStatus')
|
39
39
|
BandwidthDownloadRateLimit = Shapes::IntegerShape.new(name: 'BandwidthDownloadRateLimit')
|
40
|
+
BandwidthRateLimitInterval = Shapes::StructureShape.new(name: 'BandwidthRateLimitInterval')
|
41
|
+
BandwidthRateLimitIntervals = Shapes::ListShape.new(name: 'BandwidthRateLimitIntervals')
|
40
42
|
BandwidthType = Shapes::StringShape.new(name: 'BandwidthType')
|
41
43
|
BandwidthUploadRateLimit = Shapes::IntegerShape.new(name: 'BandwidthUploadRateLimit')
|
42
44
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
@@ -75,6 +77,7 @@ module Aws::StorageGateway
|
|
75
77
|
CreatedDate = Shapes::TimestampShape.new(name: 'CreatedDate')
|
76
78
|
DayOfMonth = Shapes::IntegerShape.new(name: 'DayOfMonth')
|
77
79
|
DayOfWeek = Shapes::IntegerShape.new(name: 'DayOfWeek')
|
80
|
+
DaysOfWeek = Shapes::ListShape.new(name: 'DaysOfWeek')
|
78
81
|
DeleteAutomaticTapeCreationPolicyInput = Shapes::StructureShape.new(name: 'DeleteAutomaticTapeCreationPolicyInput')
|
79
82
|
DeleteAutomaticTapeCreationPolicyOutput = Shapes::StructureShape.new(name: 'DeleteAutomaticTapeCreationPolicyOutput')
|
80
83
|
DeleteBandwidthRateLimitInput = Shapes::StructureShape.new(name: 'DeleteBandwidthRateLimitInput')
|
@@ -100,6 +103,8 @@ module Aws::StorageGateway
|
|
100
103
|
DescribeAvailabilityMonitorTestOutput = Shapes::StructureShape.new(name: 'DescribeAvailabilityMonitorTestOutput')
|
101
104
|
DescribeBandwidthRateLimitInput = Shapes::StructureShape.new(name: 'DescribeBandwidthRateLimitInput')
|
102
105
|
DescribeBandwidthRateLimitOutput = Shapes::StructureShape.new(name: 'DescribeBandwidthRateLimitOutput')
|
106
|
+
DescribeBandwidthRateLimitScheduleInput = Shapes::StructureShape.new(name: 'DescribeBandwidthRateLimitScheduleInput')
|
107
|
+
DescribeBandwidthRateLimitScheduleOutput = Shapes::StructureShape.new(name: 'DescribeBandwidthRateLimitScheduleOutput')
|
103
108
|
DescribeCacheInput = Shapes::StructureShape.new(name: 'DescribeCacheInput')
|
104
109
|
DescribeCacheOutput = Shapes::StructureShape.new(name: 'DescribeCacheOutput')
|
105
110
|
DescribeCachediSCSIVolumesInput = Shapes::StructureShape.new(name: 'DescribeCachediSCSIVolumesInput')
|
@@ -312,6 +317,8 @@ module Aws::StorageGateway
|
|
312
317
|
UpdateAutomaticTapeCreationPolicyOutput = Shapes::StructureShape.new(name: 'UpdateAutomaticTapeCreationPolicyOutput')
|
313
318
|
UpdateBandwidthRateLimitInput = Shapes::StructureShape.new(name: 'UpdateBandwidthRateLimitInput')
|
314
319
|
UpdateBandwidthRateLimitOutput = Shapes::StructureShape.new(name: 'UpdateBandwidthRateLimitOutput')
|
320
|
+
UpdateBandwidthRateLimitScheduleInput = Shapes::StructureShape.new(name: 'UpdateBandwidthRateLimitScheduleInput')
|
321
|
+
UpdateBandwidthRateLimitScheduleOutput = Shapes::StructureShape.new(name: 'UpdateBandwidthRateLimitScheduleOutput')
|
315
322
|
UpdateChapCredentialsInput = Shapes::StructureShape.new(name: 'UpdateChapCredentialsInput')
|
316
323
|
UpdateChapCredentialsOutput = Shapes::StructureShape.new(name: 'UpdateChapCredentialsOutput')
|
317
324
|
UpdateGatewayInformationInput = Shapes::StructureShape.new(name: 'UpdateGatewayInformationInput')
|
@@ -433,6 +440,17 @@ module Aws::StorageGateway
|
|
433
440
|
|
434
441
|
AutomaticTapeCreationRules.member = Shapes::ShapeRef.new(shape: AutomaticTapeCreationRule)
|
435
442
|
|
443
|
+
BandwidthRateLimitInterval.add_member(:start_hour_of_day, Shapes::ShapeRef.new(shape: HourOfDay, required: true, location_name: "StartHourOfDay"))
|
444
|
+
BandwidthRateLimitInterval.add_member(:start_minute_of_hour, Shapes::ShapeRef.new(shape: MinuteOfHour, required: true, location_name: "StartMinuteOfHour"))
|
445
|
+
BandwidthRateLimitInterval.add_member(:end_hour_of_day, Shapes::ShapeRef.new(shape: HourOfDay, required: true, location_name: "EndHourOfDay"))
|
446
|
+
BandwidthRateLimitInterval.add_member(:end_minute_of_hour, Shapes::ShapeRef.new(shape: MinuteOfHour, required: true, location_name: "EndMinuteOfHour"))
|
447
|
+
BandwidthRateLimitInterval.add_member(:days_of_week, Shapes::ShapeRef.new(shape: DaysOfWeek, required: true, location_name: "DaysOfWeek"))
|
448
|
+
BandwidthRateLimitInterval.add_member(:average_upload_rate_limit_in_bits_per_sec, Shapes::ShapeRef.new(shape: BandwidthUploadRateLimit, location_name: "AverageUploadRateLimitInBitsPerSec"))
|
449
|
+
BandwidthRateLimitInterval.add_member(:average_download_rate_limit_in_bits_per_sec, Shapes::ShapeRef.new(shape: BandwidthDownloadRateLimit, location_name: "AverageDownloadRateLimitInBitsPerSec"))
|
450
|
+
BandwidthRateLimitInterval.struct_class = Types::BandwidthRateLimitInterval
|
451
|
+
|
452
|
+
BandwidthRateLimitIntervals.member = Shapes::ShapeRef.new(shape: BandwidthRateLimitInterval)
|
453
|
+
|
436
454
|
CacheAttributes.add_member(:cache_stale_timeout_in_seconds, Shapes::ShapeRef.new(shape: CacheStaleTimeoutInSeconds, location_name: "CacheStaleTimeoutInSeconds"))
|
437
455
|
CacheAttributes.struct_class = Types::CacheAttributes
|
438
456
|
|
@@ -615,6 +633,8 @@ module Aws::StorageGateway
|
|
615
633
|
CreateTapesOutput.add_member(:tape_arns, Shapes::ShapeRef.new(shape: TapeARNs, location_name: "TapeARNs"))
|
616
634
|
CreateTapesOutput.struct_class = Types::CreateTapesOutput
|
617
635
|
|
636
|
+
DaysOfWeek.member = Shapes::ShapeRef.new(shape: DayOfWeek)
|
637
|
+
|
618
638
|
DeleteAutomaticTapeCreationPolicyInput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayARN, required: true, location_name: "GatewayARN"))
|
619
639
|
DeleteAutomaticTapeCreationPolicyInput.struct_class = Types::DeleteAutomaticTapeCreationPolicyInput
|
620
640
|
|
@@ -698,6 +718,13 @@ module Aws::StorageGateway
|
|
698
718
|
DescribeBandwidthRateLimitOutput.add_member(:average_download_rate_limit_in_bits_per_sec, Shapes::ShapeRef.new(shape: BandwidthDownloadRateLimit, location_name: "AverageDownloadRateLimitInBitsPerSec"))
|
699
719
|
DescribeBandwidthRateLimitOutput.struct_class = Types::DescribeBandwidthRateLimitOutput
|
700
720
|
|
721
|
+
DescribeBandwidthRateLimitScheduleInput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayARN, required: true, location_name: "GatewayARN"))
|
722
|
+
DescribeBandwidthRateLimitScheduleInput.struct_class = Types::DescribeBandwidthRateLimitScheduleInput
|
723
|
+
|
724
|
+
DescribeBandwidthRateLimitScheduleOutput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayARN, location_name: "GatewayARN"))
|
725
|
+
DescribeBandwidthRateLimitScheduleOutput.add_member(:bandwidth_rate_limit_intervals, Shapes::ShapeRef.new(shape: BandwidthRateLimitIntervals, location_name: "BandwidthRateLimitIntervals"))
|
726
|
+
DescribeBandwidthRateLimitScheduleOutput.struct_class = Types::DescribeBandwidthRateLimitScheduleOutput
|
727
|
+
|
701
728
|
DescribeCacheInput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayARN, required: true, location_name: "GatewayARN"))
|
702
729
|
DescribeCacheInput.struct_class = Types::DescribeCacheInput
|
703
730
|
|
@@ -1285,6 +1312,13 @@ module Aws::StorageGateway
|
|
1285
1312
|
UpdateBandwidthRateLimitOutput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayARN, location_name: "GatewayARN"))
|
1286
1313
|
UpdateBandwidthRateLimitOutput.struct_class = Types::UpdateBandwidthRateLimitOutput
|
1287
1314
|
|
1315
|
+
UpdateBandwidthRateLimitScheduleInput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayARN, required: true, location_name: "GatewayARN"))
|
1316
|
+
UpdateBandwidthRateLimitScheduleInput.add_member(:bandwidth_rate_limit_intervals, Shapes::ShapeRef.new(shape: BandwidthRateLimitIntervals, required: true, location_name: "BandwidthRateLimitIntervals"))
|
1317
|
+
UpdateBandwidthRateLimitScheduleInput.struct_class = Types::UpdateBandwidthRateLimitScheduleInput
|
1318
|
+
|
1319
|
+
UpdateBandwidthRateLimitScheduleOutput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayARN, location_name: "GatewayARN"))
|
1320
|
+
UpdateBandwidthRateLimitScheduleOutput.struct_class = Types::UpdateBandwidthRateLimitScheduleOutput
|
1321
|
+
|
1288
1322
|
UpdateChapCredentialsInput.add_member(:target_arn, Shapes::ShapeRef.new(shape: TargetARN, required: true, location_name: "TargetARN"))
|
1289
1323
|
UpdateChapCredentialsInput.add_member(:secret_to_authenticate_initiator, Shapes::ShapeRef.new(shape: ChapSecret, required: true, location_name: "SecretToAuthenticateInitiator"))
|
1290
1324
|
UpdateChapCredentialsInput.add_member(:initiator_name, Shapes::ShapeRef.new(shape: IqnName, required: true, location_name: "InitiatorName"))
|
@@ -1756,6 +1790,16 @@ module Aws::StorageGateway
|
|
1756
1790
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
1757
1791
|
end)
|
1758
1792
|
|
1793
|
+
api.add_operation(:describe_bandwidth_rate_limit_schedule, Seahorse::Model::Operation.new.tap do |o|
|
1794
|
+
o.name = "DescribeBandwidthRateLimitSchedule"
|
1795
|
+
o.http_method = "POST"
|
1796
|
+
o.http_request_uri = "/"
|
1797
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeBandwidthRateLimitScheduleInput)
|
1798
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeBandwidthRateLimitScheduleOutput)
|
1799
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidGatewayRequestException)
|
1800
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
1801
|
+
end)
|
1802
|
+
|
1759
1803
|
api.add_operation(:describe_cache, Seahorse::Model::Operation.new.tap do |o|
|
1760
1804
|
o.name = "DescribeCache"
|
1761
1805
|
o.http_method = "POST"
|
@@ -2046,6 +2090,12 @@ module Aws::StorageGateway
|
|
2046
2090
|
o.output = Shapes::ShapeRef.new(shape: ListTapePoolsOutput)
|
2047
2091
|
o.errors << Shapes::ShapeRef.new(shape: InvalidGatewayRequestException)
|
2048
2092
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
2093
|
+
o[:pager] = Aws::Pager.new(
|
2094
|
+
limit_key: "limit",
|
2095
|
+
tokens: {
|
2096
|
+
"marker" => "marker"
|
2097
|
+
}
|
2098
|
+
)
|
2049
2099
|
end)
|
2050
2100
|
|
2051
2101
|
api.add_operation(:list_tapes, Seahorse::Model::Operation.new.tap do |o|
|
@@ -2230,6 +2280,16 @@ module Aws::StorageGateway
|
|
2230
2280
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
2231
2281
|
end)
|
2232
2282
|
|
2283
|
+
api.add_operation(:update_bandwidth_rate_limit_schedule, Seahorse::Model::Operation.new.tap do |o|
|
2284
|
+
o.name = "UpdateBandwidthRateLimitSchedule"
|
2285
|
+
o.http_method = "POST"
|
2286
|
+
o.http_request_uri = "/"
|
2287
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateBandwidthRateLimitScheduleInput)
|
2288
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateBandwidthRateLimitScheduleOutput)
|
2289
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidGatewayRequestException)
|
2290
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
|
2291
|
+
end)
|
2292
|
+
|
2233
2293
|
api.add_operation(:update_chap_credentials, Seahorse::Model::Operation.new.tap do |o|
|
2234
2294
|
o.name = "UpdateChapCredentials"
|
2235
2295
|
o.http_method = "POST"
|
@@ -605,6 +605,78 @@ module Aws::StorageGateway
|
|
605
605
|
include Aws::Structure
|
606
606
|
end
|
607
607
|
|
608
|
+
# Describes a bandwidth rate limit interval for a gateway. A bandwidth
|
609
|
+
# rate limit schedule consists of one or more bandwidth rate limit
|
610
|
+
# intervals. A bandwidth rate limit interval defines a period of time on
|
611
|
+
# one or more days of the week, during which bandwidth rate limits are
|
612
|
+
# specified for uploading, downloading, or both.
|
613
|
+
#
|
614
|
+
# @note When making an API call, you may pass BandwidthRateLimitInterval
|
615
|
+
# data as a hash:
|
616
|
+
#
|
617
|
+
# {
|
618
|
+
# start_hour_of_day: 1, # required
|
619
|
+
# start_minute_of_hour: 1, # required
|
620
|
+
# end_hour_of_day: 1, # required
|
621
|
+
# end_minute_of_hour: 1, # required
|
622
|
+
# days_of_week: [1], # required
|
623
|
+
# average_upload_rate_limit_in_bits_per_sec: 1,
|
624
|
+
# average_download_rate_limit_in_bits_per_sec: 1,
|
625
|
+
# }
|
626
|
+
#
|
627
|
+
# @!attribute [rw] start_hour_of_day
|
628
|
+
# The hour of the day to start the bandwidth rate limit interval.
|
629
|
+
# @return [Integer]
|
630
|
+
#
|
631
|
+
# @!attribute [rw] start_minute_of_hour
|
632
|
+
# The minute of the hour to start the bandwidth rate limit interval.
|
633
|
+
# The interval begins at the start of that minute. To begin an
|
634
|
+
# interval exactly at the start of the hour, use the value `0`.
|
635
|
+
# @return [Integer]
|
636
|
+
#
|
637
|
+
# @!attribute [rw] end_hour_of_day
|
638
|
+
# The hour of the day to end the bandwidth rate limit interval.
|
639
|
+
# @return [Integer]
|
640
|
+
#
|
641
|
+
# @!attribute [rw] end_minute_of_hour
|
642
|
+
# The minute of the hour to end the bandwidth rate limit interval.
|
643
|
+
#
|
644
|
+
# The bandwidth rate limit interval ends at the end of the minute. To
|
645
|
+
# end an interval at the end of an hour, use the value `59`.
|
646
|
+
# @return [Integer]
|
647
|
+
#
|
648
|
+
# @!attribute [rw] days_of_week
|
649
|
+
# The days of the week component of the bandwidth rate limit interval,
|
650
|
+
# represented as ordinal numbers from 0 to 6, where 0 represents
|
651
|
+
# Sunday and 6 Saturday.
|
652
|
+
# @return [Array<Integer>]
|
653
|
+
#
|
654
|
+
# @!attribute [rw] average_upload_rate_limit_in_bits_per_sec
|
655
|
+
# The average upload rate limit component of the bandwidth rate limit
|
656
|
+
# interval, in bits per second. This field does not appear in the
|
657
|
+
# response if the upload rate limit is not set.
|
658
|
+
# @return [Integer]
|
659
|
+
#
|
660
|
+
# @!attribute [rw] average_download_rate_limit_in_bits_per_sec
|
661
|
+
# The average download rate limit component of the bandwidth rate
|
662
|
+
# limit interval, in bits per second. This field does not appear in
|
663
|
+
# the response if the download rate limit is not set.
|
664
|
+
# @return [Integer]
|
665
|
+
#
|
666
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/BandwidthRateLimitInterval AWS API Documentation
|
667
|
+
#
|
668
|
+
class BandwidthRateLimitInterval < Struct.new(
|
669
|
+
:start_hour_of_day,
|
670
|
+
:start_minute_of_hour,
|
671
|
+
:end_hour_of_day,
|
672
|
+
:end_minute_of_hour,
|
673
|
+
:days_of_week,
|
674
|
+
:average_upload_rate_limit_in_bits_per_sec,
|
675
|
+
:average_download_rate_limit_in_bits_per_sec)
|
676
|
+
SENSITIVE = []
|
677
|
+
include Aws::Structure
|
678
|
+
end
|
679
|
+
|
608
680
|
# Lists refresh cache information.
|
609
681
|
#
|
610
682
|
# @note When making an API call, you may pass CacheAttributes
|
@@ -2638,6 +2710,47 @@ module Aws::StorageGateway
|
|
2638
2710
|
include Aws::Structure
|
2639
2711
|
end
|
2640
2712
|
|
2713
|
+
# @note When making an API call, you may pass DescribeBandwidthRateLimitScheduleInput
|
2714
|
+
# data as a hash:
|
2715
|
+
#
|
2716
|
+
# {
|
2717
|
+
# gateway_arn: "GatewayARN", # required
|
2718
|
+
# }
|
2719
|
+
#
|
2720
|
+
# @!attribute [rw] gateway_arn
|
2721
|
+
# The Amazon Resource Name (ARN) of the gateway. Use the ListGateways
|
2722
|
+
# operation to return a list of gateways for your account and AWS
|
2723
|
+
# Region.
|
2724
|
+
# @return [String]
|
2725
|
+
#
|
2726
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeBandwidthRateLimitScheduleInput AWS API Documentation
|
2727
|
+
#
|
2728
|
+
class DescribeBandwidthRateLimitScheduleInput < Struct.new(
|
2729
|
+
:gateway_arn)
|
2730
|
+
SENSITIVE = []
|
2731
|
+
include Aws::Structure
|
2732
|
+
end
|
2733
|
+
|
2734
|
+
# @!attribute [rw] gateway_arn
|
2735
|
+
# The Amazon Resource Name (ARN) of the gateway. Use the ListGateways
|
2736
|
+
# operation to return a list of gateways for your account and AWS
|
2737
|
+
# Region.
|
2738
|
+
# @return [String]
|
2739
|
+
#
|
2740
|
+
# @!attribute [rw] bandwidth_rate_limit_intervals
|
2741
|
+
# An array that contains the bandwidth rate limit intervals for a tape
|
2742
|
+
# or volume gateway.
|
2743
|
+
# @return [Array<Types::BandwidthRateLimitInterval>]
|
2744
|
+
#
|
2745
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeBandwidthRateLimitScheduleOutput AWS API Documentation
|
2746
|
+
#
|
2747
|
+
class DescribeBandwidthRateLimitScheduleOutput < Struct.new(
|
2748
|
+
:gateway_arn,
|
2749
|
+
:bandwidth_rate_limit_intervals)
|
2750
|
+
SENSITIVE = []
|
2751
|
+
include Aws::Structure
|
2752
|
+
end
|
2753
|
+
|
2641
2754
|
# @note When making an API call, you may pass DescribeCacheInput
|
2642
2755
|
# data as a hash:
|
2643
2756
|
#
|
@@ -6307,6 +6420,59 @@ module Aws::StorageGateway
|
|
6307
6420
|
include Aws::Structure
|
6308
6421
|
end
|
6309
6422
|
|
6423
|
+
# @note When making an API call, you may pass UpdateBandwidthRateLimitScheduleInput
|
6424
|
+
# data as a hash:
|
6425
|
+
#
|
6426
|
+
# {
|
6427
|
+
# gateway_arn: "GatewayARN", # required
|
6428
|
+
# bandwidth_rate_limit_intervals: [ # required
|
6429
|
+
# {
|
6430
|
+
# start_hour_of_day: 1, # required
|
6431
|
+
# start_minute_of_hour: 1, # required
|
6432
|
+
# end_hour_of_day: 1, # required
|
6433
|
+
# end_minute_of_hour: 1, # required
|
6434
|
+
# days_of_week: [1], # required
|
6435
|
+
# average_upload_rate_limit_in_bits_per_sec: 1,
|
6436
|
+
# average_download_rate_limit_in_bits_per_sec: 1,
|
6437
|
+
# },
|
6438
|
+
# ],
|
6439
|
+
# }
|
6440
|
+
#
|
6441
|
+
# @!attribute [rw] gateway_arn
|
6442
|
+
# The Amazon Resource Name (ARN) of the gateway. Use the ListGateways
|
6443
|
+
# operation to return a list of gateways for your account and AWS
|
6444
|
+
# Region.
|
6445
|
+
# @return [String]
|
6446
|
+
#
|
6447
|
+
# @!attribute [rw] bandwidth_rate_limit_intervals
|
6448
|
+
# An array containing bandwidth rate limit schedule intervals for a
|
6449
|
+
# gateway. When no bandwidth rate limit intervals have been scheduled,
|
6450
|
+
# the array is empty.
|
6451
|
+
# @return [Array<Types::BandwidthRateLimitInterval>]
|
6452
|
+
#
|
6453
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateBandwidthRateLimitScheduleInput AWS API Documentation
|
6454
|
+
#
|
6455
|
+
class UpdateBandwidthRateLimitScheduleInput < Struct.new(
|
6456
|
+
:gateway_arn,
|
6457
|
+
:bandwidth_rate_limit_intervals)
|
6458
|
+
SENSITIVE = []
|
6459
|
+
include Aws::Structure
|
6460
|
+
end
|
6461
|
+
|
6462
|
+
# @!attribute [rw] gateway_arn
|
6463
|
+
# The Amazon Resource Name (ARN) of the gateway. Use the ListGateways
|
6464
|
+
# operation to return a list of gateways for your account and AWS
|
6465
|
+
# Region.
|
6466
|
+
# @return [String]
|
6467
|
+
#
|
6468
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateBandwidthRateLimitScheduleOutput AWS API Documentation
|
6469
|
+
#
|
6470
|
+
class UpdateBandwidthRateLimitScheduleOutput < Struct.new(
|
6471
|
+
:gateway_arn)
|
6472
|
+
SENSITIVE = []
|
6473
|
+
include Aws::Structure
|
6474
|
+
end
|
6475
|
+
|
6310
6476
|
# A JSON object containing one or more of the following fields:
|
6311
6477
|
#
|
6312
6478
|
# * UpdateChapCredentialsInput$InitiatorName
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-storagegateway
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.52.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|