# 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::TranscribeService # @api private module ClientApi include Seahorse::Model BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException') Boolean = Shapes::BooleanShape.new(name: 'Boolean') ConflictException = Shapes::StructureShape.new(name: 'ConflictException') CreateVocabularyRequest = Shapes::StructureShape.new(name: 'CreateVocabularyRequest') CreateVocabularyResponse = Shapes::StructureShape.new(name: 'CreateVocabularyResponse') DateTime = Shapes::TimestampShape.new(name: 'DateTime') DeleteVocabularyRequest = Shapes::StructureShape.new(name: 'DeleteVocabularyRequest') FailureReason = Shapes::StringShape.new(name: 'FailureReason') GetTranscriptionJobRequest = Shapes::StructureShape.new(name: 'GetTranscriptionJobRequest') GetTranscriptionJobResponse = Shapes::StructureShape.new(name: 'GetTranscriptionJobResponse') GetVocabularyRequest = Shapes::StructureShape.new(name: 'GetVocabularyRequest') GetVocabularyResponse = Shapes::StructureShape.new(name: 'GetVocabularyResponse') InternalFailureException = Shapes::StructureShape.new(name: 'InternalFailureException') LanguageCode = Shapes::StringShape.new(name: 'LanguageCode') LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException') ListTranscriptionJobsRequest = Shapes::StructureShape.new(name: 'ListTranscriptionJobsRequest') ListTranscriptionJobsResponse = Shapes::StructureShape.new(name: 'ListTranscriptionJobsResponse') ListVocabulariesRequest = Shapes::StructureShape.new(name: 'ListVocabulariesRequest') ListVocabulariesResponse = Shapes::StructureShape.new(name: 'ListVocabulariesResponse') MaxResults = Shapes::IntegerShape.new(name: 'MaxResults') MaxSpeakers = Shapes::IntegerShape.new(name: 'MaxSpeakers') Media = Shapes::StructureShape.new(name: 'Media') MediaFormat = Shapes::StringShape.new(name: 'MediaFormat') MediaSampleRateHertz = Shapes::IntegerShape.new(name: 'MediaSampleRateHertz') NextToken = Shapes::StringShape.new(name: 'NextToken') NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException') Phrase = Shapes::StringShape.new(name: 'Phrase') Phrases = Shapes::ListShape.new(name: 'Phrases') Settings = Shapes::StructureShape.new(name: 'Settings') StartTranscriptionJobRequest = Shapes::StructureShape.new(name: 'StartTranscriptionJobRequest') StartTranscriptionJobResponse = Shapes::StructureShape.new(name: 'StartTranscriptionJobResponse') String = Shapes::StringShape.new(name: 'String') Transcript = Shapes::StructureShape.new(name: 'Transcript') TranscriptionJob = Shapes::StructureShape.new(name: 'TranscriptionJob') TranscriptionJobName = Shapes::StringShape.new(name: 'TranscriptionJobName') TranscriptionJobStatus = Shapes::StringShape.new(name: 'TranscriptionJobStatus') TranscriptionJobSummaries = Shapes::ListShape.new(name: 'TranscriptionJobSummaries') TranscriptionJobSummary = Shapes::StructureShape.new(name: 'TranscriptionJobSummary') UpdateVocabularyRequest = Shapes::StructureShape.new(name: 'UpdateVocabularyRequest') UpdateVocabularyResponse = Shapes::StructureShape.new(name: 'UpdateVocabularyResponse') Uri = Shapes::StringShape.new(name: 'Uri') Vocabularies = Shapes::ListShape.new(name: 'Vocabularies') VocabularyInfo = Shapes::StructureShape.new(name: 'VocabularyInfo') VocabularyName = Shapes::StringShape.new(name: 'VocabularyName') VocabularyState = Shapes::StringShape.new(name: 'VocabularyState') CreateVocabularyRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, required: true, location_name: "VocabularyName")) CreateVocabularyRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode")) CreateVocabularyRequest.add_member(:phrases, Shapes::ShapeRef.new(shape: Phrases, required: true, location_name: "Phrases")) CreateVocabularyRequest.struct_class = Types::CreateVocabularyRequest CreateVocabularyResponse.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location_name: "VocabularyName")) CreateVocabularyResponse.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode")) CreateVocabularyResponse.add_member(:vocabulary_state, Shapes::ShapeRef.new(shape: VocabularyState, location_name: "VocabularyState")) CreateVocabularyResponse.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "LastModifiedTime")) CreateVocabularyResponse.add_member(:failure_reason, Shapes::ShapeRef.new(shape: FailureReason, location_name: "FailureReason")) CreateVocabularyResponse.struct_class = Types::CreateVocabularyResponse DeleteVocabularyRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, required: true, location_name: "VocabularyName")) DeleteVocabularyRequest.struct_class = Types::DeleteVocabularyRequest GetTranscriptionJobRequest.add_member(:transcription_job_name, Shapes::ShapeRef.new(shape: TranscriptionJobName, required: true, location_name: "TranscriptionJobName")) GetTranscriptionJobRequest.struct_class = Types::GetTranscriptionJobRequest GetTranscriptionJobResponse.add_member(:transcription_job, Shapes::ShapeRef.new(shape: TranscriptionJob, location_name: "TranscriptionJob")) GetTranscriptionJobResponse.struct_class = Types::GetTranscriptionJobResponse GetVocabularyRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, required: true, location_name: "VocabularyName")) GetVocabularyRequest.struct_class = Types::GetVocabularyRequest GetVocabularyResponse.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location_name: "VocabularyName")) GetVocabularyResponse.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode")) GetVocabularyResponse.add_member(:vocabulary_state, Shapes::ShapeRef.new(shape: VocabularyState, location_name: "VocabularyState")) GetVocabularyResponse.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "LastModifiedTime")) GetVocabularyResponse.add_member(:failure_reason, Shapes::ShapeRef.new(shape: FailureReason, location_name: "FailureReason")) GetVocabularyResponse.add_member(:download_uri, Shapes::ShapeRef.new(shape: Uri, location_name: "DownloadUri")) GetVocabularyResponse.struct_class = Types::GetVocabularyResponse ListTranscriptionJobsRequest.add_member(:status, Shapes::ShapeRef.new(shape: TranscriptionJobStatus, location_name: "Status")) ListTranscriptionJobsRequest.add_member(:job_name_contains, Shapes::ShapeRef.new(shape: TranscriptionJobName, location_name: "JobNameContains")) ListTranscriptionJobsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) ListTranscriptionJobsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults")) ListTranscriptionJobsRequest.struct_class = Types::ListTranscriptionJobsRequest ListTranscriptionJobsResponse.add_member(:status, Shapes::ShapeRef.new(shape: TranscriptionJobStatus, location_name: "Status")) ListTranscriptionJobsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) ListTranscriptionJobsResponse.add_member(:transcription_job_summaries, Shapes::ShapeRef.new(shape: TranscriptionJobSummaries, location_name: "TranscriptionJobSummaries")) ListTranscriptionJobsResponse.struct_class = Types::ListTranscriptionJobsResponse ListVocabulariesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) ListVocabulariesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults")) ListVocabulariesRequest.add_member(:state_equals, Shapes::ShapeRef.new(shape: VocabularyState, location_name: "StateEquals")) ListVocabulariesRequest.add_member(:name_contains, Shapes::ShapeRef.new(shape: VocabularyName, location_name: "NameContains")) ListVocabulariesRequest.struct_class = Types::ListVocabulariesRequest ListVocabulariesResponse.add_member(:status, Shapes::ShapeRef.new(shape: TranscriptionJobStatus, location_name: "Status")) ListVocabulariesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken")) ListVocabulariesResponse.add_member(:vocabularies, Shapes::ShapeRef.new(shape: Vocabularies, location_name: "Vocabularies")) ListVocabulariesResponse.struct_class = Types::ListVocabulariesResponse Media.add_member(:media_file_uri, Shapes::ShapeRef.new(shape: Uri, location_name: "MediaFileUri")) Media.struct_class = Types::Media Phrases.member = Shapes::ShapeRef.new(shape: Phrase) Settings.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location_name: "VocabularyName")) Settings.add_member(:show_speaker_labels, Shapes::ShapeRef.new(shape: Boolean, location_name: "ShowSpeakerLabels")) Settings.add_member(:max_speaker_labels, Shapes::ShapeRef.new(shape: MaxSpeakers, location_name: "MaxSpeakerLabels")) Settings.struct_class = Types::Settings StartTranscriptionJobRequest.add_member(:transcription_job_name, Shapes::ShapeRef.new(shape: TranscriptionJobName, required: true, location_name: "TranscriptionJobName")) StartTranscriptionJobRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode")) StartTranscriptionJobRequest.add_member(:media_sample_rate_hertz, Shapes::ShapeRef.new(shape: MediaSampleRateHertz, location_name: "MediaSampleRateHertz")) StartTranscriptionJobRequest.add_member(:media_format, Shapes::ShapeRef.new(shape: MediaFormat, required: true, location_name: "MediaFormat")) StartTranscriptionJobRequest.add_member(:media, Shapes::ShapeRef.new(shape: Media, required: true, location_name: "Media")) StartTranscriptionJobRequest.add_member(:settings, Shapes::ShapeRef.new(shape: Settings, location_name: "Settings")) StartTranscriptionJobRequest.struct_class = Types::StartTranscriptionJobRequest StartTranscriptionJobResponse.add_member(:transcription_job, Shapes::ShapeRef.new(shape: TranscriptionJob, location_name: "TranscriptionJob")) StartTranscriptionJobResponse.struct_class = Types::StartTranscriptionJobResponse Transcript.add_member(:transcript_file_uri, Shapes::ShapeRef.new(shape: Uri, location_name: "TranscriptFileUri")) Transcript.struct_class = Types::Transcript TranscriptionJob.add_member(:transcription_job_name, Shapes::ShapeRef.new(shape: TranscriptionJobName, location_name: "TranscriptionJobName")) TranscriptionJob.add_member(:transcription_job_status, Shapes::ShapeRef.new(shape: TranscriptionJobStatus, location_name: "TranscriptionJobStatus")) TranscriptionJob.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode")) TranscriptionJob.add_member(:media_sample_rate_hertz, Shapes::ShapeRef.new(shape: MediaSampleRateHertz, location_name: "MediaSampleRateHertz")) TranscriptionJob.add_member(:media_format, Shapes::ShapeRef.new(shape: MediaFormat, location_name: "MediaFormat")) TranscriptionJob.add_member(:media, Shapes::ShapeRef.new(shape: Media, location_name: "Media")) TranscriptionJob.add_member(:transcript, Shapes::ShapeRef.new(shape: Transcript, location_name: "Transcript")) TranscriptionJob.add_member(:creation_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "CreationTime")) TranscriptionJob.add_member(:completion_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "CompletionTime")) TranscriptionJob.add_member(:failure_reason, Shapes::ShapeRef.new(shape: FailureReason, location_name: "FailureReason")) TranscriptionJob.add_member(:settings, Shapes::ShapeRef.new(shape: Settings, location_name: "Settings")) TranscriptionJob.struct_class = Types::TranscriptionJob TranscriptionJobSummaries.member = Shapes::ShapeRef.new(shape: TranscriptionJobSummary) TranscriptionJobSummary.add_member(:transcription_job_name, Shapes::ShapeRef.new(shape: TranscriptionJobName, location_name: "TranscriptionJobName")) TranscriptionJobSummary.add_member(:creation_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "CreationTime")) TranscriptionJobSummary.add_member(:completion_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "CompletionTime")) TranscriptionJobSummary.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode")) TranscriptionJobSummary.add_member(:transcription_job_status, Shapes::ShapeRef.new(shape: TranscriptionJobStatus, location_name: "TranscriptionJobStatus")) TranscriptionJobSummary.add_member(:failure_reason, Shapes::ShapeRef.new(shape: FailureReason, location_name: "FailureReason")) TranscriptionJobSummary.struct_class = Types::TranscriptionJobSummary UpdateVocabularyRequest.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, required: true, location_name: "VocabularyName")) UpdateVocabularyRequest.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, required: true, location_name: "LanguageCode")) UpdateVocabularyRequest.add_member(:phrases, Shapes::ShapeRef.new(shape: Phrases, required: true, location_name: "Phrases")) UpdateVocabularyRequest.struct_class = Types::UpdateVocabularyRequest UpdateVocabularyResponse.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location_name: "VocabularyName")) UpdateVocabularyResponse.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode")) UpdateVocabularyResponse.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "LastModifiedTime")) UpdateVocabularyResponse.add_member(:vocabulary_state, Shapes::ShapeRef.new(shape: VocabularyState, location_name: "VocabularyState")) UpdateVocabularyResponse.struct_class = Types::UpdateVocabularyResponse Vocabularies.member = Shapes::ShapeRef.new(shape: VocabularyInfo) VocabularyInfo.add_member(:vocabulary_name, Shapes::ShapeRef.new(shape: VocabularyName, location_name: "VocabularyName")) VocabularyInfo.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCode, location_name: "LanguageCode")) VocabularyInfo.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "LastModifiedTime")) VocabularyInfo.add_member(:vocabulary_state, Shapes::ShapeRef.new(shape: VocabularyState, location_name: "VocabularyState")) VocabularyInfo.struct_class = Types::VocabularyInfo # @api private API = Seahorse::Model::Api.new.tap do |api| api.version = "2017-10-26" api.metadata = { "endpointPrefix" => "transcribe", "jsonVersion" => "1.1", "protocol" => "json", "serviceFullName" => "Amazon Transcribe Service", "signatureVersion" => "v4", "signingName" => "transcribe", "targetPrefix" => "Transcribe", } api.add_operation(:create_vocabulary, Seahorse::Model::Operation.new.tap do |o| o.name = "CreateVocabulary" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: CreateVocabularyRequest) o.output = Shapes::ShapeRef.new(shape: CreateVocabularyResponse) o.errors << Shapes::ShapeRef.new(shape: BadRequestException) o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) o.errors << Shapes::ShapeRef.new(shape: ConflictException) end) api.add_operation(:delete_vocabulary, Seahorse::Model::Operation.new.tap do |o| o.name = "DeleteVocabulary" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: DeleteVocabularyRequest) o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure)) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) end) api.add_operation(:get_transcription_job, Seahorse::Model::Operation.new.tap do |o| o.name = "GetTranscriptionJob" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: GetTranscriptionJobRequest) o.output = Shapes::ShapeRef.new(shape: GetTranscriptionJobResponse) o.errors << Shapes::ShapeRef.new(shape: BadRequestException) o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) end) api.add_operation(:get_vocabulary, Seahorse::Model::Operation.new.tap do |o| o.name = "GetVocabulary" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: GetVocabularyRequest) o.output = Shapes::ShapeRef.new(shape: GetVocabularyResponse) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) o.errors << Shapes::ShapeRef.new(shape: BadRequestException) end) api.add_operation(:list_transcription_jobs, Seahorse::Model::Operation.new.tap do |o| o.name = "ListTranscriptionJobs" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: ListTranscriptionJobsRequest) o.output = Shapes::ShapeRef.new(shape: ListTranscriptionJobsResponse) o.errors << Shapes::ShapeRef.new(shape: BadRequestException) o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) o[:pager] = Aws::Pager.new( limit_key: "max_results", tokens: { "next_token" => "next_token" } ) end) api.add_operation(:list_vocabularies, Seahorse::Model::Operation.new.tap do |o| o.name = "ListVocabularies" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: ListVocabulariesRequest) o.output = Shapes::ShapeRef.new(shape: ListVocabulariesResponse) o.errors << Shapes::ShapeRef.new(shape: BadRequestException) o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) o[:pager] = Aws::Pager.new( limit_key: "max_results", tokens: { "next_token" => "next_token" } ) end) api.add_operation(:start_transcription_job, Seahorse::Model::Operation.new.tap do |o| o.name = "StartTranscriptionJob" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: StartTranscriptionJobRequest) o.output = Shapes::ShapeRef.new(shape: StartTranscriptionJobResponse) o.errors << Shapes::ShapeRef.new(shape: BadRequestException) o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) o.errors << Shapes::ShapeRef.new(shape: ConflictException) end) api.add_operation(:update_vocabulary, Seahorse::Model::Operation.new.tap do |o| o.name = "UpdateVocabulary" o.http_method = "POST" o.http_request_uri = "/" o.input = Shapes::ShapeRef.new(shape: UpdateVocabularyRequest) o.output = Shapes::ShapeRef.new(shape: UpdateVocabularyResponse) o.errors << Shapes::ShapeRef.new(shape: BadRequestException) o.errors << Shapes::ShapeRef.new(shape: LimitExceededException) o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) o.errors << Shapes::ShapeRef.new(shape: NotFoundException) end) end end end