Skip to content

Commit

Permalink
fix: Remove deprecated v1beta1 API that is no longer available (#138)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

Merge branch 'owl-bot-copy' of https://github.com/googleapis/python-video-transcoder into owl-bot-copy

🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

chore: use gapic-generator-python 0.63.2
docs: add generated snippets

PiperOrigin-RevId: 427792504

Source-Link: googleapis/googleapis@55b9e1e

Source-Link: googleapis/googleapis-gen@bf4e86b
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYmY0ZTg2Yjc1M2Y0MmNiMGVkYjFmZDUxZmJlODQwZDdkYTBhMWNkZSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Feb 24, 2022
1 parent 61a6923 commit 9b83f93
Show file tree
Hide file tree
Showing 43 changed files with 1,750 additions and 8,767 deletions.
11 changes: 0 additions & 11 deletions packages/google-cloud-video-transcoder/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

This file was deleted.

This file was deleted.

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

0 comments on commit 9b83f93

Please sign in to comment.