Skip to content

Commit ec84f53

Browse files
authored
chore(migration): Migrate code from googleapis/python-access-context-manager into packages/google-cloud-access-context-manager (googleapis#13425)
See googleapis#10887. This PR should be merged with a merge-commit, not a squash-commit, in order to preserve the git history.
2 parents 7114a72 + a932d99 commit ec84f53

Some content is hidden

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

50 files changed

+3263
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
16+
deep-remove-regex:
17+
- /owl-bot-staging
18+
19+
deep-copy-regex:
20+
- source: /google/identity/accesscontextmanager/type/(accesscontextmanager-type-py)/(device_resources.*)
21+
dest: /owl-bot-staging/google-cloud-access-context-manager/$1/google/identity/accesscontextmanager/type/$2
22+
- source: /google/identity/accesscontextmanager/v1/(identity-accesscontextmanager-v1-py)/(.*access.*)
23+
dest: /owl-bot-staging/google-cloud-access-context-manager/$1/google/identity/accesscontextmanager/v1/$2
24+
- source: /google/identity/accesscontextmanager/v1/(identity-accesscontextmanager-v1-py)/(service_perimeter.*)
25+
dest: /owl-bot-staging/google-cloud-access-context-manager/$1/google/identity/accesscontextmanager/v1/$2
26+
27+
begin-after-commit-hash: d7c95df3ab1ea1b4c22a4542bad4924cc46d1388
28+
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: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Copyright 2024 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+
# See https://pre-commit.com for more information
16+
# See https://pre-commit.com/hooks.html for more hooks
17+
repos:
18+
- repo: https://github.com/pre-commit/pre-commit-hooks
19+
rev: v4.0.1
20+
hooks:
21+
- id: trailing-whitespace
22+
- id: end-of-file-fixer
23+
- id: check-yaml
24+
- repo: https://github.com/psf/black
25+
rev: 23.7.0
26+
hooks:
27+
- id: black
28+
- repo: https://github.com/pycqa/flake8
29+
rev: 6.1.0
30+
hooks:
31+
- id: flake8
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "accesscontextmanager",
3+
"name_pretty": "Access Context Manager",
4+
"client_documentation": "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-access-context-manager",
5+
"product_documentation": "https://cloud.google.com/access-context-manager/docs/overview",
6+
"issue_tracker": "https://github.com/googleapis/google-cloud-python/issues",
7+
"release_level": "preview",
8+
"language": "python",
9+
"library_type": "GAPIC_AUTO",
10+
"repo": "googleapis/google-cloud-python",
11+
"distribution_name": "google-cloud-access-context-manager",
12+
"default_version": "apiVersion",
13+
"codeowner_team": "",
14+
"api_shortname": "accesscontextmanager"
15+
}
Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
# Changelog
2+
3+
## [0.2.1](https://github.com/googleapis/python-access-context-manager/compare/v0.2.0...v0.2.1) (2024-08-14)
4+
5+
6+
### Bug Fixes
7+
8+
* **deps:** Require protobuf>=3.20.2, protobuf<6 ([ef6827b](https://github.com/googleapis/python-access-context-manager/commit/ef6827b2aa9519abf760ddd20cd9ea0f228c4272))
9+
* Regenerate pb2 files for compatibility with protobuf 5.x ([ef6827b](https://github.com/googleapis/python-access-context-manager/commit/ef6827b2aa9519abf760ddd20cd9ea0f228c4272))
10+
11+
## [0.2.0](https://github.com/googleapis/python-access-context-manager/compare/v0.1.16...v0.2.0) (2024-02-15)
12+
13+
14+
### Features
15+
16+
* Add `egress_policies` and `ingress_policies` fields to `ServicePerimeter` [f31ec7d](https://github.com/googleapis/googleapis/commit/f31ec7d4d1f27fd76594165ae41a344465e9f228) ([eabf473](https://github.com/googleapis/python-access-context-manager/commit/eabf4737124074f8107a0dac716cb68134edf721))
17+
* Add `google/identity/accesscontextmanager/v1/access_context_manager_pb2.py` [0b261de](https://github.com/googleapis/googleapis/commit/0b261def1cb4c61a9ddbb8bf14b103ce6add1bce) ([eabf473](https://github.com/googleapis/python-access-context-manager/commit/eabf4737124074f8107a0dac716cb68134edf721))
18+
* Add support for Python 3.12 ([#188](https://github.com/googleapis/python-access-context-manager/issues/188)) ([c379c57](https://github.com/googleapis/python-access-context-manager/commit/c379c573573207ef6e6f355aa569e19149ef2824))
19+
* Introduce compatibility with native namespace packages ([#187](https://github.com/googleapis/python-access-context-manager/issues/187)) ([8ffdcd3](https://github.com/googleapis/python-access-context-manager/commit/8ffdcd31ecc4a4b8e18b8534257ff02c391339f7))
20+
21+
22+
### Bug Fixes
23+
24+
* **deps:** Require google-api-core >= 1.34.1 ([eabf473](https://github.com/googleapis/python-access-context-manager/commit/eabf4737124074f8107a0dac716cb68134edf721))
25+
* Migrate to native namespace packages ([#193](https://github.com/googleapis/python-access-context-manager/issues/193)) ([5840132](https://github.com/googleapis/python-access-context-manager/commit/58401328a92f418cb43492459971a7f2b7d712f2))
26+
27+
## [0.1.16](https://github.com/googleapis/python-access-context-manager/compare/v0.1.15...v0.1.16) (2023-02-27)
28+
29+
30+
### Bug Fixes
31+
32+
* **deps:** Require google-api-core>=1.34.0,>=2.11.0 ([a835c8e](https://github.com/googleapis/python-access-context-manager/commit/a835c8ef404c56b06fd446ee177bcb59daf0353a))
33+
34+
## [0.1.15](https://github.com/googleapis/python-access-context-manager/compare/v0.1.14...v0.1.15) (2022-12-15)
35+
36+
37+
### Bug Fixes
38+
39+
* **deps:** Require protobuf >=3.19.5 ([09d0f03](https://github.com/googleapis/python-access-context-manager/commit/09d0f0342ef60981a57458228435626d69129f70))
40+
41+
## [0.1.14](https://github.com/googleapis/python-access-context-manager/compare/v0.1.13...v0.1.14) (2022-08-12)
42+
43+
44+
### Bug Fixes
45+
46+
* **deps:** allow protobuf < 5.0.0 ([#138](https://github.com/googleapis/python-access-context-manager/issues/138)) ([3aec32e](https://github.com/googleapis/python-access-context-manager/commit/3aec32e555659b0581afdc2c2d2ed67c7de26c0d))
47+
48+
## [0.1.13](https://github.com/googleapis/python-access-context-manager/compare/v0.1.12...v0.1.13) (2022-07-18)
49+
50+
51+
### Bug Fixes
52+
53+
* require python 3.7+ ([#134](https://github.com/googleapis/python-access-context-manager/issues/134)) ([27a1467](https://github.com/googleapis/python-access-context-manager/commit/27a1467e68d440b7c2a73a6b5dbcfe6bd199dd05))
54+
* require google-api-core >=1.32.0, >=2.8.0
55+
56+
57+
## [0.1.12](https://github.com/googleapis/python-access-context-manager/compare/v0.1.11...v0.1.12) (2022-06-06)
58+
59+
60+
### Documentation
61+
62+
* fix changelog header to consistent size ([#128](https://github.com/googleapis/python-access-context-manager/issues/128)) ([e295ae6](https://github.com/googleapis/python-access-context-manager/commit/e295ae6b031d86543c54562f1011560272753898))
63+
64+
## [0.1.11](https://github.com/googleapis/python-access-context-manager/compare/v0.1.10...v0.1.11) (2022-05-26)
65+
66+
67+
### Bug Fixes
68+
69+
* **deps:** require protobuf>= 3.12.0, <4.0.0dev ([#124](https://github.com/googleapis/python-access-context-manager/issues/124)) ([5c7837e](https://github.com/googleapis/python-access-context-manager/commit/5c7837eca6e49f465df306275f96ebece076364b))
70+
71+
## [0.1.10](https://github.com/googleapis/python-access-context-manager/compare/v0.1.9...v0.1.10) (2022-03-04)
72+
73+
74+
### Bug Fixes
75+
76+
* **deps:** require google-api-core>=1.31.5, >=2.3.2 ([#110](https://github.com/googleapis/python-access-context-manager/issues/110)) ([386dc8d](https://github.com/googleapis/python-access-context-manager/commit/386dc8dccbfa4ffee275ae92543b83e9dfc6f05e))
77+
* regenerate pb2 files ([#108](https://github.com/googleapis/python-access-context-manager/issues/108)) ([f3ae216](https://github.com/googleapis/python-access-context-manager/commit/f3ae216524db604166447ccec2d646fb038ce3bb))
78+
79+
## [0.1.9](https://www.github.com/googleapis/python-access-context-manager/compare/v0.1.8...v0.1.9) (2021-11-12)
80+
81+
82+
### Bug Fixes
83+
84+
* **deps:** require google-api-core >= 1.28.0 ([8845855](https://www.github.com/googleapis/python-access-context-manager/commit/8845855497454dbf62edd65dee958057a959db41))
85+
86+
## [0.1.8](https://www.github.com/googleapis/python-access-context-manager/compare/v0.1.7...v0.1.8) (2021-10-04)
87+
88+
89+
### Bug Fixes
90+
91+
* update pin on 'google-api-core' to allow current versions ([#89](https://www.github.com/googleapis/python-access-context-manager/issues/89)) ([1f7b73b](https://www.github.com/googleapis/python-access-context-manager/commit/1f7b73b947011999b82976027ade8218d58ac788))
92+
93+
## [0.1.7](https://www.github.com/googleapis/python-access-context-manager/compare/v0.1.6...v0.1.7) (2021-08-23)
94+
95+
96+
### Documentation
97+
98+
* migrate to main branch ([#76](https://www.github.com/googleapis/python-access-context-manager/issues/76)) ([4f36a1d](https://www.github.com/googleapis/python-access-context-manager/commit/4f36a1dad07554ef676c7b01a9f1bd0e132bdb01))
99+
100+
## [0.1.6](https://www.github.com/googleapis/python-access-context-manager/compare/v0.1.5...v0.1.6) (2021-07-27)
101+
102+
103+
### Documentation
104+
105+
* add Samples section to CONTRIBUTING.rst ([#65](https://www.github.com/googleapis/python-access-context-manager/issues/65)) ([6091f99](https://www.github.com/googleapis/python-access-context-manager/commit/6091f999347e91f24842030bf1fb2e528cd4a6b5))
106+
107+
108+
### Miscellaneous Chores
109+
110+
* release as 0.1.6 ([#68](https://www.github.com/googleapis/python-access-context-manager/issues/68)) ([647e651](https://www.github.com/googleapis/python-access-context-manager/commit/647e6513cef26eabb593c6f3e7a41780bc20648c))
111+
112+
## [0.1.5](https://www.github.com/googleapis/python-access-context-manager/compare/v0.1.4...v0.1.5) (2021-07-07)
113+
114+
115+
### Bug Fixes
116+
117+
* require google-api-core >= 1.26.0 ([#57](https://www.github.com/googleapis/python-access-context-manager/issues/57)) ([12ddfa5](https://www.github.com/googleapis/python-access-context-manager/commit/12ddfa58a5c4951da5753858701a83b297d38be2))
118+
119+
## [0.1.4](https://www.github.com/googleapis/python-access-context-manager/compare/v0.1.3...v0.1.4) (2021-06-22)
120+
121+
122+
### Bug Fixes
123+
124+
* **deps:** require python 3.6 ([#46](https://www.github.com/googleapis/python-access-context-manager/issues/46)) ([3a4c5de](https://www.github.com/googleapis/python-access-context-manager/commit/3a4c5def322acc5bd16bdbeafef6d3235b5eadab))
125+
126+
127+
### Documentation
128+
129+
* omit mention of Python 2.7 in 'CONTRIBUTING.rst' ([#1127](https://www.github.com/googleapis/python-access-context-manager/issues/1127)) ([#44](https://www.github.com/googleapis/python-access-context-manager/issues/44)) ([5bd362e](https://www.github.com/googleapis/python-access-context-manager/commit/5bd362e10d1fd84f31bca28345560dbb9f71437f))
130+
131+
## [0.1.3](https://www.github.com/googleapis/python-access-context-manager/compare/v0.1.2...v0.1.3) (2021-04-14)
132+
133+
134+
### Bug Fixes
135+
136+
* add create_key to protos ([#25](https://www.github.com/googleapis/python-access-context-manager/issues/25)) ([166c54c](https://www.github.com/googleapis/python-access-context-manager/commit/166c54cd73d2cfac6d45df2a676389f252fd73e3))
137+
138+
## [0.1.2](https://www.github.com/googleapis/python-access-context-manager/compare/v0.1.1...v0.1.2) (2020-05-08)
139+
140+
141+
### Bug Fixes
142+
143+
* add missing __init__.py ([5b0036f](https://www.github.com/googleapis/python-access-context-manager/commit/5b0036f6155ea90a7501076487cb048ce1640e0e))
144+
145+
## [0.1.1](https://www.github.com/googleapis/python-access-context-manager/compare/v0.1.0...v0.1.1) (2020-05-08)
146+
147+
148+
### Bug Fixes
149+
150+
* fix setup.py ([b2facea](https://www.github.com/googleapis/python-access-context-manager/commit/b2faceabc0aab7a3e1a590d71fef3ede1113a08b))
151+
152+
## 0.1.0 (2020-05-07)
153+
154+
155+
### Features
156+
157+
* generate v1 ([a13e3de](https://www.github.com/googleapis/python-access-context-manager/commit/a13e3de91ee249d6d0640977315881f3bef0c844))

0 commit comments

Comments
 (0)