Skip to content

Commit 083606a

Browse files
authored
chore(migration): Migrate code from googleapis/python-firestore into packages/google-cloud-firestore (googleapis#15590)
See googleapis#11034. This PR should be merged with a merge-commit, not a squash-commit, in order to preserve the git history.
2 parents 784cd61 + f27a581 commit 083606a

File tree

566 files changed

+174932
-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.

566 files changed

+174932
-0
lines changed

.librarian/generator-input/client-post-processing/firestore-integration.yaml

Lines changed: 580 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "firestore",
3+
"name_pretty": "Cloud Firestore API",
4+
"product_documentation": "https://cloud.google.com/firestore",
5+
"client_documentation": "https://cloud.google.com/python/docs/reference/firestore/latest",
6+
"issue_tracker": "https://issuetracker.google.com/savedsearches/5337669",
7+
"release_level": "stable",
8+
"language": "python",
9+
"library_type": "GAPIC_COMBO",
10+
"repo": "googleapis/google-cloud-python",
11+
"distribution_name": "google-cloud-firestore",
12+
"api_id": "firestore.googleapis.com",
13+
"requires_billing": true,
14+
"default_version": "v1",
15+
"codeowner_team": "@googleapis/api-firestore @googleapis/api-firestore-partners",
16+
"api_shortname": "firestore",
17+
"api_description": "is a fully-managed NoSQL document database for mobile, web, and server development from Firebase and Google Cloud Platform. It's backed by a multi-region replicated database that ensures once data is committed, it's durable even in the face of unexpected disasters. Not only that, but despite being a distributed database, it's also strongly consistent and offers seamless integration with other Firebase and Google Cloud Platform products, including Google Cloud Functions."
18+
}

