Skip to content

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] authored Sep 23, 2021
1 parent 1617410 commit 7136d0f
Show file tree
Hide file tree
Showing 45 changed files with 12,671 additions and 93 deletions.
12 changes: 6 additions & 6 deletions packages/google-cloud-binary-authorization/README.rst
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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:
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Services for Google Cloud Binaryauthorization v1 API
====================================================
.. toctree::
:maxdepth: 2

binauthz_management_service_v1
system_policy_v1
validation_helper_v1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SystemPolicyV1
--------------------------------

.. automodule:: google.cloud.binaryauthorization_v1.services.system_policy_v1
:members:
:inherited-members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Types for Google Cloud Binaryauthorization v1 API
=================================================

.. automodule:: google.cloud.binaryauthorization_v1.types
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ValidationHelperV1
------------------------------------

.. automodule:: google.cloud.binaryauthorization_v1.services.validation_helper_v1
:members:
:inherited-members:
10 changes: 10 additions & 0 deletions packages/google-cloud-binary-authorization/docs/index.rst
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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",
)
Original file line number Diff line number Diff line change
@@ -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",
)
Loading

0 comments on commit 7136d0f

Please sign in to comment.