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

fix: Remove deprecated v1beta1 API that is no longer available #138

Merged
merged 3 commits into from
Feb 24, 2022
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
11 changes: 0 additions & 11 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

.. include:: multiprocessing.rst

This package includes clients for multiple versions of Transcoder.
By default, you will get version ``transcoder_v1``.


API Reference
-------------
Expand All @@ -14,14 +11,6 @@ API Reference
transcoder_v1/services
transcoder_v1/types

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

transcoder_v1beta1/services
transcoder_v1beta1/types


Changelog
---------
Expand Down
6 changes: 0 additions & 6 deletions docs/transcoder_v1beta1/services.rst

This file was deleted.

10 changes: 0 additions & 10 deletions docs/transcoder_v1beta1/transcoder_service.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/transcoder_v1beta1/types.rst

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,29 @@ async def create_job(
) -> resources.Job:
r"""Creates a job in the specified region.

.. code-block::

from google.cloud.video import transcoder_v1

def sample_create_job():
# Create a client
client = transcoder_v1.TranscoderServiceClient()

# Initialize request argument(s)
job = transcoder_v1.Job()
job.template_id = "template_id_value"

request = transcoder_v1.CreateJobRequest(
parent="parent_value",
job=job,
)

# Make the request
response = client.create_job(request=request)

# Handle the response
print(response)

Args:
request (Union[google.cloud.video.transcoder_v1.types.CreateJobRequest, dict]):
The request object. Request message for
Expand Down Expand Up @@ -306,6 +329,26 @@ async def list_jobs(
) -> pagers.ListJobsAsyncPager:
r"""Lists jobs in the specified region.

.. code-block::

from google.cloud.video import transcoder_v1

def sample_list_jobs():
# Create a client
client = transcoder_v1.TranscoderServiceClient()

# Initialize request argument(s)
request = transcoder_v1.ListJobsRequest(
parent="parent_value",
)

# Make the request
page_result = client.list_jobs(request=request)

# Handle the response
for response in page_result:
print(response)

Args:
request (Union[google.cloud.video.transcoder_v1.types.ListJobsRequest, dict]):
The request object. Request message for
Expand Down Expand Up @@ -386,6 +429,25 @@ async def get_job(
) -> resources.Job:
r"""Returns the job data.

.. code-block::

from google.cloud.video import transcoder_v1

def sample_get_job():
# Create a client
client = transcoder_v1.TranscoderServiceClient()

# Initialize request argument(s)
request = transcoder_v1.GetJobRequest(
name="name_value",
)

# Make the request
response = client.get_job(request=request)

# Handle the response
print(response)

Args:
request (Union[google.cloud.video.transcoder_v1.types.GetJobRequest, dict]):
The request object. Request message for
Expand Down Expand Up @@ -455,6 +517,22 @@ async def delete_job(
) -> None:
r"""Deletes a job.

.. code-block::

from google.cloud.video import transcoder_v1

def sample_delete_job():
# Create a client
client = transcoder_v1.TranscoderServiceClient()

# Initialize request argument(s)
request = transcoder_v1.DeleteJobRequest(
name="name_value",
)

# Make the request
client.delete_job(request=request)

Args:
request (Union[google.cloud.video.transcoder_v1.types.DeleteJobRequest, dict]):
The request object. Request message for
Expand Down Expand Up @@ -521,6 +599,26 @@ async def create_job_template(
) -> resources.JobTemplate:
r"""Creates a job template in the specified region.

.. code-block::

from google.cloud.video import transcoder_v1

def sample_create_job_template():
# Create a client
client = transcoder_v1.TranscoderServiceClient()

# Initialize request argument(s)
request = transcoder_v1.CreateJobTemplateRequest(
parent="parent_value",
job_template_id="job_template_id_value",
)

# Make the request
response = client.create_job_template(request=request)

# Handle the response
print(response)

Args:
request (Union[google.cloud.video.transcoder_v1.types.CreateJobTemplateRequest, dict]):
The request object. Request message for
Expand Down Expand Up @@ -614,6 +712,26 @@ async def list_job_templates(
) -> pagers.ListJobTemplatesAsyncPager:
r"""Lists job templates in the specified region.

.. code-block::

from google.cloud.video import transcoder_v1

def sample_list_job_templates():
# Create a client
client = transcoder_v1.TranscoderServiceClient()

# Initialize request argument(s)
request = transcoder_v1.ListJobTemplatesRequest(
parent="parent_value",
)

# Make the request
page_result = client.list_job_templates(request=request)

# Handle the response
for response in page_result:
print(response)

Args:
request (Union[google.cloud.video.transcoder_v1.types.ListJobTemplatesRequest, dict]):
The request object. Request message for
Expand Down Expand Up @@ -694,6 +812,25 @@ async def get_job_template(
) -> resources.JobTemplate:
r"""Returns the job template data.

.. code-block::

from google.cloud.video import transcoder_v1

def sample_get_job_template():
# Create a client
client = transcoder_v1.TranscoderServiceClient()

# Initialize request argument(s)
request = transcoder_v1.GetJobTemplateRequest(
name="name_value",
)

# Make the request
response = client.get_job_template(request=request)

# Handle the response
print(response)

Args:
request (Union[google.cloud.video.transcoder_v1.types.GetJobTemplateRequest, dict]):
The request object. Request message for
Expand Down Expand Up @@ -764,6 +901,22 @@ async def delete_job_template(
) -> None:
r"""Deletes a job template.

.. code-block::

from google.cloud.video import transcoder_v1

def sample_delete_job_template():
# Create a client
client = transcoder_v1.TranscoderServiceClient()

# Initialize request argument(s)
request = transcoder_v1.DeleteJobTemplateRequest(
name="name_value",
)

# Make the request
client.delete_job_template(request=request)

Args:
request (Union[google.cloud.video.transcoder_v1.types.DeleteJobTemplateRequest, dict]):
The request object. Request message for
Expand Down
Loading