# WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing guide for more information: # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE module Aws::KinesisVideoArchivedMedia # @api private module ClientApi include Seahorse::Model ClientLimitExceededException = Shapes::StructureShape.new(name: 'ClientLimitExceededException') ContainerFormat = Shapes::StringShape.new(name: 'ContainerFormat') ContentType = Shapes::StringShape.new(name: 'ContentType') DiscontinuityMode = Shapes::StringShape.new(name: 'DiscontinuityMode') DisplayFragmentTimestamp = Shapes::StringShape.new(name: 'DisplayFragmentTimestamp') ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage') Expires = Shapes::IntegerShape.new(name: 'Expires') Fragment = Shapes::StructureShape.new(name: 'Fragment') FragmentList = Shapes::ListShape.new(name: 'FragmentList') FragmentNumberList = Shapes::ListShape.new(name: 'FragmentNumberList') FragmentNumberString = Shapes::StringShape.new(name: 'FragmentNumberString') FragmentSelector = Shapes::StructureShape.new(name: 'FragmentSelector') FragmentSelectorType = Shapes::StringShape.new(name: 'FragmentSelectorType') GetHLSStreamingSessionURLInput = Shapes::StructureShape.new(name: 'GetHLSStreamingSessionURLInput') GetHLSStreamingSessionURLOutput = Shapes::StructureShape.new(name: 'GetHLSStreamingSessionURLOutput') GetMediaForFragmentListInput = Shapes::StructureShape.new(name: 'GetMediaForFragmentListInput') GetMediaForFragmentListOutput = Shapes::StructureShape.new(name: 'GetMediaForFragmentListOutput') HLSFragmentSelector = Shapes::StructureShape.new(name: 'HLSFragmentSelector') HLSFragmentSelectorType = Shapes::StringShape.new(name: 'HLSFragmentSelectorType') HLSStreamingSessionURL = Shapes::StringShape.new(name: 'HLSStreamingSessionURL') HLSTimestampRange = Shapes::StructureShape.new(name: 'HLSTimestampRange') InvalidArgumentException = Shapes::StructureShape.new(name: 'InvalidArgumentException') InvalidCodecPrivateDataException = Shapes::StructureShape.new(name: 'InvalidCodecPrivateDataException') ListFragmentsInput = Shapes::StructureShape.new(name: 'ListFragmentsInput') ListFragmentsOutput = Shapes::StructureShape.new(name: 'ListFragmentsOutput') Long = Shapes::IntegerShape.new(name: 'Long') MissingCodecPrivateDataException = Shapes::StructureShape.new(name: 'MissingCodecPrivateDataException') NoDataRetentionException = Shapes::StructureShape.new(name: 'NoDataRetentionException') NotAuthorizedException = Shapes::StructureShape.new(name: 'NotAuthorizedException') PageLimit = Shapes::IntegerShape.new(name: 'PageLimit') Payload = Shapes::BlobShape.new(name: 'Payload', streaming: true) PlaybackMode = Shapes::StringShape.new(name: 'PlaybackMode') ResourceARN = Shapes::StringShape.new(name: 'ResourceARN') ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException') StreamName = Shapes::StringShape.new(name: 'StreamName') String = Shapes::StringShape.new(name: 'String') Timestamp = Shapes::TimestampShape.new(name: 'Timestamp') TimestampRange = Shapes::StructureShape.new(name: 'TimestampRange') UnsupportedStreamMediaTypeException = Shapes::StructureShape.new(name: 'UnsupportedStreamMediaTypeException') Fragment.add_member(:fragment_number, Shapes::ShapeRef.new(shape: String, location_name: "FragmentNumber")) Fragment.add_member(:fragment_size_in_bytes, Shapes::ShapeRef.new(shape: Long, location_name: "FragmentSizeInBytes")) Fragment.add_member(:producer_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "ProducerTimestamp")) Fragment.add_member(:server_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "ServerTimestamp")) Fragment.add_member(:fragment_length_in_milliseconds, Shapes::ShapeRef.new(shape: Long, location_name: "FragmentLengthInMilliseconds")) Fragment.struct_class = Types::Fragment FragmentList.member = Shapes::ShapeRef.new(shape: Fragment) FragmentNumberList.member = Shapes::ShapeRef.new(shape: FragmentNumberString) FragmentSelector.add_member(:fragment_selector_type, Shapes::ShapeRef.new(shape: FragmentSelectorType, required: true, location_name: "FragmentSelectorType")) FragmentSelector.add_member(:timestamp_range, Shapes::ShapeRef.new(shape: TimestampRange, required: true, location_name: "TimestampRange")) FragmentSelector.struct_class = Types::FragmentSelector GetHLSStreamingSessionURLInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, location_name: "StreamName")) GetHLSStreamingSessionURLInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: ResourceARN, location_name: "StreamARN")) GetHLSStreamingSessionURLInput.add_member(:playback_mode, Shapes::ShapeRef.new(shape: PlaybackMode, location_name: "PlaybackMode")) GetHLSStreamingSessionURLInput.add_member(:hls_fragment_selector, Shapes::ShapeRef.new(shape: HLSFragmentSelector, location_name: "HLSFragmentSelector")) GetHLSStreamingSessionURLInput.add_member(:container_format, Shapes::ShapeRef.new(shape: ContainerFormat, location_name: "ContainerFormat")) GetHLSStreamingSessionURLInput.add_member(:discontinuity_mode, Shapes::ShapeRef.new(shape: DiscontinuityMode, location_name: "DiscontinuityMode")) GetHLSStreamingSessionURLInput.add_member(:display_fragment_timestamp, Shapes::ShapeRef.new(shape: DisplayFragmentTimestamp, location_name: "DisplayFragmentTimestamp")) GetHLSStreamingSessionURLInput.add_member(:expires, Shapes::ShapeRef.new(shape: Expires, location_name: "Expires")) GetHLSStreamingSessionURLInput.add_member(:max_media_playlist_fragment_results, Shapes::ShapeRef.new(shape: PageLimit, location_name: "MaxMediaPlaylistFragmentResults")) GetHLSStreamingSessionURLInput.struct_class = Types::GetHLSStreamingSessionURLInput GetHLSStreamingSessionURLOutput.add_member(:hls_streaming_session_url, Shapes::ShapeRef.new(shape: HLSStreamingSessionURL, location_name: "HLSStreamingSessionURL")) GetHLSStreamingSessionURLOutput.struct_class = Types::GetHLSStreamingSessionURLOutput GetMediaForFragmentListInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName")) GetMediaForFragmentListInput.add_member(:fragments, Shapes::ShapeRef.new(shape: FragmentNumberList, required: true, location_name: "Fragments")) GetMediaForFragmentListInput.struct_class = Types::GetMediaForFragmentListInput GetMediaForFragmentListOutput.add_member(:content_type, Shapes::ShapeRef.new(shape: ContentType, location: "header", location_name: "Content-Type")) GetMediaForFragmentListOutput.add_member(:payload, Shapes::ShapeRef.new(shape: Payload, location_name: "Payload")) GetMediaForFragmentListOutput.struct_class = Types::GetMediaForFragmentListOutput GetMediaForFragmentListOutput[:payload] = :payload GetMediaForFragmentListOutput[:payload_member] = GetMediaForFragmentListOutput.member(:payload) HLSFragmentSelector.add_member(:fragment_selector_type, Shapes::ShapeRef.new(shape: HLSFragmentSelectorType, location_name: "FragmentSelectorType")) HLSFragmentSelector.add_member(:timestamp_range, Shapes::ShapeRef.new(shape: HLSTimestampRange, location_name: "TimestampRange")) HLSFragmentSelector.struct_class = Types::HLSFragmentSelector HLSTimestampRange.add_member(:start_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StartTimestamp")) HLSTimestampRange.add_member(:end_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "EndTimestamp")) HLSTimestampRange.struct_class = Types::HLSTimestampRange ListFragmentsInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, required: true, location_name: "StreamName")) ListFragmentsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: PageLimit, location_name: "MaxResults")) ListFragmentsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken")) ListFragmentsInput.add_member(:fragment_selector, Shapes::ShapeRef.new(shape: FragmentSelector, location_name: "FragmentSelector")) ListFragmentsInput.struct_class = Types::ListFragmentsInput ListFragmentsOutput.add_member(:fragments, Shapes::ShapeRef.new(shape: FragmentList, location_name: "Fragments")) ListFragmentsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken")) ListFragmentsOutput.struct_class = Types::ListFragmentsOutput TimestampRange.add_member(:start_timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StartTimestamp")) TimestampRange.add_member(:end_timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "EndTimestamp")) TimestampRange.struct_class = Types::TimestampRange # @api private API = Seahorse::Model::Api.new.tap do |api| api.version = "2017-09-30" api.metadata = { "apiVersion" => "2017-09-30", "endpointPrefix" => "kinesisvideo", "protocol" => "rest-json", "serviceAbbreviation" => "Kinesis Video Archived Media", "serviceFullName" => "Amazon Kinesis Video Streams Archived Media", "serviceId" => "Kinesis Video Archived Media", "signatureVersion" => "v4", "uid" => "kinesis-video-archived-media-2017-09-30", } api.add_operation(:get_hls_streaming_session_url, Seahorse::Model::Operation.new.tap do |o| o.name = "GetHLSStreamingSessionURL" o.http_method = "POST" o.http_request_uri = "/getHLSStreamingSessionURL" o.input = Shapes::ShapeRef.new(shape: GetHLSStreamingSessionURLInput) o.output = Shapes::ShapeRef.new(shape: GetHLSStreamingSessionURLOutput) o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException) o.errors << Shapes::ShapeRef.new(shape: ClientLimitExceededException) o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException) o.errors << Shapes::ShapeRef.new(shape: UnsupportedStreamMediaTypeException) o.errors << Shapes::ShapeRef.new(shape: NoDataRetentionException) o.errors << Shapes::ShapeRef.new(shape: MissingCodecPrivateDataException) o.errors << Shapes::ShapeRef.new(shape: InvalidCodecPrivateDataException) end) api.add_operation(:get_media_for_fragment_list, Seahorse::Model::Operation.new.tap do |o| o.name = "GetMediaForFragmentList" o.http_method = "POST" o.http_request_uri = "/getMediaForFragmentList" o.input = Shapes::ShapeRef.new(shape: GetMediaForFragmentListInput) o.output = Shapes::ShapeRef.new(shape: GetMediaForFragmentListOutput) o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException) o.errors << Shapes::ShapeRef.new(shape: ClientLimitExceededException) o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException) end) api.add_operation(:list_fragments, Seahorse::Model::Operation.new.tap do |o| o.name = "ListFragments" o.http_method = "POST" o.http_request_uri = "/listFragments" o.input = Shapes::ShapeRef.new(shape: ListFragmentsInput) o.output = Shapes::ShapeRef.new(shape: ListFragmentsOutput) o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) o.errors << Shapes::ShapeRef.new(shape: InvalidArgumentException) o.errors << Shapes::ShapeRef.new(shape: ClientLimitExceededException) o.errors << Shapes::ShapeRef.new(shape: NotAuthorizedException) end) end end end