Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

feat: Add v1 #67

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions 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
6 changes: 6 additions & 0 deletions docs/transcoder_v1/services.rst
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
10 changes: 10 additions & 0 deletions docs/transcoder_v1/transcoder_service.rst
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:
7 changes: 7 additions & 0 deletions docs/transcoder_v1/types.rst
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:
72 changes: 31 additions & 41 deletions google/cloud/video/transcoder/__init__.py
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
82 changes: 82 additions & 0 deletions google/cloud/video/transcoder_v1/__init__.py
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",
)
103 changes: 103 additions & 0 deletions google/cloud/video/transcoder_v1/gapic_metadata.json
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"
]
}
}
}
}
}
}
}
2 changes: 2 additions & 0 deletions google/cloud/video/transcoder_v1/py.typed
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.
15 changes: 15 additions & 0 deletions google/cloud/video/transcoder_v1/services/__init__.py
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