google-cloud-video-transcoder 1.15.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. google/cloud/video/transcoder/__init__.py +93 -0
  2. google/cloud/video/transcoder/gapic_version.py +16 -0
  3. google/cloud/video/transcoder/py.typed +2 -0
  4. google/cloud/video/transcoder_v1/__init__.py +91 -0
  5. google/cloud/video/transcoder_v1/gapic_metadata.json +148 -0
  6. google/cloud/video/transcoder_v1/gapic_version.py +16 -0
  7. google/cloud/video/transcoder_v1/py.typed +2 -0
  8. google/cloud/video/transcoder_v1/services/__init__.py +15 -0
  9. google/cloud/video/transcoder_v1/services/transcoder_service/__init__.py +22 -0
  10. google/cloud/video/transcoder_v1/services/transcoder_service/async_client.py +1242 -0
  11. google/cloud/video/transcoder_v1/services/transcoder_service/client.py +1669 -0
  12. google/cloud/video/transcoder_v1/services/transcoder_service/pagers.py +353 -0
  13. google/cloud/video/transcoder_v1/services/transcoder_service/transports/__init__.py +36 -0
  14. google/cloud/video/transcoder_v1/services/transcoder_service/transports/base.py +260 -0
  15. google/cloud/video/transcoder_v1/services/transcoder_service/transports/grpc.py +542 -0
  16. google/cloud/video/transcoder_v1/services/transcoder_service/transports/grpc_asyncio.py +605 -0
  17. google/cloud/video/transcoder_v1/services/transcoder_service/transports/rest.py +1709 -0
  18. google/cloud/video/transcoder_v1/services/transcoder_service/transports/rest_base.py +490 -0
  19. google/cloud/video/transcoder_v1/types/__init__.py +80 -0
  20. google/cloud/video/transcoder_v1/types/resources.py +2534 -0
  21. google/cloud/video/transcoder_v1/types/services.py +326 -0
  22. google_cloud_video_transcoder-1.15.1.dist-info/LICENSE +202 -0
  23. google_cloud_video_transcoder-1.15.1.dist-info/METADATA +228 -0
  24. google_cloud_video_transcoder-1.15.1.dist-info/RECORD +26 -0
  25. google_cloud_video_transcoder-1.15.1.dist-info/WHEEL +5 -0
  26. google_cloud_video_transcoder-1.15.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,353 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2024 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from typing import (
17
+ Any,
18
+ AsyncIterator,
19
+ Awaitable,
20
+ Callable,
21
+ Iterator,
22
+ Optional,
23
+ Sequence,
24
+ Tuple,
25
+ Union,
26
+ )
27
+
28
+ from google.api_core import gapic_v1
29
+ from google.api_core import retry as retries
30
+ from google.api_core import retry_async as retries_async
31
+
32
+ try:
33
+ OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault, None]
34
+ OptionalAsyncRetry = Union[
35
+ retries_async.AsyncRetry, gapic_v1.method._MethodDefault, None
36
+ ]
37
+ except AttributeError: # pragma: NO COVER
38
+ OptionalRetry = Union[retries.Retry, object, None] # type: ignore
39
+ OptionalAsyncRetry = Union[retries_async.AsyncRetry, object, None] # type: ignore
40
+
41
+ from google.cloud.video.transcoder_v1.types import resources, services
42
+
43
+
44
+ class ListJobsPager:
45
+ """A pager for iterating through ``list_jobs`` requests.
46
+
47
+ This class thinly wraps an initial
48
+ :class:`google.cloud.video.transcoder_v1.types.ListJobsResponse` object, and
49
+ provides an ``__iter__`` method to iterate through its
50
+ ``jobs`` field.
51
+
52
+ If there are more pages, the ``__iter__`` method will make additional
53
+ ``ListJobs`` requests and continue to iterate
54
+ through the ``jobs`` field on the
55
+ corresponding responses.
56
+
57
+ All the usual :class:`google.cloud.video.transcoder_v1.types.ListJobsResponse`
58
+ attributes are available on the pager. If multiple requests are made, only
59
+ the most recent response is retained, and thus used for attribute lookup.
60
+ """
61
+
62
+ def __init__(
63
+ self,
64
+ method: Callable[..., services.ListJobsResponse],
65
+ request: services.ListJobsRequest,
66
+ response: services.ListJobsResponse,
67
+ *,
68
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
69
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
70
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
71
+ ):
72
+ """Instantiate the pager.
73
+
74
+ Args:
75
+ method (Callable): The method that was originally called, and
76
+ which instantiated this pager.
77
+ request (google.cloud.video.transcoder_v1.types.ListJobsRequest):
78
+ The initial request object.
79
+ response (google.cloud.video.transcoder_v1.types.ListJobsResponse):
80
+ The initial response object.
81
+ retry (google.api_core.retry.Retry): Designation of what errors,
82
+ if any, should be retried.
83
+ timeout (float): The timeout for this request.
84
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
85
+ sent along with the request as metadata. Normally, each value must be of type `str`,
86
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
87
+ be of type `bytes`.
88
+ """
89
+ self._method = method
90
+ self._request = services.ListJobsRequest(request)
91
+ self._response = response
92
+ self._retry = retry
93
+ self._timeout = timeout
94
+ self._metadata = metadata
95
+
96
+ def __getattr__(self, name: str) -> Any:
97
+ return getattr(self._response, name)
98
+
99
+ @property
100
+ def pages(self) -> Iterator[services.ListJobsResponse]:
101
+ yield self._response
102
+ while self._response.next_page_token:
103
+ self._request.page_token = self._response.next_page_token
104
+ self._response = self._method(
105
+ self._request,
106
+ retry=self._retry,
107
+ timeout=self._timeout,
108
+ metadata=self._metadata,
109
+ )
110
+ yield self._response
111
+
112
+ def __iter__(self) -> Iterator[resources.Job]:
113
+ for page in self.pages:
114
+ yield from page.jobs
115
+
116
+ def __repr__(self) -> str:
117
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
118
+
119
+
120
+ class ListJobsAsyncPager:
121
+ """A pager for iterating through ``list_jobs`` requests.
122
+
123
+ This class thinly wraps an initial
124
+ :class:`google.cloud.video.transcoder_v1.types.ListJobsResponse` object, and
125
+ provides an ``__aiter__`` method to iterate through its
126
+ ``jobs`` field.
127
+
128
+ If there are more pages, the ``__aiter__`` method will make additional
129
+ ``ListJobs`` requests and continue to iterate
130
+ through the ``jobs`` field on the
131
+ corresponding responses.
132
+
133
+ All the usual :class:`google.cloud.video.transcoder_v1.types.ListJobsResponse`
134
+ attributes are available on the pager. If multiple requests are made, only
135
+ the most recent response is retained, and thus used for attribute lookup.
136
+ """
137
+
138
+ def __init__(
139
+ self,
140
+ method: Callable[..., Awaitable[services.ListJobsResponse]],
141
+ request: services.ListJobsRequest,
142
+ response: services.ListJobsResponse,
143
+ *,
144
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
145
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
146
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
147
+ ):
148
+ """Instantiates the pager.
149
+
150
+ Args:
151
+ method (Callable): The method that was originally called, and
152
+ which instantiated this pager.
153
+ request (google.cloud.video.transcoder_v1.types.ListJobsRequest):
154
+ The initial request object.
155
+ response (google.cloud.video.transcoder_v1.types.ListJobsResponse):
156
+ The initial response object.
157
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
158
+ if any, should be retried.
159
+ timeout (float): The timeout for this request.
160
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
161
+ sent along with the request as metadata. Normally, each value must be of type `str`,
162
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
163
+ be of type `bytes`.
164
+ """
165
+ self._method = method
166
+ self._request = services.ListJobsRequest(request)
167
+ self._response = response
168
+ self._retry = retry
169
+ self._timeout = timeout
170
+ self._metadata = metadata
171
+
172
+ def __getattr__(self, name: str) -> Any:
173
+ return getattr(self._response, name)
174
+
175
+ @property
176
+ async def pages(self) -> AsyncIterator[services.ListJobsResponse]:
177
+ yield self._response
178
+ while self._response.next_page_token:
179
+ self._request.page_token = self._response.next_page_token
180
+ self._response = await self._method(
181
+ self._request,
182
+ retry=self._retry,
183
+ timeout=self._timeout,
184
+ metadata=self._metadata,
185
+ )
186
+ yield self._response
187
+
188
+ def __aiter__(self) -> AsyncIterator[resources.Job]:
189
+ async def async_generator():
190
+ async for page in self.pages:
191
+ for response in page.jobs:
192
+ yield response
193
+
194
+ return async_generator()
195
+
196
+ def __repr__(self) -> str:
197
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
198
+
199
+
200
+ class ListJobTemplatesPager:
201
+ """A pager for iterating through ``list_job_templates`` requests.
202
+
203
+ This class thinly wraps an initial
204
+ :class:`google.cloud.video.transcoder_v1.types.ListJobTemplatesResponse` object, and
205
+ provides an ``__iter__`` method to iterate through its
206
+ ``job_templates`` field.
207
+
208
+ If there are more pages, the ``__iter__`` method will make additional
209
+ ``ListJobTemplates`` requests and continue to iterate
210
+ through the ``job_templates`` field on the
211
+ corresponding responses.
212
+
213
+ All the usual :class:`google.cloud.video.transcoder_v1.types.ListJobTemplatesResponse`
214
+ attributes are available on the pager. If multiple requests are made, only
215
+ the most recent response is retained, and thus used for attribute lookup.
216
+ """
217
+
218
+ def __init__(
219
+ self,
220
+ method: Callable[..., services.ListJobTemplatesResponse],
221
+ request: services.ListJobTemplatesRequest,
222
+ response: services.ListJobTemplatesResponse,
223
+ *,
224
+ retry: OptionalRetry = gapic_v1.method.DEFAULT,
225
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
226
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
227
+ ):
228
+ """Instantiate the pager.
229
+
230
+ Args:
231
+ method (Callable): The method that was originally called, and
232
+ which instantiated this pager.
233
+ request (google.cloud.video.transcoder_v1.types.ListJobTemplatesRequest):
234
+ The initial request object.
235
+ response (google.cloud.video.transcoder_v1.types.ListJobTemplatesResponse):
236
+ The initial response object.
237
+ retry (google.api_core.retry.Retry): Designation of what errors,
238
+ if any, should be retried.
239
+ timeout (float): The timeout for this request.
240
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
241
+ sent along with the request as metadata. Normally, each value must be of type `str`,
242
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
243
+ be of type `bytes`.
244
+ """
245
+ self._method = method
246
+ self._request = services.ListJobTemplatesRequest(request)
247
+ self._response = response
248
+ self._retry = retry
249
+ self._timeout = timeout
250
+ self._metadata = metadata
251
+
252
+ def __getattr__(self, name: str) -> Any:
253
+ return getattr(self._response, name)
254
+
255
+ @property
256
+ def pages(self) -> Iterator[services.ListJobTemplatesResponse]:
257
+ yield self._response
258
+ while self._response.next_page_token:
259
+ self._request.page_token = self._response.next_page_token
260
+ self._response = self._method(
261
+ self._request,
262
+ retry=self._retry,
263
+ timeout=self._timeout,
264
+ metadata=self._metadata,
265
+ )
266
+ yield self._response
267
+
268
+ def __iter__(self) -> Iterator[resources.JobTemplate]:
269
+ for page in self.pages:
270
+ yield from page.job_templates
271
+
272
+ def __repr__(self) -> str:
273
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
274
+
275
+
276
+ class ListJobTemplatesAsyncPager:
277
+ """A pager for iterating through ``list_job_templates`` requests.
278
+
279
+ This class thinly wraps an initial
280
+ :class:`google.cloud.video.transcoder_v1.types.ListJobTemplatesResponse` object, and
281
+ provides an ``__aiter__`` method to iterate through its
282
+ ``job_templates`` field.
283
+
284
+ If there are more pages, the ``__aiter__`` method will make additional
285
+ ``ListJobTemplates`` requests and continue to iterate
286
+ through the ``job_templates`` field on the
287
+ corresponding responses.
288
+
289
+ All the usual :class:`google.cloud.video.transcoder_v1.types.ListJobTemplatesResponse`
290
+ attributes are available on the pager. If multiple requests are made, only
291
+ the most recent response is retained, and thus used for attribute lookup.
292
+ """
293
+
294
+ def __init__(
295
+ self,
296
+ method: Callable[..., Awaitable[services.ListJobTemplatesResponse]],
297
+ request: services.ListJobTemplatesRequest,
298
+ response: services.ListJobTemplatesResponse,
299
+ *,
300
+ retry: OptionalAsyncRetry = gapic_v1.method.DEFAULT,
301
+ timeout: Union[float, object] = gapic_v1.method.DEFAULT,
302
+ metadata: Sequence[Tuple[str, Union[str, bytes]]] = ()
303
+ ):
304
+ """Instantiates the pager.
305
+
306
+ Args:
307
+ method (Callable): The method that was originally called, and
308
+ which instantiated this pager.
309
+ request (google.cloud.video.transcoder_v1.types.ListJobTemplatesRequest):
310
+ The initial request object.
311
+ response (google.cloud.video.transcoder_v1.types.ListJobTemplatesResponse):
312
+ The initial response object.
313
+ retry (google.api_core.retry.AsyncRetry): Designation of what errors,
314
+ if any, should be retried.
315
+ timeout (float): The timeout for this request.
316
+ metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
317
+ sent along with the request as metadata. Normally, each value must be of type `str`,
318
+ but for metadata keys ending with the suffix `-bin`, the corresponding values must
319
+ be of type `bytes`.
320
+ """
321
+ self._method = method
322
+ self._request = services.ListJobTemplatesRequest(request)
323
+ self._response = response
324
+ self._retry = retry
325
+ self._timeout = timeout
326
+ self._metadata = metadata
327
+
328
+ def __getattr__(self, name: str) -> Any:
329
+ return getattr(self._response, name)
330
+
331
+ @property
332
+ async def pages(self) -> AsyncIterator[services.ListJobTemplatesResponse]:
333
+ yield self._response
334
+ while self._response.next_page_token:
335
+ self._request.page_token = self._response.next_page_token
336
+ self._response = await self._method(
337
+ self._request,
338
+ retry=self._retry,
339
+ timeout=self._timeout,
340
+ metadata=self._metadata,
341
+ )
342
+ yield self._response
343
+
344
+ def __aiter__(self) -> AsyncIterator[resources.JobTemplate]:
345
+ async def async_generator():
346
+ async for page in self.pages:
347
+ for response in page.job_templates:
348
+ yield response
349
+
350
+ return async_generator()
351
+
352
+ def __repr__(self) -> str:
353
+ return "{0}<{1!r}>".format(self.__class__.__name__, self._response)
@@ -0,0 +1,36 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2024 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ from collections import OrderedDict
17
+ from typing import Dict, Type
18
+
19
+ from .base import TranscoderServiceTransport
20
+ from .grpc import TranscoderServiceGrpcTransport
21
+ from .grpc_asyncio import TranscoderServiceGrpcAsyncIOTransport
22
+ from .rest import TranscoderServiceRestInterceptor, TranscoderServiceRestTransport
23
+
24
+ # Compile a registry of transports.
25
+ _transport_registry = OrderedDict() # type: Dict[str, Type[TranscoderServiceTransport]]
26
+ _transport_registry["grpc"] = TranscoderServiceGrpcTransport
27
+ _transport_registry["grpc_asyncio"] = TranscoderServiceGrpcAsyncIOTransport
28
+ _transport_registry["rest"] = TranscoderServiceRestTransport
29
+
30
+ __all__ = (
31
+ "TranscoderServiceTransport",
32
+ "TranscoderServiceGrpcTransport",
33
+ "TranscoderServiceGrpcAsyncIOTransport",
34
+ "TranscoderServiceRestTransport",
35
+ "TranscoderServiceRestInterceptor",
36
+ )
@@ -0,0 +1,260 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2024 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ import abc
17
+ from typing import Awaitable, Callable, Dict, Optional, Sequence, Union
18
+
19
+ import google.api_core
20
+ from google.api_core import exceptions as core_exceptions
21
+ from google.api_core import gapic_v1
22
+ from google.api_core import retry as retries
23
+ import google.auth # type: ignore
24
+ from google.auth import credentials as ga_credentials # type: ignore
25
+ from google.oauth2 import service_account # type: ignore
26
+ from google.protobuf import empty_pb2 # type: ignore
27
+
28
+ from google.cloud.video.transcoder_v1 import gapic_version as package_version
29
+ from google.cloud.video.transcoder_v1.types import resources, services
30
+
31
+ DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
32
+ gapic_version=package_version.__version__
33
+ )
34
+
35
+
36
+ class TranscoderServiceTransport(abc.ABC):
37
+ """Abstract transport class for TranscoderService."""
38
+
39
+ AUTH_SCOPES = ("https://www.googleapis.com/auth/cloud-platform",)
40
+
41
+ DEFAULT_HOST: str = "transcoder.googleapis.com"
42
+
43
+ def __init__(
44
+ self,
45
+ *,
46
+ host: str = DEFAULT_HOST,
47
+ credentials: Optional[ga_credentials.Credentials] = None,
48
+ credentials_file: Optional[str] = None,
49
+ scopes: Optional[Sequence[str]] = None,
50
+ quota_project_id: Optional[str] = None,
51
+ client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
52
+ always_use_jwt_access: Optional[bool] = False,
53
+ api_audience: Optional[str] = None,
54
+ **kwargs,
55
+ ) -> None:
56
+ """Instantiate the transport.
57
+
58
+ Args:
59
+ host (Optional[str]):
60
+ The hostname to connect to (default: 'transcoder.googleapis.com').
61
+ credentials (Optional[google.auth.credentials.Credentials]): The
62
+ authorization credentials to attach to requests. These
63
+ credentials identify the application to the service; if none
64
+ are specified, the client will attempt to ascertain the
65
+ credentials from the environment.
66
+ credentials_file (Optional[str]): A file with credentials that can
67
+ be loaded with :func:`google.auth.load_credentials_from_file`.
68
+ This argument is mutually exclusive with credentials.
69
+ scopes (Optional[Sequence[str]]): A list of scopes.
70
+ quota_project_id (Optional[str]): An optional project to use for billing
71
+ and quota.
72
+ client_info (google.api_core.gapic_v1.client_info.ClientInfo):
73
+ The client info used to send a user-agent string along with
74
+ API requests. If ``None``, then default info will be used.
75
+ Generally, you only need to set this if you're developing
76
+ your own client library.
77
+ always_use_jwt_access (Optional[bool]): Whether self signed JWT should
78
+ be used for service account credentials.
79
+ """
80
+
81
+ scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
82
+
83
+ # Save the scopes.
84
+ self._scopes = scopes
85
+ if not hasattr(self, "_ignore_credentials"):
86
+ self._ignore_credentials: bool = False
87
+
88
+ # If no credentials are provided, then determine the appropriate
89
+ # defaults.
90
+ if credentials and credentials_file:
91
+ raise core_exceptions.DuplicateCredentialArgs(
92
+ "'credentials_file' and 'credentials' are mutually exclusive"
93
+ )
94
+
95
+ if credentials_file is not None:
96
+ credentials, _ = google.auth.load_credentials_from_file(
97
+ credentials_file, **scopes_kwargs, quota_project_id=quota_project_id
98
+ )
99
+ elif credentials is None and not self._ignore_credentials:
100
+ credentials, _ = google.auth.default(
101
+ **scopes_kwargs, quota_project_id=quota_project_id
102
+ )
103
+ # Don't apply audience if the credentials file passed from user.
104
+ if hasattr(credentials, "with_gdch_audience"):
105
+ credentials = credentials.with_gdch_audience(
106
+ api_audience if api_audience else host
107
+ )
108
+
109
+ # If the credentials are service account credentials, then always try to use self signed JWT.
110
+ if (
111
+ always_use_jwt_access
112
+ and isinstance(credentials, service_account.Credentials)
113
+ and hasattr(service_account.Credentials, "with_always_use_jwt_access")
114
+ ):
115
+ credentials = credentials.with_always_use_jwt_access(True)
116
+
117
+ # Save the credentials.
118
+ self._credentials = credentials
119
+
120
+ # Save the hostname. Default to port 443 (HTTPS) if none is specified.
121
+ if ":" not in host:
122
+ host += ":443"
123
+ self._host = host
124
+
125
+ @property
126
+ def host(self):
127
+ return self._host
128
+
129
+ def _prep_wrapped_messages(self, client_info):
130
+ # Precompute the wrapped methods.
131
+ self._wrapped_methods = {
132
+ self.create_job: gapic_v1.method.wrap_method(
133
+ self.create_job,
134
+ default_timeout=60.0,
135
+ client_info=client_info,
136
+ ),
137
+ self.list_jobs: gapic_v1.method.wrap_method(
138
+ self.list_jobs,
139
+ default_timeout=60.0,
140
+ client_info=client_info,
141
+ ),
142
+ self.get_job: gapic_v1.method.wrap_method(
143
+ self.get_job,
144
+ default_timeout=60.0,
145
+ client_info=client_info,
146
+ ),
147
+ self.delete_job: gapic_v1.method.wrap_method(
148
+ self.delete_job,
149
+ default_timeout=60.0,
150
+ client_info=client_info,
151
+ ),
152
+ self.create_job_template: gapic_v1.method.wrap_method(
153
+ self.create_job_template,
154
+ default_timeout=60.0,
155
+ client_info=client_info,
156
+ ),
157
+ self.list_job_templates: gapic_v1.method.wrap_method(
158
+ self.list_job_templates,
159
+ default_timeout=60.0,
160
+ client_info=client_info,
161
+ ),
162
+ self.get_job_template: gapic_v1.method.wrap_method(
163
+ self.get_job_template,
164
+ default_timeout=60.0,
165
+ client_info=client_info,
166
+ ),
167
+ self.delete_job_template: gapic_v1.method.wrap_method(
168
+ self.delete_job_template,
169
+ default_timeout=60.0,
170
+ client_info=client_info,
171
+ ),
172
+ }
173
+
174
+ def close(self):
175
+ """Closes resources associated with the transport.
176
+
177
+ .. warning::
178
+ Only call this method if the transport is NOT shared
179
+ with other clients - this may cause errors in other clients!
180
+ """
181
+ raise NotImplementedError()
182
+
183
+ @property
184
+ def create_job(
185
+ self,
186
+ ) -> Callable[
187
+ [services.CreateJobRequest], Union[resources.Job, Awaitable[resources.Job]]
188
+ ]:
189
+ raise NotImplementedError()
190
+
191
+ @property
192
+ def list_jobs(
193
+ self,
194
+ ) -> Callable[
195
+ [services.ListJobsRequest],
196
+ Union[services.ListJobsResponse, Awaitable[services.ListJobsResponse]],
197
+ ]:
198
+ raise NotImplementedError()
199
+
200
+ @property
201
+ def get_job(
202
+ self,
203
+ ) -> Callable[
204
+ [services.GetJobRequest], Union[resources.Job, Awaitable[resources.Job]]
205
+ ]:
206
+ raise NotImplementedError()
207
+
208
+ @property
209
+ def delete_job(
210
+ self,
211
+ ) -> Callable[
212
+ [services.DeleteJobRequest], Union[empty_pb2.Empty, Awaitable[empty_pb2.Empty]]
213
+ ]:
214
+ raise NotImplementedError()
215
+
216
+ @property
217
+ def create_job_template(
218
+ self,
219
+ ) -> Callable[
220
+ [services.CreateJobTemplateRequest],
221
+ Union[resources.JobTemplate, Awaitable[resources.JobTemplate]],
222
+ ]:
223
+ raise NotImplementedError()
224
+
225
+ @property
226
+ def list_job_templates(
227
+ self,
228
+ ) -> Callable[
229
+ [services.ListJobTemplatesRequest],
230
+ Union[
231
+ services.ListJobTemplatesResponse,
232
+ Awaitable[services.ListJobTemplatesResponse],
233
+ ],
234
+ ]:
235
+ raise NotImplementedError()
236
+
237
+ @property
238
+ def get_job_template(
239
+ self,
240
+ ) -> Callable[
241
+ [services.GetJobTemplateRequest],
242
+ Union[resources.JobTemplate, Awaitable[resources.JobTemplate]],
243
+ ]:
244
+ raise NotImplementedError()
245
+
246
+ @property
247
+ def delete_job_template(
248
+ self,
249
+ ) -> Callable[
250
+ [services.DeleteJobTemplateRequest],
251
+ Union[empty_pb2.Empty, Awaitable[empty_pb2.Empty]],
252
+ ]:
253
+ raise NotImplementedError()
254
+
255
+ @property
256
+ def kind(self) -> str:
257
+ raise NotImplementedError()
258
+
259
+
260
+ __all__ = ("TranscoderServiceTransport",)