Skip to content

Commit f4499fb

Browse files
authored
chore(migration): Migrate code from googleapis/python-org-policy into packages/google-cloud-org-policy (googleapis#13428)
See googleapis#10924. This PR should be merged with a merge-commit, not a squash-commit, in order to preserve the git history.
2 parents 324e421 + b29ea8e commit f4499fb

Some content is hidden

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

78 files changed

+25978
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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/cloud/orgpolicy/(v1)/.*-py
21+
dest: /owl-bot-staging/google-cloud-org-policy/$1/google/cloud/orgpolicy/v1/$2
22+
- source: /google/cloud/orgpolicy/(v2)/.*-py
23+
dest: /owl-bot-staging/google-cloud-org-policy/$1
24+
25+
begin-after-commit-hash: b06c9034cfcbce180ba732d03be6526e5c8ea1bc
26+
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/orgpolicy/__init__.py
8+
google/cloud/orgpolicy/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: 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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "1.12.0"
3+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "orgpolicy",
3+
"name_pretty": "Organization Policy",
4+
"api_description": "The Organization Policy API allows users to configure governance rules on their GCP resources across the Cloud Resource Hierarchy.",
5+
"product_documentation": "https://cloud.google.com/resource-manager/docs/organization-policy/overview",
6+
"client_documentation": "https://cloud.google.com/python/docs/reference/orgpolicy/latest",
7+
"issue_tracker": "",
8+
"release_level": "stable",
9+
"language": "python",
10+
"library_type": "GAPIC_AUTO",
11+
"repo": "googleapis/google-cloud-python",
12+
"distribution_name": "google-cloud-org-policy",
13+
"api_id": "orgpolicy.googleapis.com",
14+
"default_version": "v2",
15+
"codeowner_team": "",
16+
"api_shortname": "orgpolicy"
17+
}

0 commit comments

Comments
 (0)