.librarian/state.yaml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1696,6 +1696,68 @@ libraries:
16961696
remove_regex:
16971697
- packages/google-cloud-financialservices/
16981698
tag_format: '{id}-v{version}'
1699+
- id: google-cloud-firestore
1700+
version: 2.23.0
1701+
last_generated_commit: d420134ab324c0cbe0f4ae06ad9697dac77f26ad
1702+
apis:
1703+
- path: google/firestore/v1
1704+
service_config: firestore_v1.yaml
1705+
- path: google/firestore/admin/v1
1706+
service_config: firestore_v1.yaml
1707+
- path: google/firestore/bundle
1708+
service_config: ""
1709+
source_roots:
1710+
- packages/google-cloud-firestore
1711+
preserve_regex:
1712+
- ^packages/google-cloud-firestore/CHANGELOG.md
1713+
- ^packages/google-cloud-firestore/docs/CHANGELOG.md
1714+
remove_regex:
1715+
- ^packages/google-cloud-firestore/google/cloud/firestore/__init__.py
1716+
- ^packages/google-cloud-firestore/google/cloud/firestore/gapic
1717+
- ^packages/google-cloud-firestore/google/cloud/firestore/py.typed
1718+
- ^packages/google-cloud-firestore/google/cloud/firestore_v1/__init__.py
1719+
- ^packages/google-cloud-firestore/google/cloud/firestore_v1/services
1720+
- ^packages/google-cloud-firestore/google/cloud/firestore_v1/types
1721+
- ^packages/google-cloud-firestore/google/cloud/firestore_v1/gapic
1722+
- ^packages/google-cloud-firestore/google/cloud/firestore_v1/py.typed
1723+
- ^packages/google-cloud-firestore/google/cloud/firestore_admin/
1724+
- ^packages/google-cloud-firestore/google/cloud/firestore_admin_v1/__init__.py
1725+
- ^packages/google-cloud-firestore/google/cloud/firestore_admin_v1/services
1726+
- ^packages/google-cloud-firestore/google/cloud/firestore_admin_v1/types
1727+
- ^packages/google-cloud-firestore/google/cloud/firestore_admin_v1/gapic
1728+
- ^packages/google-cloud-firestore/google/cloud/firestore_admin_v1/py.typed
1729+
- ^packages/google-cloud-firestore/google/cloud/firestore_bundle/__init__.py
1730+
- ^packages/google-cloud-firestore/google/cloud/firestore_bundle/services
1731+
- ^packages/google-cloud-firestore/google/cloud/firestore_bundle/types
1732+
- ^packages/google-cloud-firestore/google/cloud/firestore_bundle/__init__.py
1733+
- ^packages/google-cloud-firestore/google/cloud/firestore_bundle/gapic
1734+
- ^packages/google-cloud-firestore/google/cloud/firestore_bundle/py.typed
1735+
- ^packages/google-cloud-firestore/testing
1736+
- ^packages/google-cloud-firestore/tests/unit/gapic
1737+
- ^packages/google-cloud-firestore/tests/__init__.py
1738+
- ^packages/google-cloud-firestore/tests/unit/__init__.py
1739+
- ^packages/google-cloud-firestore/.flake8
1740+
- ^packages/google-cloud-firestore/.repo-metadata.json
1741+
- ^packages/google-cloud-firestore/.coveragerc
1742+
- ^packages/google-cloud-firestore/mypy.ini
1743+
- ^packages/google-cloud-firestore/LICENSE
1744+
- ^packages/google-cloud-firestore/MANIFEST.in
1745+
- ^packages/google-cloud-firestore/noxfile.py
1746+
- ^packages/google-cloud-firestore/samples/generated_samples
1747+
- ^packages/google-cloud-firestore/setup.py
1748+
- ^packages/google-cloud-firestore/README.rst
1749+
- ^packages/google-cloud-firestore/docs/_static
1750+
- ^packages/google-cloud-firestore/docs/_templates
1751+
- ^packages/google-cloud-firestore/docs/firestore_v1/firestore.rst
1752+
- ^packages/google-cloud-firestore/docs/firestore_admin_v1/firestore_admin.rst
1753+
- ^packages/google-cloud-firestore/docs/firestore_.*/services_.rst
1754+
- ^packages/google-cloud-firestore/docs/firestore_.*/types_.rst
1755+
- ^packages/google-cloud-firestore/docs/multiprocessing.rst
1756+
- ^packages/google-cloud-firestore/docs/conf.py
1757+
- ^packages/google-cloud-firestore/docs/index.rst
1758+
- ^packages/google-cloud-firestore/docs/README.rst
1759+
- ^packages/google-cloud-firestore/docs/summary_overview.md
1760+
tag_format: '{id}-v{version}'
16991761
- id: google-cloud-functions
17001762
version: 1.22.0
17011763
last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[run]
2+
branch = True
3+
4+
[report]
5+
show_missing = True
6+
omit =
7+
google/cloud/firestore_admin/__init__.py
8+
google/cloud/firestore_admin/gapic_version.py
9+
exclude_lines =
10+
# Re-enable the standard pragma
11+
pragma: NO COVER
12+
# Ignore debug-only repr
13+
def __repr__
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2025 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+
[flake8]
17+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333):
18+
# Resolve flake8 lint issues
19+
ignore = E203, E231, E266, E501, W503
20+
exclude =
21+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333):
22+
# Ensure that generated code passes flake8 lint
23+
**/gapic/**
24+
**/services/**
25+
**/types/**
26+
# Exclude Protobuf gencode
27+
*_pb2.py
28+
29+
# Standard linting exemptions.
30+
**/.nox/**
31+
__pycache__,
32+
.git,
33+
*.pyc,
34+
conf.py
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "firestore",
3+
"name_pretty": "Cloud Firestore API",
4+
"product_documentation": "https://cloud.google.com/firestore",
5+
"client_documentation": "https://cloud.google.com/python/docs/reference/firestore/latest",
6+
"issue_tracker": "https://issuetracker.google.com/savedsearches/5337669",
7+
"release_level": "stable",
8+
"language": "python",
9+
"library_type": "GAPIC_COMBO",
10+
"repo": "googleapis/google-cloud-python",
11+
"distribution_name": "google-cloud-firestore",
12+
"api_id": "firestore.googleapis.com",
13+
"requires_billing": true,
14+
"default_version": "v1",
15+
"codeowner_team": "@googleapis/api-firestore @googleapis/api-firestore-partners",
16+
"api_shortname": "firestore",
17+
"api_description": "is a fully-managed NoSQL document database for mobile, web, and server development from Firebase and Google Cloud Platform. It's backed by a multi-region replicated database that ensures once data is committed, it's durable even in the face of unexpected disasters. Not only that, but despite being a distributed database, it's also strongly consistent and offers seamless integration with other Firebase and Google Cloud Platform products, including Google Cloud Functions."
18+
}

0 commit comments

Comments
 (0)