Skip to content

Commit c74b5b5

Browse files
authored
chore(migration): Migrate code from googleapis/python-api-common-protos into packages/googleapis-common-protos (#13381)
See #10891. This PR should be merged with a merge-commit, not a squash-commit, in order to preserve the git history.
2 parents b6874a2 + 145e153 commit c74b5b5

File tree

118 files changed

+6089
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+6089
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
deep-remove-regex:
16+
- /owl-bot-staging
17+
18+
deep-copy-regex:
19+
- source: /gapic/metadata/(metadata-py)/(gapic_metadata.*)
20+
dest: /owl-bot-staging/googleapis-common-protos/$1/google/gapic/metadata/$2
21+
- source: /google/api/(api-py)/(.*)
22+
dest: /owl-bot-staging/googleapis-common-protos/$1/google/api/$2
23+
- source: /google/cloud/(extended-operations-py)/(extended_operations.*)
24+
dest: /owl-bot-staging/googleapis-common-protos/$1/google/cloud/$2
25+
- source: /google/cloud/location/(location-py)/(locations.*)
26+
dest: /owl-bot-staging/googleapis-common-protos/$1/google/cloud/location/$2
27+
- source: /google/logging/type/(logging-type-py)/(http_request.*)
28+
dest: /owl-bot-staging/googleapis-common-protos/$1/google/logging/type/$2
29+
- source: /google/logging/type/(logging-type-py)/(log_severity.*)
30+
dest: /owl-bot-staging/googleapis-common-protos/$1/google/logging/type/$2
31+
- source: /google/longrunning/(operations-py)/(operations)(.*pb2.*)
32+
dest: /owl-bot-staging/googleapis-common-protos/$1/google/longrunning/$2_proto$3
33+
- source: /google/rpc/(rpc-py)/(.*)
34+
dest: /owl-bot-staging/googleapis-common-protos/$1/google/rpc/$2
35+
- source: /google/rpc/context/(rpc-context-py)/(.*)
36+
dest: /owl-bot-staging/googleapis-common-protos/$1/google/rpc/context/$2
37+
- source: /google/type/(type-py)/(.*)
38+
dest: /owl-bot-staging/googleapis-common-protos/$1/google/type/$2
39+
40+
begin-after-commit-hash: 6acf4a0a797f1082027985c55c4b14b60f673dd7
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2024 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
# Generated by synthtool. DO NOT EDIT!
18+
[flake8]
19+
ignore = E203, E231, E266, E501, W503
20+
exclude =
21+
# Exclude generated code.
22+
**/proto/**
23+
**/gapic/**
24+
**/services/**
25+
**/types/**
26+
*_pb2.py
27+
28+
# Standard linting exemptions.
29+
**/.nox/**
30+
__pycache__,
31+
.git,
32+
*.pyc,
33+
conf.py
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
*.py[cod]
2+
*.sw[op]
3+
4+
# C extensions
5+
*.so
6+
7+
# Packages
8+
*.egg
9+
*.egg-info
10+
dist
11+
build
12+
eggs
13+
.eggs
14+
parts
15+
bin
16+
var
17+
sdist
18+
develop-eggs
19+
.installed.cfg
20+
lib
21+
lib64
22+
__pycache__
23+
24+
# Installer logs
25+
pip-log.txt
26+
27+
# Unit test / coverage reports
28+
.coverage
29+
.nox
30+
.cache
31+
.pytest_cache
32+
33+
34+
# Mac
35+
.DS_Store
36+
37+
# JetBrains
38+
.idea
39+
40+
# VS Code
41+
.vscode
42+
43+
# emacs
44+
*~
45+
46+
# Built documentation
47+
docs/_build
48+
bigquery/docs/generated
49+
docs.metadata
50+
51+
# Virtual environment
52+
env/
53+
54+
# Test logs
55+
coverage.xml
56+
*sponge_log.xml
57+
58+
# System test environment variables.
59+
system_tests/local_test_setup
60+
61+
# Make sure a generated file isn't accidentally committed.
62+
pylintrc
63+
pylintrc.test
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "googleapis-common-protos",
3+
"name_pretty": "Google APIs Common Protos",
4+
"client_documentation": "https://github.com/googleapis/google-cloud-python/tree/main/packages/googleapis-common-protos",
5+
"product_documentation": "https://github.com/googleapis/googleapis/tree/master/google",
6+
"issue_tracker": "https://github.com/googleapis/google-cloud-python/issues",
7+
"release_level": "stable",
8+
"language": "python",
9+
"library_type": "CORE",
10+
"repo": "googleapis/google-cloud-python",
11+
"distribution_name": "googleapis-common-protos",
12+
"default_version": "apiVersion",
13+
"codeowner_team": ""
14+
}

packages/googleapis-common-protos/CHANGELOG.md

Lines changed: 271 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
<!-- # Generated by synthtool. DO NOT EDIT! !-->
2+
# Code of Conduct
3+
4+
## Our Pledge
5+
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
23+
24+
Examples of unacceptable behavior by participants include:
25+
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.
40+
41+
Project maintainers have the right and responsibility to remove, edit, or reject
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 *googleapis-stewards@google.com*, 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+
opensource@google.com.
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
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# How to Contribute
2+
3+
We'd love to accept your patches and contributions to this project. There are
4+
just a few small guidelines you need to follow.
5+
6+
## Contributor License Agreement
7+
8+
Contributions to this project must be accompanied by a Contributor License
9+
Agreement (CLA). You (or your employer) retain the copyright to your
10+
contribution; this simply gives us permission to use and redistribute your
11+
contributions as part of the project. Head over to
12+
<https://cla.developers.google.com/> to see your current agreements on file or
13+
to sign a new one.
14+
15+
You generally only need to submit a CLA once, so if you've already submitted one
16+
(even if it was for a different project), you probably don't need to do it
17+
again.
18+
19+
## Code reviews
20+
21+
All submissions, including submissions by project members, require review. We
22+
use GitHub pull requests for this purpose. Consult
23+
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
24+
information on using pull requests.
25+
26+
## Community Guidelines
27+
28+
This project follows
29+
[Google's Open Source Community Guidelines](https://opensource.google/conduct/).

0 commit comments

Comments
 (0)