Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Commit cd828ec

Browse files
feat: add binaryauthorization v1 (#74)
Closes #12 - [ ] Regenerate this pull request now. Committer: @alexander-fenster PiperOrigin-RevId: 398308923 Source-Link: googleapis/googleapis@a3dccab Source-Link: https://github.com/googleapis/googleapis-gen/commit/d475ce18d50c90ecdc27e425fdd498b26912266d Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDQ3NWNlMThkNTBjOTBlY2RjMjdlNDI1ZmRkNDk4YjI2OTEyMjY2ZCJ9 fix: require grafeas>=1.1.2, proto-plus>=1.15.0 docs: fix broken links in README feat: set binaryauthorization_v1 as the default version
1 parent 6e77950 commit cd828ec

Some content is hidden

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

45 files changed

+12671
-93
lines changed

README.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ policy control for images deployed to Kubernetes Engine clusters.
1616
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-binary-authorization.svg
1717
:target: https://pypi.org/project/google-cloud-binary-authorization/
1818

19-
.. _Binary Authorization API: https://cloud.google.com/binaryauthorization
20-
.. _Client Library Documentation: https://googleapis.github.io/google-cloud-python/latest/binaryauthorization/usage.html
21-
.. _Product Documentation: https://cloud.google.com/binaryauthorization
19+
.. _Binary Authorization API: https://cloud.google.com/binary-authorization
20+
.. _Client Library Documentation: https://googleapis.dev/python/binaryauthorization/latest
21+
.. _Product Documentation: https://cloud.google.com/binary-authorization
2222

2323
Quick Start
2424
-----------
@@ -32,7 +32,7 @@ In order to use this library, you first need to go through the following steps:
3232

3333
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
3434
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
35-
.. _Enable the Binary Authorization API.: https://cloud.google.com/binaryauthorization
35+
.. _Enable the Binary Authorization API.: https://cloud.google.com/binary-authorization
3636
.. _Setup Authentication.: https://googleapis.github.io/google-cloud-python/latest/core/auth.html
3737

3838
Installation
@@ -80,5 +80,5 @@ Next Steps
8080
- View this `README`_ to see the full list of Cloud
8181
APIs that we cover.
8282

83-
.. _Binary Authorization API Product documentation: https://cloud.google.com/binaryauthorization
84-
.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
83+
.. _Binary Authorization API Product documentation: https://cloud.google.com/binary-authorization
84+
.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
BinauthzManagementServiceV1
2+
---------------------------------------------
3+
4+
.. automodule:: google.cloud.binaryauthorization_v1.services.binauthz_management_service_v1
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.binaryauthorization_v1.services.binauthz_management_service_v1.pagers
9+
:members:
10+
:inherited-members:
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Services for Google Cloud Binaryauthorization v1 API
2+
====================================================
3+
.. toctree::
4+
:maxdepth: 2
5+
6+
binauthz_management_service_v1
7+
system_policy_v1
8+
validation_helper_v1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
SystemPolicyV1
2+
--------------------------------
3+
4+
.. automodule:: google.cloud.binaryauthorization_v1.services.system_policy_v1
5+
:members:
6+
:inherited-members:

docs/binaryauthorization_v1/types.rst

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Types for Google Cloud Binaryauthorization v1 API
2+
=================================================
3+
4+
.. automodule:: google.cloud.binaryauthorization_v1.types
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ValidationHelperV1
2+
------------------------------------
3+
4+
.. automodule:: google.cloud.binaryauthorization_v1.services.validation_helper_v1
5+
:members:
6+
:inherited-members:

docs/index.rst

+10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
.. include:: multiprocessing.rst
44

5+
This package includes clients for multiple versions of Binary Authorization.
6+
By default, you will get version ``v1``.
7+
8+
API Reference
9+
-------------
10+
.. toctree::
11+
:maxdepth: 2
12+
13+
binaryauthorization_v1/services
14+
binaryauthorization_v1/types
515

616
API Reference
717
-------------

google/cloud/binaryauthorization/__init__.py

+47-27
Original file line numberDiff line numberDiff line change
@@ -14,53 +14,73 @@
1414
# limitations under the License.
1515
#
1616

17-
from google.cloud.binaryauthorization_v1beta1.services.binauthz_management_service_v1_beta1.client import (
18-
BinauthzManagementServiceV1Beta1Client,
17+
from google.cloud.binaryauthorization_v1.services.binauthz_management_service_v1.client import (
18+
BinauthzManagementServiceV1Client,
1919
)
20-
from google.cloud.binaryauthorization_v1beta1.services.binauthz_management_service_v1_beta1.async_client import (
21-
BinauthzManagementServiceV1Beta1AsyncClient,
20+
from google.cloud.binaryauthorization_v1.services.binauthz_management_service_v1.async_client import (
21+
BinauthzManagementServiceV1AsyncClient,
2222
)
23-
24-
from google.cloud.binaryauthorization_v1beta1.types.continuous_validation_logging import (
25-
ContinuousValidationEvent,
23+
from google.cloud.binaryauthorization_v1.services.system_policy_v1.client import (
24+
SystemPolicyV1Client,
25+
)
26+
from google.cloud.binaryauthorization_v1.services.system_policy_v1.async_client import (
27+
SystemPolicyV1AsyncClient,
28+
)
29+
from google.cloud.binaryauthorization_v1.services.validation_helper_v1.client import (
30+
ValidationHelperV1Client,
2631
)
27-
from google.cloud.binaryauthorization_v1beta1.types.resources import AdmissionRule
28-
from google.cloud.binaryauthorization_v1beta1.types.resources import (
32+
from google.cloud.binaryauthorization_v1.services.validation_helper_v1.async_client import (
33+
ValidationHelperV1AsyncClient,
34+
)
35+
36+
from google.cloud.binaryauthorization_v1.types.resources import AdmissionRule
37+
from google.cloud.binaryauthorization_v1.types.resources import (
2938
AdmissionWhitelistPattern,
3039
)
31-
from google.cloud.binaryauthorization_v1beta1.types.resources import Attestor
32-
from google.cloud.binaryauthorization_v1beta1.types.resources import AttestorPublicKey
33-
from google.cloud.binaryauthorization_v1beta1.types.resources import PkixPublicKey
34-
from google.cloud.binaryauthorization_v1beta1.types.resources import Policy
35-
from google.cloud.binaryauthorization_v1beta1.types.resources import (
36-
UserOwnedDrydockNote,
40+
from google.cloud.binaryauthorization_v1.types.resources import Attestor
41+
from google.cloud.binaryauthorization_v1.types.resources import AttestorPublicKey
42+
from google.cloud.binaryauthorization_v1.types.resources import PkixPublicKey
43+
from google.cloud.binaryauthorization_v1.types.resources import Policy
44+
from google.cloud.binaryauthorization_v1.types.resources import UserOwnedGrafeasNote
45+
from google.cloud.binaryauthorization_v1.types.service import CreateAttestorRequest
46+
from google.cloud.binaryauthorization_v1.types.service import DeleteAttestorRequest
47+
from google.cloud.binaryauthorization_v1.types.service import GetAttestorRequest
48+
from google.cloud.binaryauthorization_v1.types.service import GetPolicyRequest
49+
from google.cloud.binaryauthorization_v1.types.service import GetSystemPolicyRequest
50+
from google.cloud.binaryauthorization_v1.types.service import ListAttestorsRequest
51+
from google.cloud.binaryauthorization_v1.types.service import ListAttestorsResponse
52+
from google.cloud.binaryauthorization_v1.types.service import UpdateAttestorRequest
53+
from google.cloud.binaryauthorization_v1.types.service import UpdatePolicyRequest
54+
from google.cloud.binaryauthorization_v1.types.service import (
55+
ValidateAttestationOccurrenceRequest,
56+
)
57+
from google.cloud.binaryauthorization_v1.types.service import (
58+
ValidateAttestationOccurrenceResponse,
3759
)
38-
from google.cloud.binaryauthorization_v1beta1.types.service import CreateAttestorRequest
39-
from google.cloud.binaryauthorization_v1beta1.types.service import DeleteAttestorRequest
40-
from google.cloud.binaryauthorization_v1beta1.types.service import GetAttestorRequest
41-
from google.cloud.binaryauthorization_v1beta1.types.service import GetPolicyRequest
42-
from google.cloud.binaryauthorization_v1beta1.types.service import ListAttestorsRequest
43-
from google.cloud.binaryauthorization_v1beta1.types.service import ListAttestorsResponse
44-
from google.cloud.binaryauthorization_v1beta1.types.service import UpdateAttestorRequest
45-
from google.cloud.binaryauthorization_v1beta1.types.service import UpdatePolicyRequest
4660

4761
__all__ = (
48-
"BinauthzManagementServiceV1Beta1Client",
49-
"BinauthzManagementServiceV1Beta1AsyncClient",
50-
"ContinuousValidationEvent",
62+
"BinauthzManagementServiceV1Client",
63+
"BinauthzManagementServiceV1AsyncClient",
64+
"SystemPolicyV1Client",
65+
"SystemPolicyV1AsyncClient",
66+
"ValidationHelperV1Client",
67+
"ValidationHelperV1AsyncClient",
5168
"AdmissionRule",
5269
"AdmissionWhitelistPattern",
5370
"Attestor",
5471
"AttestorPublicKey",
5572
"PkixPublicKey",
5673
"Policy",
57-
"UserOwnedDrydockNote",
74+
"UserOwnedGrafeasNote",
5875
"CreateAttestorRequest",
5976
"DeleteAttestorRequest",
6077
"GetAttestorRequest",
6178
"GetPolicyRequest",
79+
"GetSystemPolicyRequest",
6280
"ListAttestorsRequest",
6381
"ListAttestorsResponse",
6482
"UpdateAttestorRequest",
6583
"UpdatePolicyRequest",
84+
"ValidateAttestationOccurrenceRequest",
85+
"ValidateAttestationOccurrenceResponse",
6686
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2020 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+
17+
from .services.binauthz_management_service_v1 import BinauthzManagementServiceV1Client
18+
from .services.binauthz_management_service_v1 import (
19+
BinauthzManagementServiceV1AsyncClient,
20+
)
21+
from .services.system_policy_v1 import SystemPolicyV1Client
22+
from .services.system_policy_v1 import SystemPolicyV1AsyncClient
23+
from .services.validation_helper_v1 import ValidationHelperV1Client
24+
from .services.validation_helper_v1 import ValidationHelperV1AsyncClient
25+
26+
from .types.resources import AdmissionRule
27+
from .types.resources import AdmissionWhitelistPattern
28+
from .types.resources import Attestor
29+
from .types.resources import AttestorPublicKey
30+
from .types.resources import PkixPublicKey
31+
from .types.resources import Policy
32+
from .types.resources import UserOwnedGrafeasNote
33+
from .types.service import CreateAttestorRequest
34+
from .types.service import DeleteAttestorRequest
35+
from .types.service import GetAttestorRequest
36+
from .types.service import GetPolicyRequest
37+
from .types.service import GetSystemPolicyRequest
38+
from .types.service import ListAttestorsRequest
39+
from .types.service import ListAttestorsResponse
40+
from .types.service import UpdateAttestorRequest
41+
from .types.service import UpdatePolicyRequest
42+
from .types.service import ValidateAttestationOccurrenceRequest
43+
from .types.service import ValidateAttestationOccurrenceResponse
44+
45+
__all__ = (
46+
"BinauthzManagementServiceV1AsyncClient",
47+
"SystemPolicyV1AsyncClient",
48+
"ValidationHelperV1AsyncClient",
49+
"AdmissionRule",
50+
"AdmissionWhitelistPattern",
51+
"Attestor",
52+
"AttestorPublicKey",
53+
"BinauthzManagementServiceV1Client",
54+
"CreateAttestorRequest",
55+
"DeleteAttestorRequest",
56+
"GetAttestorRequest",
57+
"GetPolicyRequest",
58+
"GetSystemPolicyRequest",
59+
"ListAttestorsRequest",
60+
"ListAttestorsResponse",
61+
"PkixPublicKey",
62+
"Policy",
63+
"SystemPolicyV1Client",
64+
"UpdateAttestorRequest",
65+
"UpdatePolicyRequest",
66+
"UserOwnedGrafeasNote",
67+
"ValidateAttestationOccurrenceRequest",
68+
"ValidateAttestationOccurrenceResponse",
69+
"ValidationHelperV1Client",
70+
)

0 commit comments

Comments
 (0)