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

Commit

Permalink
feat: add binaryauthorization v1 (#74)
Browse files Browse the repository at this point in the history
Closes #12

- [ ] Regenerate this pull request now.

Committer: @alexander-fenster
PiperOrigin-RevId: 398308923

Source-Link: googleapis/googleapis@a3dccab

Source-Link: googleapis/googleapis-gen@d475ce1
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
  • Loading branch information
gcf-owl-bot[bot] committed Sep 23, 2021
1 parent 6e77950 commit cd828ec
Show file tree
Hide file tree
Showing 45 changed files with 12,671 additions and 93 deletions.
12 changes: 6 additions & 6 deletions README.rst
Expand Up @@ -16,9 +16,9 @@ policy control for images deployed to Kubernetes Engine clusters.
.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-binary-authorization.svg
:target: https://pypi.org/project/google-cloud-binary-authorization/

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

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

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

Installation
Expand Down Expand Up @@ -80,5 +80,5 @@ Next Steps
- View this `README`_ to see the full list of Cloud
APIs that we cover.

.. _Binary Authorization API Product documentation: https://cloud.google.com/binaryauthorization
.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
.. _Binary Authorization API Product documentation: https://cloud.google.com/binary-authorization
.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst
10 changes: 10 additions & 0 deletions docs/binaryauthorization_v1/binauthz_management_service_v1.rst
@@ -0,0 +1,10 @@
BinauthzManagementServiceV1
---------------------------------------------

.. automodule:: google.cloud.binaryauthorization_v1.services.binauthz_management_service_v1
:members:
:inherited-members:

.. automodule:: google.cloud.binaryauthorization_v1.services.binauthz_management_service_v1.pagers
:members:
:inherited-members:
8 changes: 8 additions & 0 deletions docs/binaryauthorization_v1/services.rst
@@ -0,0 +1,8 @@
Services for Google Cloud Binaryauthorization v1 API
====================================================
.. toctree::
:maxdepth: 2

binauthz_management_service_v1
system_policy_v1
validation_helper_v1
6 changes: 6 additions & 0 deletions docs/binaryauthorization_v1/system_policy_v1.rst
@@ -0,0 +1,6 @@
SystemPolicyV1
--------------------------------

.. automodule:: google.cloud.binaryauthorization_v1.services.system_policy_v1
:members:
:inherited-members:
7 changes: 7 additions & 0 deletions docs/binaryauthorization_v1/types.rst
@@ -0,0 +1,7 @@
Types for Google Cloud Binaryauthorization v1 API
=================================================

.. automodule:: google.cloud.binaryauthorization_v1.types
:members:
:undoc-members:
:show-inheritance:
6 changes: 6 additions & 0 deletions docs/binaryauthorization_v1/validation_helper_v1.rst
@@ -0,0 +1,6 @@
ValidationHelperV1
------------------------------------

.. automodule:: google.cloud.binaryauthorization_v1.services.validation_helper_v1
:members:
:inherited-members:
10 changes: 10 additions & 0 deletions docs/index.rst
Expand Up @@ -2,6 +2,16 @@

.. include:: multiprocessing.rst

This package includes clients for multiple versions of Binary Authorization.
By default, you will get version ``v1``.

API Reference
-------------
.. toctree::
:maxdepth: 2

binaryauthorization_v1/services
binaryauthorization_v1/types

API Reference
-------------
Expand Down
74 changes: 47 additions & 27 deletions google/cloud/binaryauthorization/__init__.py
Expand Up @@ -14,53 +14,73 @@
# limitations under the License.
#

from google.cloud.binaryauthorization_v1beta1.services.binauthz_management_service_v1_beta1.client import (
BinauthzManagementServiceV1Beta1Client,
from google.cloud.binaryauthorization_v1.services.binauthz_management_service_v1.client import (
BinauthzManagementServiceV1Client,
)
from google.cloud.binaryauthorization_v1beta1.services.binauthz_management_service_v1_beta1.async_client import (
BinauthzManagementServiceV1Beta1AsyncClient,
from google.cloud.binaryauthorization_v1.services.binauthz_management_service_v1.async_client import (
BinauthzManagementServiceV1AsyncClient,
)

from google.cloud.binaryauthorization_v1beta1.types.continuous_validation_logging import (
ContinuousValidationEvent,
from google.cloud.binaryauthorization_v1.services.system_policy_v1.client import (
SystemPolicyV1Client,
)
from google.cloud.binaryauthorization_v1.services.system_policy_v1.async_client import (
SystemPolicyV1AsyncClient,
)
from google.cloud.binaryauthorization_v1.services.validation_helper_v1.client import (
ValidationHelperV1Client,
)
from google.cloud.binaryauthorization_v1beta1.types.resources import AdmissionRule
from google.cloud.binaryauthorization_v1beta1.types.resources import (
from google.cloud.binaryauthorization_v1.services.validation_helper_v1.async_client import (
ValidationHelperV1AsyncClient,
)

from google.cloud.binaryauthorization_v1.types.resources import AdmissionRule
from google.cloud.binaryauthorization_v1.types.resources import (
AdmissionWhitelistPattern,
)
from google.cloud.binaryauthorization_v1beta1.types.resources import Attestor
from google.cloud.binaryauthorization_v1beta1.types.resources import AttestorPublicKey
from google.cloud.binaryauthorization_v1beta1.types.resources import PkixPublicKey
from google.cloud.binaryauthorization_v1beta1.types.resources import Policy
from google.cloud.binaryauthorization_v1beta1.types.resources import (
UserOwnedDrydockNote,
from google.cloud.binaryauthorization_v1.types.resources import Attestor
from google.cloud.binaryauthorization_v1.types.resources import AttestorPublicKey
from google.cloud.binaryauthorization_v1.types.resources import PkixPublicKey
from google.cloud.binaryauthorization_v1.types.resources import Policy
from google.cloud.binaryauthorization_v1.types.resources import UserOwnedGrafeasNote
from google.cloud.binaryauthorization_v1.types.service import CreateAttestorRequest
from google.cloud.binaryauthorization_v1.types.service import DeleteAttestorRequest
from google.cloud.binaryauthorization_v1.types.service import GetAttestorRequest
from google.cloud.binaryauthorization_v1.types.service import GetPolicyRequest
from google.cloud.binaryauthorization_v1.types.service import GetSystemPolicyRequest
from google.cloud.binaryauthorization_v1.types.service import ListAttestorsRequest
from google.cloud.binaryauthorization_v1.types.service import ListAttestorsResponse
from google.cloud.binaryauthorization_v1.types.service import UpdateAttestorRequest
from google.cloud.binaryauthorization_v1.types.service import UpdatePolicyRequest
from google.cloud.binaryauthorization_v1.types.service import (
ValidateAttestationOccurrenceRequest,
)
from google.cloud.binaryauthorization_v1.types.service import (
ValidateAttestationOccurrenceResponse,
)
from google.cloud.binaryauthorization_v1beta1.types.service import CreateAttestorRequest
from google.cloud.binaryauthorization_v1beta1.types.service import DeleteAttestorRequest
from google.cloud.binaryauthorization_v1beta1.types.service import GetAttestorRequest
from google.cloud.binaryauthorization_v1beta1.types.service import GetPolicyRequest
from google.cloud.binaryauthorization_v1beta1.types.service import ListAttestorsRequest
from google.cloud.binaryauthorization_v1beta1.types.service import ListAttestorsResponse
from google.cloud.binaryauthorization_v1beta1.types.service import UpdateAttestorRequest
from google.cloud.binaryauthorization_v1beta1.types.service import UpdatePolicyRequest

__all__ = (
"BinauthzManagementServiceV1Beta1Client",
"BinauthzManagementServiceV1Beta1AsyncClient",
"ContinuousValidationEvent",
"BinauthzManagementServiceV1Client",
"BinauthzManagementServiceV1AsyncClient",
"SystemPolicyV1Client",
"SystemPolicyV1AsyncClient",
"ValidationHelperV1Client",
"ValidationHelperV1AsyncClient",
"AdmissionRule",
"AdmissionWhitelistPattern",
"Attestor",
"AttestorPublicKey",
"PkixPublicKey",
"Policy",
"UserOwnedDrydockNote",
"UserOwnedGrafeasNote",
"CreateAttestorRequest",
"DeleteAttestorRequest",
"GetAttestorRequest",
"GetPolicyRequest",
"GetSystemPolicyRequest",
"ListAttestorsRequest",
"ListAttestorsResponse",
"UpdateAttestorRequest",
"UpdatePolicyRequest",
"ValidateAttestationOccurrenceRequest",
"ValidateAttestationOccurrenceResponse",
)
70 changes: 70 additions & 0 deletions google/cloud/binaryauthorization_v1/__init__.py
@@ -0,0 +1,70 @@
# -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

from .services.binauthz_management_service_v1 import BinauthzManagementServiceV1Client
from .services.binauthz_management_service_v1 import (
BinauthzManagementServiceV1AsyncClient,
)
from .services.system_policy_v1 import SystemPolicyV1Client
from .services.system_policy_v1 import SystemPolicyV1AsyncClient
from .services.validation_helper_v1 import ValidationHelperV1Client
from .services.validation_helper_v1 import ValidationHelperV1AsyncClient

from .types.resources import AdmissionRule
from .types.resources import AdmissionWhitelistPattern
from .types.resources import Attestor
from .types.resources import AttestorPublicKey
from .types.resources import PkixPublicKey
from .types.resources import Policy
from .types.resources import UserOwnedGrafeasNote
from .types.service import CreateAttestorRequest
from .types.service import DeleteAttestorRequest
from .types.service import GetAttestorRequest
from .types.service import GetPolicyRequest
from .types.service import GetSystemPolicyRequest
from .types.service import ListAttestorsRequest
from .types.service import ListAttestorsResponse
from .types.service import UpdateAttestorRequest
from .types.service import UpdatePolicyRequest
from .types.service import ValidateAttestationOccurrenceRequest
from .types.service import ValidateAttestationOccurrenceResponse

__all__ = (
"BinauthzManagementServiceV1AsyncClient",
"SystemPolicyV1AsyncClient",
"ValidationHelperV1AsyncClient",
"AdmissionRule",
"AdmissionWhitelistPattern",
"Attestor",
"AttestorPublicKey",
"BinauthzManagementServiceV1Client",
"CreateAttestorRequest",
"DeleteAttestorRequest",
"GetAttestorRequest",
"GetPolicyRequest",
"GetSystemPolicyRequest",
"ListAttestorsRequest",
"ListAttestorsResponse",
"PkixPublicKey",
"Policy",
"SystemPolicyV1Client",
"UpdateAttestorRequest",
"UpdatePolicyRequest",
"UserOwnedGrafeasNote",
"ValidateAttestationOccurrenceRequest",
"ValidateAttestationOccurrenceResponse",
"ValidationHelperV1Client",
)

0 comments on commit cd828ec

Please sign in to comment.