Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 08b0fe0

Browse filesBrowse files
feat: Add client libraries for v1 (#11226)
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent b2d9eed commit 08b0fe0
Copy full SHA for 08b0fe0

File tree

Expand file treeCollapse file tree

41 files changed

+10596
-17
lines changed
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

41 files changed

+10596
-17
lines changed

‎packages/google-maps-mapsplatformdatasets/CONTRIBUTING.rst

Copy file name to clipboardExpand all lines: packages/google-maps-mapsplatformdatasets/CONTRIBUTING.rst
-12Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -239,18 +239,6 @@ Supported versions can be found in our ``noxfile.py`` `config`_.
239239
.. _config: https://github.com/googleapis/google-cloud-python/blob/main/noxfile.py
240240

241241

242-
We also explicitly decided to support Python 3 beginning with version 3.7.
243-
Reasons for this include:
244-
245-
- Encouraging use of newest versions of Python 3
246-
- Taking the lead of `prominent`_ open-source `projects`_
247-
- `Unicode literal support`_ which allows for a cleaner codebase that
248-
works in both Python 2 and Python 3
249-
250-
.. _prominent: https://docs.djangoproject.com/en/1.9/faq/install/#what-python-version-can-i-use-with-django
251-
.. _projects: http://flask.pocoo.org/docs/0.10/python3/
252-
.. _Unicode literal support: https://www.python.org/dev/peps/pep-0414/
253-
254242
**********
255243
Versioning
256244
**********

‎packages/google-maps-mapsplatformdatasets/docs/index.rst

Copy file name to clipboardExpand all lines: packages/google-maps-mapsplatformdatasets/docs/index.rst
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
.. include:: multiprocessing.rst
44

5+
This package includes clients for multiple versions of Maps Platform Datasets API.
6+
By default, you will get version ``mapsplatformdatasets_v1``.
7+
8+
9+
API Reference
10+
-------------
11+
.. toctree::
12+
:maxdepth: 2
13+
14+
mapsplatformdatasets_v1/services
15+
mapsplatformdatasets_v1/types
516

617
API Reference
718
-------------
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
MapsPlatformDatasets
2+
--------------------------------------
3+
4+
.. automodule:: google.maps.mapsplatformdatasets_v1.services.maps_platform_datasets
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.maps.mapsplatformdatasets_v1.services.maps_platform_datasets.pagers
9+
:members:
10+
:inherited-members:
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Services for Google Maps Mapsplatformdatasets v1 API
2+
====================================================
3+
.. toctree::
4+
:maxdepth: 2
5+
6+
maps_platform_datasets
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Types for Google Maps Mapsplatformdatasets v1 API
2+
=================================================
3+
4+
.. automodule:: google.maps.mapsplatformdatasets_v1.types
5+
:members:
6+
:show-inheritance:

‎packages/google-maps-mapsplatformdatasets/google/maps/mapsplatformdatasets/gapic_version.py

Copy file name to clipboardExpand all lines: packages/google-maps-mapsplatformdatasets/google/maps/mapsplatformdatasets/gapic_version.py
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
17-
__version__ = "0.2.1" # {x-release-please-version}
16+
__version__ = "0.1.0" # {x-release-please-version}
+51Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2022 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 google.maps.mapsplatformdatasets_v1 import gapic_version as package_version
17+
18+
__version__ = package_version.__version__
19+
20+
21+
from .services.maps_platform_datasets import (
22+
MapsPlatformDatasetsAsyncClient,
23+
MapsPlatformDatasetsClient,
24+
)
25+
from .types.data_source import FileFormat, GcsSource, LocalFileSource
26+
from .types.dataset import Dataset, Status, Usage
27+
from .types.maps_platform_datasets import (
28+
CreateDatasetRequest,
29+
DeleteDatasetRequest,
30+
GetDatasetRequest,
31+
ListDatasetsRequest,
32+
ListDatasetsResponse,
33+
UpdateDatasetMetadataRequest,
34+
)
35+
36+
__all__ = (
37+
"MapsPlatformDatasetsAsyncClient",
38+
"CreateDatasetRequest",
39+
"Dataset",
40+
"DeleteDatasetRequest",
41+
"FileFormat",
42+
"GcsSource",
43+
"GetDatasetRequest",
44+
"ListDatasetsRequest",
45+
"ListDatasetsResponse",
46+
"LocalFileSource",
47+
"MapsPlatformDatasetsClient",
48+
"Status",
49+
"UpdateDatasetMetadataRequest",
50+
"Usage",
51+
)
+103Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
{
2+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
3+
"language": "python",
4+
"libraryPackage": "google.maps.mapsplatformdatasets_v1",
5+
"protoPackage": "google.maps.mapsplatformdatasets.v1",
6+
"schema": "1.0",
7+
"services": {
8+
"MapsPlatformDatasets": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "MapsPlatformDatasetsClient",
12+
"rpcs": {
13+
"CreateDataset": {
14+
"methods": [
15+
"create_dataset"
16+
]
17+
},
18+
"DeleteDataset": {
19+
"methods": [
20+
"delete_dataset"
21+
]
22+
},
23+
"GetDataset": {
24+
"methods": [
25+
"get_dataset"
26+
]
27+
},
28+
"ListDatasets": {
29+
"methods": [
30+
"list_datasets"
31+
]
32+
},
33+
"UpdateDatasetMetadata": {
34+
"methods": [
35+
"update_dataset_metadata"
36+
]
37+
}
38+
}
39+
},
40+
"grpc-async": {
41+
"libraryClient": "MapsPlatformDatasetsAsyncClient",
42+
"rpcs": {
43+
"CreateDataset": {
44+
"methods": [
45+
"create_dataset"
46+
]
47+
},
48+
"DeleteDataset": {
49+
"methods": [
50+
"delete_dataset"
51+
]
52+
},
53+
"GetDataset": {
54+
"methods": [
55+
"get_dataset"
56+
]
57+
},
58+
"ListDatasets": {
59+
"methods": [
60+
"list_datasets"
61+
]
62+
},
63+
"UpdateDatasetMetadata": {
64+
"methods": [
65+
"update_dataset_metadata"
66+
]
67+
}
68+
}
69+
},
70+
"rest": {
71+
"libraryClient": "MapsPlatformDatasetsClient",
72+
"rpcs": {
73+
"CreateDataset": {
74+
"methods": [
75+
"create_dataset"
76+
]
77+
},
78+
"DeleteDataset": {
79+
"methods": [
80+
"delete_dataset"
81+
]
82+
},
83+
"GetDataset": {
84+
"methods": [
85+
"get_dataset"
86+
]
87+
},
88+
"ListDatasets": {
89+
"methods": [
90+
"list_datasets"
91+
]
92+
},
93+
"UpdateDatasetMetadata": {
94+
"methods": [
95+
"update_dataset_metadata"
96+
]
97+
}
98+
}
99+
}
100+
}
101+
}
102+
}
103+
}
+16Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2022 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+
__version__ = "0.1.0" # {x-release-please-version}
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Marker file for PEP 561.
2+
# The google-maps-mapsplatformdatasets package uses inline types.
+15Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2022 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+
#
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2022 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 .async_client import MapsPlatformDatasetsAsyncClient
17+
from .client import MapsPlatformDatasetsClient
18+
19+
__all__ = (
20+
"MapsPlatformDatasetsClient",
21+
"MapsPlatformDatasetsAsyncClient",
22+
)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.