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

feat: Publish Binary Authorization ContinuousValidationEvent proto #31

Merged
merged 13 commits into from
May 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
branch = True

[report]
fail_under = 100
show_missing = True
omit =
google/cloud/binaryauthorization/__init__.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ BinauthzManagementServiceV1Beta1
:members:
:inherited-members:


.. automodule:: google.cloud.binaryauthorization_v1beta1.services.binauthz_management_service_v1_beta1.pagers
:members:
:inherited-members:
20 changes: 12 additions & 8 deletions google/cloud/binaryauthorization/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -15,11 +14,15 @@
# limitations under the License.
#

from google.cloud.binaryauthorization_v1beta1.services.binauthz_management_service_v1_beta1.client import (
BinauthzManagementServiceV1Beta1Client,
)
from google.cloud.binaryauthorization_v1beta1.services.binauthz_management_service_v1_beta1.async_client import (
BinauthzManagementServiceV1Beta1AsyncClient,
)
from google.cloud.binaryauthorization_v1beta1.services.binauthz_management_service_v1_beta1.client import (
BinauthzManagementServiceV1Beta1Client,

from google.cloud.binaryauthorization_v1beta1.types.continuous_validation_logging import (
ContinuousValidationEvent,
)
from google.cloud.binaryauthorization_v1beta1.types.resources import AdmissionRule
from google.cloud.binaryauthorization_v1beta1.types.resources import (
Expand All @@ -42,21 +45,22 @@
from google.cloud.binaryauthorization_v1beta1.types.service import UpdatePolicyRequest

__all__ = (
"BinauthzManagementServiceV1Beta1Client",
"BinauthzManagementServiceV1Beta1AsyncClient",
"ContinuousValidationEvent",
"AdmissionRule",
"AdmissionWhitelistPattern",
"Attestor",
"AttestorPublicKey",
"BinauthzManagementServiceV1Beta1AsyncClient",
"BinauthzManagementServiceV1Beta1Client",
"PkixPublicKey",
"Policy",
"UserOwnedDrydockNote",
"CreateAttestorRequest",
"DeleteAttestorRequest",
"GetAttestorRequest",
"GetPolicyRequest",
"ListAttestorsRequest",
"ListAttestorsResponse",
"PkixPublicKey",
"Policy",
"UpdateAttestorRequest",
"UpdatePolicyRequest",
"UserOwnedDrydockNote",
)
11 changes: 8 additions & 3 deletions google/cloud/binaryauthorization_v1beta1/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -18,6 +17,11 @@
from .services.binauthz_management_service_v1_beta1 import (
BinauthzManagementServiceV1Beta1Client,
)
from .services.binauthz_management_service_v1_beta1 import (
BinauthzManagementServiceV1Beta1AsyncClient,
)

from .types.continuous_validation_logging import ContinuousValidationEvent
from .types.resources import AdmissionRule
from .types.resources import AdmissionWhitelistPattern
from .types.resources import Attestor
Expand All @@ -34,12 +38,14 @@
from .types.service import UpdateAttestorRequest
from .types.service import UpdatePolicyRequest


__all__ = (
"BinauthzManagementServiceV1Beta1AsyncClient",
"AdmissionRule",
"AdmissionWhitelistPattern",
"Attestor",
"AttestorPublicKey",
"BinauthzManagementServiceV1Beta1Client",
"ContinuousValidationEvent",
"CreateAttestorRequest",
"DeleteAttestorRequest",
"GetAttestorRequest",
Expand All @@ -51,5 +57,4 @@
"UpdateAttestorRequest",
"UpdatePolicyRequest",
"UserOwnedDrydockNote",
"BinauthzManagementServiceV1Beta1Client",
)
93 changes: 93 additions & 0 deletions google/cloud/binaryauthorization_v1beta1/gapic_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.binaryauthorization_v1beta1",
"protoPackage": "google.cloud.binaryauthorization.v1beta1",
"schema": "1.0",
"services": {
"BinauthzManagementServiceV1Beta1": {
"clients": {
"grpc": {
"libraryClient": "BinauthzManagementServiceV1Beta1Client",
"rpcs": {
"CreateAttestor": {
"methods": [
"create_attestor"
]
},
"DeleteAttestor": {
"methods": [
"delete_attestor"
]
},
"GetAttestor": {
"methods": [
"get_attestor"
]
},
"GetPolicy": {
"methods": [
"get_policy"
]
},
"ListAttestors": {
"methods": [
"list_attestors"
]
},
"UpdateAttestor": {
"methods": [
"update_attestor"
]
},
"UpdatePolicy": {
"methods": [
"update_policy"
]
}
}
},
"grpc-async": {
"libraryClient": "BinauthzManagementServiceV1Beta1AsyncClient",
"rpcs": {
"CreateAttestor": {
"methods": [
"create_attestor"
]
},
"DeleteAttestor": {
"methods": [
"delete_attestor"
]
},
"GetAttestor": {
"methods": [
"get_attestor"
]
},
"GetPolicy": {
"methods": [
"get_policy"
]
},
"ListAttestors": {
"methods": [
"list_attestors"
]
},
"UpdateAttestor": {
"methods": [
"update_attestor"
]
},
"UpdatePolicy": {
"methods": [
"update_policy"
]
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -14,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

from .client import BinauthzManagementServiceV1Beta1Client
from .async_client import BinauthzManagementServiceV1Beta1AsyncClient

Expand Down
Loading