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

File tree

12 files changed

+526
-211
lines changed

12 files changed

+526
-211
lines changed
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ env_vars: {
3030

3131
env_vars: {
3232
key: "V2_STAGING_BUCKET"
33-
value: "docs-staging-v2-staging"
33+
value: "docs-staging-v2"
3434
}
3535

3636
# It will upload the docker image after successful builds.
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,95 @@
11
<!-- # Generated by synthtool. DO NOT EDIT! !-->
2-
# Contributor Code of Conduct
2+
# Code of Conduct
33

4-
As contributors and maintainers of this project,
5-
and in the interest of fostering an open and welcoming community,
6-
we pledge to respect all people who contribute through reporting issues,
7-
posting feature requests, updating documentation,
8-
submitting pull requests or es, and other activities.
4+
## Our Pledge
95

10-
We are committed to making participation in this project
11-
a harassment-free experience for everyone,
12-
regardless of level of experience, gender, gender identity and expression,
13-
sexual orientation, disability, personal appearance,
14-
body size, race, ethnicity, age, religion, or nationality.
6+
In the interest of fostering an open and welcoming environment, we as
7+
contributors and maintainers pledge to making participation in our project and
8+
our community a harassment-free experience for everyone, regardless of age, body
9+
size, disability, ethnicity, gender identity and expression, level of
10+
experience, education, socio-economic status, nationality, personal appearance,
11+
race, religion, or sexual identity and orientation.
12+
13+
## Our Standards
14+
15+
Examples of behavior that contributes to creating a positive environment
16+
include:
17+
18+
* Using welcoming and inclusive language
19+
* Being respectful of differing viewpoints and experiences
20+
* Gracefully accepting constructive criticism
21+
* Focusing on what is best for the community
22+
* Showing empathy towards other community members
1523

1624
Examples of unacceptable behavior by participants include:
1725

18-
* The use of sexualized language or imagery
19-
* Personal attacks
20-
* Trolling or insulting/derogatory comments
21-
* Public or private harassment
22-
* Publishing other's private information,
23-
such as physical or electronic
24-
addresses, without explicit permission
25-
* Other unethical or unprofessional conduct.
26+
* The use of sexualized language or imagery and unwelcome sexual attention or
27+
advances
28+
* Trolling, insulting/derogatory comments, and personal or political attacks
29+
* Public or private harassment
30+
* Publishing others' private information, such as a physical or electronic
31+
address, without explicit permission
32+
* Other conduct which could reasonably be considered inappropriate in a
33+
professional setting
34+
35+
## Our Responsibilities
36+
37+
Project maintainers are responsible for clarifying the standards of acceptable
38+
behavior and are expected to take appropriate and fair corrective action in
39+
response to any instances of unacceptable behavior.
2640

2741
Project maintainers have the right and responsibility to remove, edit, or reject
28-
comments, commits, code, wiki edits, issues, and other contributions
29-
that are not aligned to this Code of Conduct.
30-
By adopting this Code of Conduct,
31-
project maintainers commit themselves to fairly and consistently
32-
applying these principles to every aspect of managing this project.
33-
Project maintainers who do not follow or enforce the Code of Conduct
34-
may be permanently removed from the project team.
35-
36-
This code of conduct applies both within project spaces and in public spaces
37-
when an individual is representing the project or its community.
38-
39-
Instances of abusive, harassing, or otherwise unacceptable behavior
40-
may be reported by opening an issue
41-
or contacting one or more of the project maintainers.
42-
43-
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0,
44-
available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/)
42+
comments, commits, code, wiki edits, issues, and other contributions that are
43+
not aligned to this Code of Conduct, or to ban temporarily or permanently any
44+
contributor for other behaviors that they deem inappropriate, threatening,
45+
offensive, or harmful.
46+
47+
## Scope
48+
49+
This Code of Conduct applies both within project spaces and in public spaces
50+
when an individual is representing the project or its community. Examples of
51+
representing a project or community include using an official project e-mail
52+
address, posting via an official social media account, or acting as an appointed
53+
representative at an online or offline event. Representation of a project may be
54+
further defined and clarified by project maintainers.
55+
56+
This Code of Conduct also applies outside the project spaces when the Project
57+
Steward has a reasonable belief that an individual's behavior may have a
58+
negative impact on the project or its community.
59+
60+
## Conflict Resolution
61+
62+
We do not believe that all conflict is bad; healthy debate and disagreement
63+
often yield positive results. However, it is never okay to be disrespectful or
64+
to engage in behavior that violates the project’s code of conduct.
65+
66+
If you see someone violating the code of conduct, you are encouraged to address
67+
the behavior directly with those involved. Many issues can be resolved quickly
68+
and easily, and this gives people more control over the outcome of their
69+
dispute. If you are unable to resolve the matter for any reason, or if the
70+
behavior is threatening or harassing, report it. We are dedicated to providing
71+
an environment where participants feel welcome and safe.
72+
73+
74+
Reports should be directed to *[email protected]*, the
75+
Project Steward(s) for *Google Cloud Client Libraries*. It is the Project Steward’s duty to
76+
receive and address reported violations of the code of conduct. They will then
77+
work with a committee consisting of representatives from the Open Source
78+
Programs Office and the Google Open Source Strategy team. If for any reason you
79+
are uncomfortable reaching out to the Project Steward, please email
80+
81+
82+
We will investigate every complaint, but you may not receive a direct response.
83+
We will use our discretion in determining when and how to follow up on reported
84+
incidents, which may range from not taking action to permanent expulsion from
85+
the project and project-sponsored spaces. We will notify the accused of the
86+
report and provide them an opportunity to discuss it before any action is taken.
87+
The identity of the reporter will be omitted from the details of the report
88+
supplied to the accused. In potentially harmful situations, such as ongoing
89+
harassment or threats to anyone's safety, we may take action without notice.
90+
91+
## Attribution
92+
93+
This Code of Conduct is adapted from the Contributor Covenant, version 1.4,
94+
available at
95+
https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@
349349
"google-auth": ("https://google-auth.readthedocs.io/en/stable", None),
350350
"google.api_core": ("https://googleapis.dev/python/google-api-core/latest/", None,),
351351
"grpc": ("https://grpc.io/grpc/python/", None),
352+
"proto-plus": ("https://proto-plus-python.readthedocs.io/en/latest/", None),
352353
}
353354

