# frozen_string_literal: true # 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') ClipFragmentSelector = Shapes::StructureShape.new(name: 'ClipFragmentSelector') ClipFragmentSelectorType = Shapes::StringShape.new(name: 'ClipFragmentSelectorType') ClipTimestampRange = Shapes::StructureShape.new(name: 'ClipTimestampRange') ContainerFormat = Shapes::StringShape.new(name: 'ContainerFormat') ContentType = Shapes::StringShape.new(name: 'ContentType') DASHDisplayFragmentNumber = Shapes::StringShape.new(name: 'DASHDisplayFragmentNumber') DASHDisplayFragmentTimestamp = Shapes::StringShape.new(name: 'DASHDisplayFragmentTimestamp') DASHFragmentSelector = Shapes::StructureShape.new(name: 'DASHFragmentSelector') DASHFragmentSelectorType = Shapes::StringShape.new(name: 'DASHFragmentSelectorType') DASHPlaybackMode = Shapes::StringShape.new(name: 'DASHPlaybackMode') DASHStreamingSessionURL = Shapes::StringShape.new(name: 'DASHStreamingSessionURL') DASHTimestampRange = Shapes::StructureShape.new(name: 'DASHTimestampRange') 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') GetClipInput = Shapes::StructureShape.new(name: 'GetClipInput') GetClipOutput = Shapes::StructureShape.new(name: 'GetClipOutput') GetDASHStreamingSessionURLInput = Shapes::StructureShape.new(name: 'GetDASHStreamingSessionURLInput') GetDASHStreamingSessionURLOutput = Shapes::StructureShape.new(name: 'GetDASHStreamingSessionURLOutput') GetHLSStreamingSessionURLInput = Shapes::StructureShape.new(name: 'GetHLSStreamingSessionURLInput') GetHLSStreamingSessionURLOutput = Shapes::StructureShape.new(name: 'GetHLSStreamingSessionURLOutput') GetMediaForFragmentListInput = Shapes::StructureShape.new(name: 'GetMediaForFragmentListInput') GetMediaForFragmentListOutput = Shapes::StructureShape.new(name: 'GetMediaForFragmentListOutput') HLSDiscontinuityMode = Shapes::StringShape.new(name: 'HLSDiscontinuityMode') HLSDisplayFragmentTimestamp = Shapes::StringShape.new(name: 'HLSDisplayFragmentTimestamp') HLSFragmentSelector = Shapes::StructureShape.new(name: 'HLSFragmentSelector') HLSFragmentSelectorType = Shapes::StringShape.new(name: 'HLSFragmentSelectorType') HLSPlaybackMode = Shapes::StringShape.new(name: 'HLSPlaybackMode') HLSStreamingSessionURL = Shapes::StringShape.new(name: 'HLSStreamingSessionURL') HLSTimestampRange = Shapes::StructureShape.new(name: 'HLSTimestampRange') InvalidArgumentException = Shapes::StructureShape.new(name: 'InvalidArgumentException') InvalidCodecPrivateDataException = Shapes::StructureShape.new(name: 'InvalidCodecPrivateDataException') InvalidMediaFrameException = Shapes::StructureShape.new(name: 'InvalidMediaFrameException') ListFragmentsInput = Shapes::StructureShape.new(name: 'ListFragmentsInput') ListFragmentsOutput = Shapes::StructureShape.new(name: 'ListFragmentsOutput') Long = Shapes::IntegerShape.new(name: 'Long') MissingCodecPrivateDataException = Shapes::StructureShape.new(name: 'MissingCodecPrivateDataException') NextToken = Shapes::StringShape.new(name: 'NextToken') 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) ResourceARN = Shapes::StringShape.new(name: 'ResourceARN') ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException') StreamName = Shapes::StringShape.new(name: 'StreamName') Timestamp = Shapes::TimestampShape.new(name: 'Timestamp') TimestampRange = Shapes::StructureShape.new(name: 'TimestampRange') UnsupportedStreamMediaTypeException = Shapes::StructureShape.new(name: 'UnsupportedStreamMediaTypeException') ClientLimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message")) ClientLimitExceededException.struct_class = Types::ClientLimitExceededException ClipFragmentSelector.add_member(:fragment_selector_type, Shapes::ShapeRef.new(shape: ClipFragmentSelectorType, required: true, location_name: "FragmentSelectorType")) ClipFragmentSelector.add_member(:timestamp_range, Shapes::ShapeRef.new(shape: ClipTimestampRange, required: true, location_name: "TimestampRange")) ClipFragmentSelector.struct_class = Types::ClipFragmentSelector ClipTimestampRange.add_member(:start_timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StartTimestamp")) ClipTimestampRange.add_member(:end_timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "EndTimestamp")) ClipTimestampRange.struct_class = Types::ClipTimestampRange DASHFragmentSelector.add_member(:fragment_selector_type, Shapes::ShapeRef.new(shape: DASHFragmentSelectorType, location_name: "FragmentSelectorType")) DASHFragmentSelector.add_member(:timestamp_range, Shapes::ShapeRef.new(shape: DASHTimestampRange, location_name: "TimestampRange")) DASHFragmentSelector.struct_class = Types::DASHFragmentSelector DASHTimestampRange.add_member(:start_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StartTimestamp")) DASHTimestampRange.add_member(:end_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "EndTimestamp")) DASHTimestampRange.struct_class = Types::DASHTimestampRange Fragment.add_member(:fragment_number, Shapes::ShapeRef.new(shape: FragmentNumberString, 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 GetClipInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, location_name: "StreamName")) GetClipInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: ResourceARN, location_name: "StreamARN")) GetClipInput.add_member(:clip_fragment_selector, Shapes::ShapeRef.new(shape: ClipFragmentSelector, required: true, location_name: "ClipFragmentSelector")) GetClipInput.struct_class = Types::GetClipInput GetClipOutput.add_member(:content_type, Shapes::ShapeRef.new(shape: ContentType, location: "header", location_name: "Content-Type")) GetClipOutput.add_member(:payload, Shapes::ShapeRef.new(shape: Payload, location_name: "Payload")) GetClipOutput.struct_class = Types::GetClipOutput GetClipOutput[:payload] = :payload GetClipOutput[:payload_member] = GetClipOutput.member(:payload) GetDASHStreamingSessionURLInput.add_member(:stream_name, Shapes::ShapeRef.new(shape: StreamName, location_name: "StreamName")) GetDASHStreamingSessionURLInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: ResourceARN, location_name: "StreamARN")) GetDASHStreamingSessionURLInput.add_member(:playback_mode, Shapes::ShapeRef.new(shape: DASHPlaybackMode, location_name: "PlaybackMode")) GetDASHStreamingSessionURLInput.add_member(:display_fragment_timestamp, Shapes::ShapeRef.new(shape: DASHDisplayFragmentTimestamp, location_name: "DisplayFragmentTimestamp")) GetDASHStreamingSessionURLInput.add_member(:display_fragment_number, Shapes::ShapeRef.new(shape: DASHDisplayFragmentNumber, location_name: "DisplayFragmentNumber")) GetDASHStreamingSessionURLInput.add_member(:dash_fragment_selector, Shapes::ShapeRef.new(shape: DASHFragmentSelector, location_name: "DASHFragmentSelector")) GetDASHStreamingSessionURLInput.add_member(:expires, Shapes::ShapeRef.new(shape: Expires, location_name: "Expires")) GetDASHStreamingSessionURLInput.add_member(:max_manifest_fragment_results, Shapes::ShapeRef.new(shape: PageLimit, location_name: "MaxManifestFragmentResults")) GetDASHStreamingSessionURLInput.struct_class = Types::GetDASHStreamingSessionURLInput GetDASHStreamingSessionURLOutput.add_member(:dash_streaming_session_url, Shapes::ShapeRef.new(shape: DASHStreamingSessionURL, location_name: "DASHStreamingSessionURL")) GetDASHStreamingSessionURLOutput.struct_class = Types::GetDASHStreamingSessionURLOutput 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: HLSPlaybackMode, 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: HLSDiscontinuityMode, location_name: "DiscontinuityMode")) GetHLSStreamingSessionURLInput.add_member(:display_fragment_timestamp, Shapes::ShapeRef.new(shape: HLSDisplayFragmentTimestamp, 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 InvalidArgumentException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message")) InvalidArgumentException.struct_class = Types::InvalidArgumentException InvalidCodecPrivateDataException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message")) InvalidCodecPrivateDataException.struct_class = Types::InvalidCodecPrivateDataException InvalidMediaFrameException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message")) InvalidMediaFrameException.struct_class = Types::InvalidMediaFrameException 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: NextToken, 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: NextToken, location_name: "NextToken")) ListFragmentsOutput.struct_class = Types::ListFragmentsOutput MissingCodecPrivateDataException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message")) MissingCodecPrivateDataException.struct_class = Types::MissingCodecPrivateDataException NoDataRetentionException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message")) NoDataRetentionException.struct_class = Types::NoDataRetentionException NotAuthorizedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message")) NotAuthorizedException.struct_class = Types::NotAuthorizedException ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message")) ResourceNotFoundException.struct_class = Types::ResourceNotFoundException 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 UnsupportedStreamMediaTypeException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message")) UnsupportedStreamMediaTypeException.struct_class = Types::UnsupportedStreamMediaTypeException # @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_clip, Seahorse::Model::Operation.new.tap do |o| o.name = "GetClip" o.http_method = "POST" o.http_request_uri = "/getClip" o.input = Shapes::ShapeRef.new(shape: GetClipInput) o.output = Shapes::ShapeRef.new(shape: GetClipOutput) 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: MissingCodecPrivateDataException) o.errors << Shapes::ShapeRef.new(shape: InvalidCodecPrivateDataException) o.errors << Shapes::ShapeRef.new(shape: InvalidMediaFrameException) o.errors << Shapes::ShapeRef.new(shape: NoDataRetentionException) end) api.add_operation(:get_dash_streaming_session_url, Seahorse::Model::Operation.new.tap do |o| o.name = "GetDASHStreamingSessionURL" o.http_method = "POST" o.http_request_uri = "/getDASHStreamingSessionURL" o.input = Shapes::ShapeRef.new(shape: GetDASHStreamingSessionURLInput) o.output = Shapes::ShapeRef.new(shape: GetDASHStreamingSessionURLOutput) 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_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) o[:pager] = Aws::Pager.new( limit_key: "max_results", tokens: { "next_token" => "next_token" } ) end) end end end