Skip to content

Commit

Permalink
feat: Add client libraries for v1 (#11226)
Browse files Browse the repository at this point in the history
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Jun 3, 2023
1 parent b2d9eed commit 08b0fe0
Show file tree
Hide file tree
Showing 41 changed files with 10,596 additions and 17 deletions.
12 changes: 0 additions & 12 deletions packages/google-maps-mapsplatformdatasets/CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -239,18 +239,6 @@ Supported versions can be found in our ``noxfile.py`` `config`_.
.. _config: https://github.com/googleapis/google-cloud-python/blob/main/noxfile.py


We also explicitly decided to support Python 3 beginning with version 3.7.
Reasons for this include:

- Encouraging use of newest versions of Python 3
- Taking the lead of `prominent`_ open-source `projects`_
- `Unicode literal support`_ which allows for a cleaner codebase that
works in both Python 2 and Python 3

.. _prominent: https://docs.djangoproject.com/en/1.9/faq/install/#what-python-version-can-i-use-with-django
.. _projects: http://flask.pocoo.org/docs/0.10/python3/
.. _Unicode literal support: https://www.python.org/dev/peps/pep-0414/

**********
Versioning
**********
Expand Down
11 changes: 11 additions & 0 deletions packages/google-maps-mapsplatformdatasets/docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

.. include:: multiprocessing.rst

This package includes clients for multiple versions of Maps Platform Datasets API.
By default, you will get version ``mapsplatformdatasets_v1``.


API Reference
-------------
.. toctree::
:maxdepth: 2

mapsplatformdatasets_v1/services
mapsplatformdatasets_v1/types

API Reference
-------------
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
MapsPlatformDatasets
--------------------------------------

.. automodule:: google.maps.mapsplatformdatasets_v1.services.maps_platform_datasets
:members:
:inherited-members:

.. automodule:: google.maps.mapsplatformdatasets_v1.services.maps_platform_datasets.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Services for Google Maps Mapsplatformdatasets v1 API
====================================================
.. toctree::
:maxdepth: 2

maps_platform_datasets
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Types for Google Maps Mapsplatformdatasets v1 API
=================================================

.. automodule:: google.maps.mapsplatformdatasets_v1.types
:members:
:show-inheritance:
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

__version__ = "0.2.1" # {x-release-please-version}
__version__ = "0.1.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from google.maps.mapsplatformdatasets_v1 import gapic_version as package_version

__version__ = package_version.__version__


from .services.maps_platform_datasets import (
MapsPlatformDatasetsAsyncClient,
MapsPlatformDatasetsClient,
)
from .types.data_source import FileFormat, GcsSource, LocalFileSource
from .types.dataset import Dataset, Status, Usage
from .types.maps_platform_datasets import (
CreateDatasetRequest,
DeleteDatasetRequest,
GetDatasetRequest,
ListDatasetsRequest,
ListDatasetsResponse,
UpdateDatasetMetadataRequest,
)

__all__ = (
"MapsPlatformDatasetsAsyncClient",
"CreateDatasetRequest",
"Dataset",
"DeleteDatasetRequest",
"FileFormat",
"GcsSource",
"GetDatasetRequest",
"ListDatasetsRequest",
"ListDatasetsResponse",
"LocalFileSource",
"MapsPlatformDatasetsClient",
"Status",
"UpdateDatasetMetadataRequest",
"Usage",
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.maps.mapsplatformdatasets_v1",
"protoPackage": "google.maps.mapsplatformdatasets.v1",
"schema": "1.0",
"services": {
"MapsPlatformDatasets": {
"clients": {
"grpc": {
"libraryClient": "MapsPlatformDatasetsClient",
"rpcs": {
"CreateDataset": {
"methods": [
"create_dataset"
]
},
"DeleteDataset": {
"methods": [
"delete_dataset"
]
},
"GetDataset": {
"methods": [
"get_dataset"
]
},
"ListDatasets": {
"methods": [
"list_datasets"
]
},
"UpdateDatasetMetadata": {
"methods": [
"update_dataset_metadata"
]
}
}
},
"grpc-async": {
"libraryClient": "MapsPlatformDatasetsAsyncClient",
"rpcs": {
"CreateDataset": {
"methods": [
"create_dataset"
]
},
"DeleteDataset": {
"methods": [
"delete_dataset"
]
},
"GetDataset": {
"methods": [
"get_dataset"
]
},
"ListDatasets": {
"methods": [
"list_datasets"
]
},
"UpdateDatasetMetadata": {
"methods": [
"update_dataset_metadata"
]
}
}
},
"rest": {
"libraryClient": "MapsPlatformDatasetsClient",
"rpcs": {
"CreateDataset": {
"methods": [
"create_dataset"
]
},
"DeleteDataset": {
"methods": [
"delete_dataset"
]
},
"GetDataset": {
"methods": [
"get_dataset"
]
},
"ListDatasets": {
"methods": [
"list_datasets"
]
},
"UpdateDatasetMetadata": {
"methods": [
"update_dataset_metadata"
]
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.1.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Marker file for PEP 561.
# The google-maps-mapsplatformdatasets package uses inline types.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from .async_client import MapsPlatformDatasetsAsyncClient
from .client import MapsPlatformDatasetsClient

__all__ = (
"MapsPlatformDatasetsClient",
"MapsPlatformDatasetsAsyncClient",
)

0 comments on commit 08b0fe0

Please sign in to comment.