Skip to content

Commit a6b4031

Browse files
feat: remove note_path and occurence_path (via synth) (#7)
1 parent 4939773 commit a6b4031

File tree

11 files changed

+92
-61
lines changed

11 files changed

+92
-61
lines changed

packages/google-cloud-containeranalysis/.coveragerc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2020 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+
117
# Generated by synthtool. DO NOT EDIT!
218
[run]
319
branch = True

packages/google-cloud-containeranalysis/.flake8

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2020 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+
117
# Generated by synthtool. DO NOT EDIT!
218
[flake8]
319
ignore = E203, E266, E501, W503

packages/google-cloud-containeranalysis/.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ Thanks for stopping by to let us know something could be better!
1111
Please run down the following list and make sure you've tried the usual "quick fixes":
1212

1313
- Search the issues already opened: https://github.com/googleapis/python-containeranalysis/issues
14-
- Search the issues on our "catch-all" repository: https://github.com/googleapis/google-cloud-python
15-
- Search StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform+python
14+
- Search StackOverflow: https://stackoverflow.com/questions/tagged/google-cloud-platform+python
1615

1716
If you are still having issues, please be sure to include as much information as possible:
1817

packages/google-cloud-containeranalysis/CONTRIBUTING.rst

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In order to add a feature:
2222
documentation.
2323

2424
- The feature must work fully on the following CPython versions: 2.7,
25-
3.5, 3.6, and 3.7 on both UNIX and Windows.
25+
3.5, 3.6, 3.7 and 3.8 on both UNIX and Windows.
2626

2727
- The feature must not add unnecessary dependencies (where
2828
"unnecessary" is of course subjective, but new dependencies should
@@ -214,26 +214,18 @@ We support:
214214
- `Python 3.5`_
215215
- `Python 3.6`_
216216
- `Python 3.7`_
217+
- `Python 3.8`_
217218

218219
.. _Python 3.5: https://docs.python.org/3.5/
219220
.. _Python 3.6: https://docs.python.org/3.6/
220221
.. _Python 3.7: https://docs.python.org/3.7/
222+
.. _Python 3.8: https://docs.python.org/3.8/
221223

222224

223225
Supported versions can be found in our ``noxfile.py`` `config`_.
224226

225227
.. _config: https://github.com/googleapis/python-containeranalysis/blob/master/noxfile.py
226228

227-
We explicitly decided not to support `Python 2.5`_ due to `decreased usage`_
228-
and lack of continuous integration `support`_.
229-
230-
.. _Python 2.5: https://docs.python.org/2.5/
231-
.. _decreased usage: https://caremad.io/2013/10/a-look-at-pypi-downloads/
232-
.. _support: https://blog.travis-ci.com/2013-11-18-upcoming-build-environment-updates/
233-
234-
We have `dropped 2.6`_ as a supported version as well since Python 2.6 is no
235-
longer supported by the core development team.
236-
237229
Python 2.7 support is deprecated. All code changes should maintain Python 2.7 compatibility until January 1, 2020.
238230

239231
We also explicitly decided to support Python 3 beginning with version
@@ -247,7 +239,6 @@ We also explicitly decided to support Python 3 beginning with version
247239
.. _prominent: https://docs.djangoproject.com/en/1.9/faq/install/#what-python-version-can-i-use-with-django
248240
.. _projects: http://flask.pocoo.org/docs/0.10/python3/
249241
.. _Unicode literal support: https://www.python.org/dev/peps/pep-0414/
250-
.. _dropped 2.6: https://github.com/googleapis/google-cloud-python/issues/995
251242

252243
**********
253244
Versioning

packages/google-cloud-containeranalysis/MANIFEST.in

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2020 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+
117
# Generated by synthtool. DO NOT EDIT!
218
include README.rst LICENSE
319
recursive-include google *.json *.proto

packages/google-cloud-containeranalysis/google/cloud/devtools/containeranalysis_v1/gapic/container_analysis_client.py

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import google.api_core.gapic_v1.method
2727
import google.api_core.gapic_v1.routing_header
2828
import google.api_core.grpc_helpers
29-
import google.api_core.path_template
3029
import grpc
3130

3231
from google.cloud.devtools.containeranalysis_v1.gapic import (
@@ -94,22 +93,6 @@ def from_service_account_file(cls, filename, *args, **kwargs):
9493

9594
from_service_account_json = from_service_account_file
9695

97-
@classmethod
98-
def note_path(cls, project, note):
99-
"""Return a fully-qualified note string."""
100-
return google.api_core.path_template.expand(
101-
"projects/{project}/notes/{note}", project=project, note=note
102-
)
103-
104-
@classmethod
105-
def occurrence_path(cls, project, occurrence):
106-
"""Return a fully-qualified occurrence string."""
107-
return google.api_core.path_template.expand(
108-
"projects/{project}/occurrences/{occurrence}",
109-
project=project,
110-
occurrence=occurrence,
111-
)
112-
11396
def __init__(
11497
self,
11598
transport=None,
@@ -258,7 +241,8 @@ def set_iam_policy(
258241
>>>
259242
>>> client = containeranalysis_v1.ContainerAnalysisClient()
260243
>>>
261-
>>> resource = client.note_path('[PROJECT]', '[NOTE]')
244+
>>> # TODO: Initialize `resource`:
245+
>>> resource = ''
262246
>>>
263247
>>> # TODO: Initialize `policy`:
264248
>>> policy = {}
@@ -346,7 +330,8 @@ def get_iam_policy(
346330
>>>
347331
>>> client = containeranalysis_v1.ContainerAnalysisClient()
348332
>>>
349-
>>> resource = client.note_path('[PROJECT]', '[NOTE]')
333+
>>> # TODO: Initialize `resource`:
334+
>>> resource = ''
350335
>>>
351336
>>> response = client.get_iam_policy(resource)
352337
@@ -430,7 +415,8 @@ def test_iam_permissions(
430415
>>>
431416
>>> client = containeranalysis_v1.ContainerAnalysisClient()
432417
>>>
433-
>>> resource = client.note_path('[PROJECT]', '[NOTE]')
418+
>>> # TODO: Initialize `resource`:
419+
>>> resource = ''
434420
>>>
435421
>>> # TODO: Initialize `permissions`:
436422
>>> permissions = []

packages/google-cloud-containeranalysis/google/cloud/devtools/containeranalysis_v1/gapic/container_analysis_client_config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@
1818
},
1919
"methods": {
2020
"SetIamPolicy": {
21-
"timeout_millis": 30000,
21+
"timeout_millis": 60000,
2222
"retry_codes_name": "non_idempotent",
2323
"retry_params_name": "default",
2424
},
2525
"GetIamPolicy": {
26-
"timeout_millis": 30000,
26+
"timeout_millis": 60000,
2727
"retry_codes_name": "non_idempotent",
2828
"retry_params_name": "default",
2929
},
3030
"TestIamPermissions": {
31-
"timeout_millis": 30000,
31+
"timeout_millis": 60000,
3232
"retry_codes_name": "non_idempotent",
3333
"retry_params_name": "default",
3434
},

packages/google-cloud-containeranalysis/noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def system(session):
111111
# Install all test dependencies, then install this package into the
112112
# virtualenv's dist-packages.
113113
session.install("mock", "pytest")
114-
114+
session.install("git+https://github.com/googleapis/python-test-utils")
115115
session.install("-e", ".")
116116

117117
# Run py.test against the system tests.
@@ -139,7 +139,7 @@ def docs(session):
139139
"""Build the docs for this library."""
140140

141141
session.install("-e", ".")
142-
session.install("sphinx", "alabaster", "recommonmark")
142+
session.install("sphinx<3.0.0", "alabaster", "recommonmark")
143143

144144
shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
145145
session.run(
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2020 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+
117
# Generated by synthtool. DO NOT EDIT!
218
[bdist_wheel]
319
universal = 1

0 commit comments

Comments
 (0)