354355

Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ Types for Google Cloud Video Transcoder v1beta1 API
33

44
.. automodule:: google.cloud.video.transcoder_v1beta1.types
55
:members:
6+
:show-inheritance:
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,47 @@ class TranscoderServiceAsyncClient:
6060
TranscoderServiceClient.parse_job_template_path
6161
)
6262

63+
common_billing_account_path = staticmethod(
64+
TranscoderServiceClient.common_billing_account_path
65+
)
66+
parse_common_billing_account_path = staticmethod(
67+
TranscoderServiceClient.parse_common_billing_account_path
68+
)
69+
70+
common_folder_path = staticmethod(TranscoderServiceClient.common_folder_path)
71+
parse_common_folder_path = staticmethod(
72+
TranscoderServiceClient.parse_common_folder_path
73+
)
74+
75+
common_organization_path = staticmethod(
76+
TranscoderServiceClient.common_organization_path
77+
)
78+
parse_common_organization_path = staticmethod(
79+
TranscoderServiceClient.parse_common_organization_path
80+
)
81+
82+
common_project_path = staticmethod(TranscoderServiceClient.common_project_path)
83+
parse_common_project_path = staticmethod(
84+
TranscoderServiceClient.parse_common_project_path
85+
)
86+
87+
common_location_path = staticmethod(TranscoderServiceClient.common_location_path)
88+
parse_common_location_path = staticmethod(
89+
TranscoderServiceClient.parse_common_location_path
90+
)
91+
6392
from_service_account_file = TranscoderServiceClient.from_service_account_file
6493
from_service_account_json = from_service_account_file
6594

