Skip to content

Commit

Permalink
feat: Add Transcoder V1 (#67)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 383681557

Source-Link: googleapis/googleapis@509489a

Source-Link: googleapis/googleapis-gen@9bbe472
  • Loading branch information
gcf-owl-bot[bot] authored Jul 9, 2021
1 parent 153dbde commit 3100062
Show file tree
Hide file tree
Showing 23 changed files with 8,354 additions and 42 deletions.
8 changes: 8 additions & 0 deletions packages/google-cloud-video-transcoder/docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

.. include:: multiprocessing.rst

API Reference
-------------
.. toctree::
:maxdepth: 2

transcoder_v1/services
transcoder_v1/types

API Reference
-------------
.. toctree::
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Services for Google Cloud Video Transcoder v1 API
=================================================
.. toctree::
:maxdepth: 2

transcoder_service
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
TranscoderService
-----------------------------------

.. automodule:: google.cloud.video.transcoder_v1.services.transcoder_service
:members:
:inherited-members:

.. automodule:: google.cloud.video.transcoder_v1.services.transcoder_service.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Types for Google Cloud Video Transcoder v1 API
==============================================

.. automodule:: google.cloud.video.transcoder_v1.types
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
Expand Up @@ -14,50 +14,42 @@
# limitations under the License.
#

from google.cloud.video.transcoder_v1beta1.services.transcoder_service.client import (
from google.cloud.video.transcoder_v1.services.transcoder_service.client import (
TranscoderServiceClient,
)
from google.cloud.video.transcoder_v1beta1.services.transcoder_service.async_client import (
from google.cloud.video.transcoder_v1.services.transcoder_service.async_client import (
TranscoderServiceAsyncClient,
)

from google.cloud.video.transcoder_v1beta1.types.resources import AdBreak
from google.cloud.video.transcoder_v1beta1.types.resources import AudioStream
from google.cloud.video.transcoder_v1beta1.types.resources import EditAtom
from google.cloud.video.transcoder_v1beta1.types.resources import ElementaryStream
from google.cloud.video.transcoder_v1beta1.types.resources import Encryption
from google.cloud.video.transcoder_v1beta1.types.resources import FailureDetail
from google.cloud.video.transcoder_v1beta1.types.resources import Input
from google.cloud.video.transcoder_v1beta1.types.resources import Job
from google.cloud.video.transcoder_v1beta1.types.resources import JobConfig
from google.cloud.video.transcoder_v1beta1.types.resources import JobTemplate
from google.cloud.video.transcoder_v1beta1.types.resources import Manifest
from google.cloud.video.transcoder_v1beta1.types.resources import MuxStream
from google.cloud.video.transcoder_v1beta1.types.resources import Output
from google.cloud.video.transcoder_v1beta1.types.resources import Overlay
from google.cloud.video.transcoder_v1beta1.types.resources import PreprocessingConfig
from google.cloud.video.transcoder_v1beta1.types.resources import Progress
from google.cloud.video.transcoder_v1beta1.types.resources import PubsubDestination
from google.cloud.video.transcoder_v1beta1.types.resources import SegmentSettings
from google.cloud.video.transcoder_v1beta1.types.resources import SpriteSheet
from google.cloud.video.transcoder_v1beta1.types.resources import TextStream
from google.cloud.video.transcoder_v1beta1.types.resources import VideoStream
from google.cloud.video.transcoder_v1beta1.types.services import CreateJobRequest
from google.cloud.video.transcoder_v1beta1.types.services import (
CreateJobTemplateRequest,
)
from google.cloud.video.transcoder_v1beta1.types.services import DeleteJobRequest
from google.cloud.video.transcoder_v1beta1.types.services import (
DeleteJobTemplateRequest,
)
from google.cloud.video.transcoder_v1beta1.types.services import GetJobRequest
from google.cloud.video.transcoder_v1beta1.types.services import GetJobTemplateRequest
from google.cloud.video.transcoder_v1beta1.types.services import ListJobsRequest
from google.cloud.video.transcoder_v1beta1.types.services import ListJobsResponse
from google.cloud.video.transcoder_v1beta1.types.services import ListJobTemplatesRequest
from google.cloud.video.transcoder_v1beta1.types.services import (
ListJobTemplatesResponse,
)
from google.cloud.video.transcoder_v1.types.resources import AdBreak
from google.cloud.video.transcoder_v1.types.resources import AudioStream
from google.cloud.video.transcoder_v1.types.resources import EditAtom
from google.cloud.video.transcoder_v1.types.resources import ElementaryStream
from google.cloud.video.transcoder_v1.types.resources import Encryption
from google.cloud.video.transcoder_v1.types.resources import Input
from google.cloud.video.transcoder_v1.types.resources import Job
from google.cloud.video.transcoder_v1.types.resources import JobConfig
from google.cloud.video.transcoder_v1.types.resources import JobTemplate
from google.cloud.video.transcoder_v1.types.resources import Manifest
from google.cloud.video.transcoder_v1.types.resources import MuxStream
from google.cloud.video.transcoder_v1.types.resources import Output
from google.cloud.video.transcoder_v1.types.resources import Overlay
from google.cloud.video.transcoder_v1.types.resources import PreprocessingConfig
from google.cloud.video.transcoder_v1.types.resources import PubsubDestination
from google.cloud.video.transcoder_v1.types.resources import SegmentSettings
from google.cloud.video.transcoder_v1.types.resources import SpriteSheet
from google.cloud.video.transcoder_v1.types.resources import TextStream
from google.cloud.video.transcoder_v1.types.resources import VideoStream
from google.cloud.video.transcoder_v1.types.services import CreateJobRequest
from google.cloud.video.transcoder_v1.types.services import CreateJobTemplateRequest
from google.cloud.video.transcoder_v1.types.services import DeleteJobRequest
from google.cloud.video.transcoder_v1.types.services import DeleteJobTemplateRequest
from google.cloud.video.transcoder_v1.types.services import GetJobRequest
from google.cloud.video.transcoder_v1.types.services import GetJobTemplateRequest
from google.cloud.video.transcoder_v1.types.services import ListJobsRequest
from google.cloud.video.transcoder_v1.types.services import ListJobsResponse
from google.cloud.video.transcoder_v1.types.services import ListJobTemplatesRequest
from google.cloud.video.transcoder_v1.types.services import ListJobTemplatesResponse

__all__ = (
"TranscoderServiceClient",
Expand All @@ -67,7 +59,6 @@
"EditAtom",
"ElementaryStream",
"Encryption",
"FailureDetail",
"Input",
"Job",
"JobConfig",
Expand All @@ -77,7 +68,6 @@
"Output",
"Overlay",
"PreprocessingConfig",
"Progress",
"PubsubDestination",
"SegmentSettings",
"SpriteSheet",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

from .services.transcoder_service import TranscoderServiceClient
from .services.transcoder_service import TranscoderServiceAsyncClient

from .types.resources import AdBreak
from .types.resources import AudioStream
from .types.resources import EditAtom
from .types.resources import ElementaryStream
from .types.resources import Encryption
from .types.resources import Input
from .types.resources import Job
from .types.resources import JobConfig
from .types.resources import JobTemplate
from .types.resources import Manifest
from .types.resources import MuxStream
from .types.resources import Output
from .types.resources import Overlay
from .types.resources import PreprocessingConfig
from .types.resources import PubsubDestination
from .types.resources import SegmentSettings
from .types.resources import SpriteSheet
from .types.resources import TextStream
from .types.resources import VideoStream
from .types.services import CreateJobRequest
from .types.services import CreateJobTemplateRequest
from .types.services import DeleteJobRequest
from .types.services import DeleteJobTemplateRequest
from .types.services import GetJobRequest
from .types.services import GetJobTemplateRequest
from .types.services import ListJobsRequest
from .types.services import ListJobsResponse
from .types.services import ListJobTemplatesRequest
from .types.services import ListJobTemplatesResponse

__all__ = (
"TranscoderServiceAsyncClient",
"AdBreak",
"AudioStream",
"CreateJobRequest",
"CreateJobTemplateRequest",
"DeleteJobRequest",
"DeleteJobTemplateRequest",
"EditAtom",
"ElementaryStream",
"Encryption",
"GetJobRequest",
"GetJobTemplateRequest",
"Input",
"Job",
"JobConfig",
"JobTemplate",
"ListJobTemplatesRequest",
"ListJobTemplatesResponse",
"ListJobsRequest",
"ListJobsResponse",
"Manifest",
"MuxStream",
"Output",
"Overlay",
"PreprocessingConfig",
"PubsubDestination",
"SegmentSettings",
"SpriteSheet",
"TextStream",
"TranscoderServiceClient",
"VideoStream",
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.video.transcoder_v1",
"protoPackage": "google.cloud.video.transcoder.v1",
"schema": "1.0",
"services": {
"TranscoderService": {
"clients": {
"grpc": {
"libraryClient": "TranscoderServiceClient",
"rpcs": {
"CreateJob": {
"methods": [
"create_job"
]
},
"CreateJobTemplate": {
"methods": [
"create_job_template"
]
},
"DeleteJob": {
"methods": [
"delete_job"
]
},
"DeleteJobTemplate": {
"methods": [
"delete_job_template"
]
},
"GetJob": {
"methods": [
"get_job"
]
},
"GetJobTemplate": {
"methods": [
"get_job_template"
]
},
"ListJobTemplates": {
"methods": [
"list_job_templates"
]
},
"ListJobs": {
"methods": [
"list_jobs"
]
}
}
},
"grpc-async": {
"libraryClient": "TranscoderServiceAsyncClient",
"rpcs": {
"CreateJob": {
"methods": [
"create_job"
]
},
"CreateJobTemplate": {
"methods": [
"create_job_template"
]
},
"DeleteJob": {
"methods": [
"delete_job"
]
},
"DeleteJobTemplate": {
"methods": [
"delete_job_template"
]
},
"GetJob": {
"methods": [
"get_job"
]
},
"GetJobTemplate": {
"methods": [
"get_job_template"
]
},
"ListJobTemplates": {
"methods": [
"list_job_templates"
]
},
"ListJobs": {
"methods": [
"list_jobs"
]
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Marker file for PEP 561.
# The google-cloud-video-transcoder package uses inline types.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from .client import TranscoderServiceClient
from .async_client import TranscoderServiceAsyncClient

__all__ = (
"TranscoderServiceClient",
"TranscoderServiceAsyncClient",
)
Loading

0 comments on commit 3100062

Please sign in to comment.