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

Commit

Permalink
feat(v1beta1): add new admission rule types to Policy (#95)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 408346628

Source-Link: googleapis/googleapis@3dfbdc3

Source-Link: https://github.com/googleapis/googleapis-gen/commit/b73ff6824f3947aed2eb08fc4f6976af74a5621c
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjczZmY2ODI0ZjM5NDdhZWQyZWIwOGZjNGY2OTc2YWY3NGE1NjIxYyJ9

feat(v1beta1): update SignatureAlgorithm enum to match algorithm names in KMS 
feat(v1beta1): add SystemPolicyV1Beta1 service
  • Loading branch information
gcf-owl-bot[bot] authored Nov 9, 2021
1 parent 88111c6 commit f25d17a
Show file tree
Hide file tree
Showing 18 changed files with 2,872 additions and 29 deletions.
1 change: 1 addition & 0 deletions docs/binaryauthorization_v1beta1/services.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ Services for Google Cloud Binaryauthorization v1beta1 API
:maxdepth: 2

binauthz_management_service_v1_beta1
system_policy_v1_beta1
6 changes: 6 additions & 0 deletions docs/binaryauthorization_v1beta1/system_policy_v1_beta1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SystemPolicyV1Beta1
-------------------------------------

.. automodule:: google.cloud.binaryauthorization_v1beta1.services.system_policy_v1_beta1
:members:
:inherited-members:
6 changes: 6 additions & 0 deletions google/cloud/binaryauthorization_v1beta1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
from .services.binauthz_management_service_v1_beta1 import (
BinauthzManagementServiceV1Beta1AsyncClient,
)
from .services.system_policy_v1_beta1 import SystemPolicyV1Beta1Client
from .services.system_policy_v1_beta1 import SystemPolicyV1Beta1AsyncClient

from .types.continuous_validation_logging import ContinuousValidationEvent
from .types.resources import AdmissionRule
Expand All @@ -33,13 +35,15 @@
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

__all__ = (
"BinauthzManagementServiceV1Beta1AsyncClient",
"SystemPolicyV1Beta1AsyncClient",
"AdmissionRule",
"AdmissionWhitelistPattern",
"Attestor",
Expand All @@ -50,10 +54,12 @@
"DeleteAttestorRequest",
"GetAttestorRequest",
"GetPolicyRequest",
"GetSystemPolicyRequest",
"ListAttestorsRequest",
"ListAttestorsResponse",
"PkixPublicKey",
"Policy",
"SystemPolicyV1Beta1Client",
"UpdateAttestorRequest",
"UpdatePolicyRequest",
"UserOwnedDrydockNote",
Expand Down
24 changes: 24 additions & 0 deletions google/cloud/binaryauthorization_v1beta1/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,30 @@
}
}
}
},
"SystemPolicyV1Beta1": {
"clients": {
"grpc": {
"libraryClient": "SystemPolicyV1Beta1Client",
"rpcs": {
"GetSystemPolicy": {
"methods": [
"get_system_policy"
]
}
}
},
"grpc-async": {
"libraryClient": "SystemPolicyV1Beta1AsyncClient",
"rpcs": {
"GetSystemPolicy": {
"methods": [
"get_system_policy"
]
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,9 @@ async def get_policy(
Returns:
google.cloud.binaryauthorization_v1beta1.types.Policy:
A [policy][google.cloud.binaryauthorization.v1beta1.Policy] for container
image binary authorization.
A
[policy][google.cloud.binaryauthorization.v1beta1.Policy]
for Binary Authorization.
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -329,8 +330,9 @@ async def update_policy(
Returns:
google.cloud.binaryauthorization_v1beta1.types.Policy:
A [policy][google.cloud.binaryauthorization.v1beta1.Policy] for container
image binary authorization.
A
[policy][google.cloud.binaryauthorization.v1beta1.Policy]
for Binary Authorization.
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -441,9 +443,9 @@ async def create_attestor(
Returns:
google.cloud.binaryauthorization_v1beta1.types.Attestor:
An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests
to container image artifacts. An existing attestor
cannot be modified except where indicated.
An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests to container image
artifacts. An existing attestor cannot be modified
except where indicated.
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -522,9 +524,9 @@ async def get_attestor(
Returns:
google.cloud.binaryauthorization_v1beta1.types.Attestor:
An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests
to container image artifacts. An existing attestor
cannot be modified except where indicated.
An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests to container image
artifacts. An existing attestor cannot be modified
except where indicated.
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -612,9 +614,9 @@ async def update_attestor(
Returns:
google.cloud.binaryauthorization_v1beta1.types.Attestor:
An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests
to container image artifacts. An existing attestor
cannot be modified except where indicated.
An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests to container image
artifacts. An existing attestor cannot be modified
except where indicated.
"""
# Create or coerce a protobuf request object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,9 @@ def get_policy(
Returns:
google.cloud.binaryauthorization_v1beta1.types.Policy:
A [policy][google.cloud.binaryauthorization.v1beta1.Policy] for container
image binary authorization.
A
[policy][google.cloud.binaryauthorization.v1beta1.Policy]
for Binary Authorization.
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -504,8 +505,9 @@ def update_policy(
Returns:
google.cloud.binaryauthorization_v1beta1.types.Policy:
A [policy][google.cloud.binaryauthorization.v1beta1.Policy] for container
image binary authorization.
A
[policy][google.cloud.binaryauthorization.v1beta1.Policy]
for Binary Authorization.
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -606,9 +608,9 @@ def create_attestor(
Returns:
google.cloud.binaryauthorization_v1beta1.types.Attestor:
An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests
to container image artifacts. An existing attestor
cannot be modified except where indicated.
An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests to container image
artifacts. An existing attestor cannot be modified
except where indicated.
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -687,9 +689,9 @@ def get_attestor(
Returns:
google.cloud.binaryauthorization_v1beta1.types.Attestor:
An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests
to container image artifacts. An existing attestor
cannot be modified except where indicated.
An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests to container image
artifacts. An existing attestor cannot be modified
except where indicated.
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -767,9 +769,9 @@ def update_attestor(
Returns:
google.cloud.binaryauthorization_v1beta1.types.Attestor:
An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests
to container image artifacts. An existing attestor
cannot be modified except where indicated.
An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests to container image
artifacts. An existing attestor cannot be modified
except where indicated.
"""
# Create or coerce a protobuf request object.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# -*- 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 .client import SystemPolicyV1Beta1Client
from .async_client import SystemPolicyV1Beta1AsyncClient

__all__ = (
"SystemPolicyV1Beta1Client",
"SystemPolicyV1Beta1AsyncClient",
)
Loading

0 comments on commit f25d17a

Please sign in to comment.