95+
@property
96+
def transport(self) -> TranscoderServiceTransport:
97+
"""Return the transport used by the client instance.
98+
99+
Returns:
100+
TranscoderServiceTransport: The transport used by the client instance.
101+
"""
102+
return self._client.transport
103+
66104
get_transport_class = functools.partial(
67105
type(TranscoderServiceClient).get_transport_class, type(TranscoderServiceClient)
68106
)
@@ -157,7 +195,8 @@ async def create_job(
157195
# Create or coerce a protobuf request object.
158196
# Sanity check: If we got a request object, we should *not* have
159197
# gotten any keyword arguments that map to the request.
160-
if request is not None and any([parent, job]):
198+
has_flattened_params = any([parent, job])
199+
if request is not None and has_flattened_params:
161200
raise ValueError(
162201
"If the `request` argument is set, then none of "
163202
"the individual field arguments should be set."
@@ -233,7 +272,8 @@ async def list_jobs(
233272
# Create or coerce a protobuf request object.
234273
# Sanity check: If we got a request object, we should *not* have
235274
# gotten any keyword arguments that map to the request.
236-
if request is not None and any([parent]):
275+
has_flattened_params = any([parent])
276+
if request is not None and has_flattened_params:
237277
raise ValueError(
238278
"If the `request` argument is set, then none of "
239279
"the individual field arguments should be set."
@@ -308,7 +348,8 @@ async def get_job(
308348
# Create or coerce a protobuf request object.
309349
# Sanity check: If we got a request object, we should *not* have
310350
# gotten any keyword arguments that map to the request.
311-
if request is not None and any([name]):
351+
has_flattened_params = any([name])
352+
if request is not None and has_flattened_params:
312353
raise ValueError(
313354
"If the `request` argument is set, then none of "
314355
"the individual field arguments should be set."
@@ -373,7 +414,8 @@ async def delete_job(
373414
# Create or coerce a protobuf request object.
374415
# Sanity check: If we got a request object, we should *not* have
375416
# gotten any keyword arguments that map to the request.
376-
if request is not None and any([name]):
417+
has_flattened_params = any([name])
418+
if request is not None and has_flattened_params:
377419
raise ValueError(
378420
"If the `request` argument is set, then none of "
379421
"the individual field arguments should be set."
@@ -461,7 +503,8 @@ async def create_job_template(
461503
# Create or coerce a protobuf request object.
462504
# Sanity check: If we got a request object, we should *not* have
463505
# gotten any keyword arguments that map to the request.
464-
if request is not None and any([parent, job_template, job_template_id]):
506+
has_flattened_params = any([parent, job_template, job_template_id])
507+
if request is not None and has_flattened_params:
465508
raise ValueError(
466509
"If the `request` argument is set, then none of "
467510
"the individual field arguments should be set."
@@ -540,7 +583,8 @@ async def list_job_templates(
540583
# Create or coerce a protobuf request object.
541584
# Sanity check: If we got a request object, we should *not* have
542585
# gotten any keyword arguments that map to the request.
543-
if request is not None and any([parent]):
586+
has_flattened_params = any([parent])
587+
if request is not None and has_flattened_params:
544588
raise ValueError(
545589
"If the `request` argument is set, then none of "
546590
"the individual field arguments should be set."
@@ -616,7 +660,8 @@ async def get_job_template(
616660
# Create or coerce a protobuf request object.
617661
# Sanity check: If we got a request object, we should *not* have
618662
# gotten any keyword arguments that map to the request.
619-
if request is not None and any([name]):
663+
has_flattened_params = any([name])
664+
if request is not None and has_flattened_params:
620665
raise ValueError(
621666
"If the `request` argument is set, then none of "
622667
"the individual field arguments should be set."
@@ -681,7 +726,8 @@ async def delete_job_template(
681726
# Create or coerce a protobuf request object.
682727
# Sanity check: If we got a request object, we should *not* have
683728
# gotten any keyword arguments that map to the request.
684-
if request is not None and any([name]):
729+
has_flattened_params = any([name])
730+
if request is not None and has_flattened_params:
685731
raise ValueError(
686732
"If the `request` argument is set, then none of "
687733
"the individual field arguments should be set."
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,15 @@ def from_service_account_file(cls, filename: str, *args, **kwargs):
141141

142142
from_service_account_json = from_service_account_file
143143

144+
@property
145+
def transport(self) -> TranscoderServiceTransport:
146+
"""Return the transport used by the client instance.
147+
148+
Returns:
149+
TranscoderServiceTransport: The transport used by the client instance.
150+
"""
151+
return self._transport
152+
144153
@staticmethod
145154
def job_path(project: str, location: str, job: str,) -> str:
146155
"""Return a fully-qualified job string."""
@@ -173,6 +182,65 @@ def parse_job_template_path(path: str) -> Dict[str, str]:
173182
)
174183
return m.groupdict() if m else {}
175184

185+
@staticmethod
186+
def common_billing_account_path(billing_account: str,) -> str:
187+
"""Return a fully-qualified billing_account string."""
188+
return "billingAccounts/{billing_account}".format(
189+
billing_account=billing_account,
190+
)
191+
192+
@staticmethod
193+
def parse_common_billing_account_path(path: str) -> Dict[str, str]:
194+
"""Parse a billing_account path into its component segments."""
195+
m = re.match(r"^billingAccounts/(?P<billing_account>.+?)$", path)
196+
return m.groupdict() if m else {}
197+
198+
@staticmethod
199+
def common_folder_path(folder: str,) -> str:
200+
"""Return a fully-qualified folder string."""
201+
return "folders/{folder}".format(folder=folder,)
202+
203+
@staticmethod
204+
def parse_common_folder_path(path: str) -> Dict[str, str]:
205+
"""Parse a folder path into its component segments."""
206+
m = re.match(r"^folders/(?P<folder>.+?)$", path)
207+
return m.groupdict() if m else {}
208+
209+
@staticmethod
210+
def common_organization_path(organization: str,) -> str:
211+
"""Return a fully-qualified organization string."""
212+
return "organizations/{organization}".format(organization=organization,)
213+
214+
@staticmethod
215+
def parse_common_organization_path(path: str) -> Dict[str, str]:
216+
"""Parse a organization path into its component segments."""
217+
m = re.match(r"^organizations/(?P<organization>.+?)$", path)
218+
return m.groupdict() if m else {}
219+
220+
@staticmethod
221+
def common_project_path(project: str,) -> str:
222+
"""Return a fully-qualified project string."""
223+
return "projects/{project}".format(project=project,)
224+
225+
@staticmethod
226+
def parse_common_project_path(path: str) -> Dict[str, str]:
227+
"""Parse a project path into its component segments."""
228+
m = re.match(r"^projects/(?P<project>.+?)$", path)
229+
return m.groupdict() if m else {}
230+
231+
@staticmethod
232+
def common_location_path(project: str, location: str,) -> str:
233+
"""Return a fully-qualified location string."""
234+
return "projects/{project}/locations/{location}".format(
235+
project=project, location=location,
236+
)
237+
238+
@staticmethod
239+
def parse_common_location_path(path: str) -> Dict[str, str]:
240+
"""Parse a location path into its component segments."""
241+
m = re.match(r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)$", path)
242+
return m.groupdict() if m else {}
243+
176244
def __init__(
177245
self,
178246
*,
@@ -208,10 +276,10 @@ def __init__(
208276
not provided, the default SSL client certificate will be used if
209277
present. If GOOGLE_API_USE_CLIENT_CERTIFICATE is "false" or not
210278
set, no client certificate will be used.
211-
client_info (google.api_core.gapic_v1.client_info.ClientInfo):
212-
The client info used to send a user-agent string along with
213-
API requests. If ``None``, then default info will be used.
214-
Generally, you only need to set this if you're developing
279+
client_info (google.api_core.gapic_v1.client_info.ClientInfo):
280+
The client info used to send a user-agent string along with
281+
API requests. If ``None``, then default info will be used.
282+
Generally, you only need to set this if you're developing
215283
your own client library.
216284
217285
Raises:

0 commit comments

Comments
 (0)