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

Commit f25d17a

Browse files
feat(v1beta1): add new admission rule types to Policy (#95)
- [ ] 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
1 parent 88111c6 commit f25d17a

File tree

18 files changed

+2872
-29
lines changed

18 files changed

+2872
-29
lines changed

docs/binaryauthorization_v1beta1/services.rst

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ Services for Google Cloud Binaryauthorization v1beta1 API
44
:maxdepth: 2
55

66
binauthz_management_service_v1_beta1
7+
system_policy_v1_beta1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
SystemPolicyV1Beta1
2+
-------------------------------------
3+
4+
.. automodule:: google.cloud.binaryauthorization_v1beta1.services.system_policy_v1_beta1
5+
:members:
6+
:inherited-members:

google/cloud/binaryauthorization_v1beta1/__init__.py

+6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
from .services.binauthz_management_service_v1_beta1 import (
2121
BinauthzManagementServiceV1Beta1AsyncClient,
2222
)
23+
from .services.system_policy_v1_beta1 import SystemPolicyV1Beta1Client
24+
from .services.system_policy_v1_beta1 import SystemPolicyV1Beta1AsyncClient
2325

2426
from .types.continuous_validation_logging import ContinuousValidationEvent
2527
from .types.resources import AdmissionRule
@@ -33,13 +35,15 @@
3335
from .types.service import DeleteAttestorRequest
3436
from .types.service import GetAttestorRequest
3537
from .types.service import GetPolicyRequest
38+
from .types.service import GetSystemPolicyRequest
3639
from .types.service import ListAttestorsRequest
3740
from .types.service import ListAttestorsResponse
3841
from .types.service import UpdateAttestorRequest
3942
from .types.service import UpdatePolicyRequest
4043

4144
__all__ = (
4245
"BinauthzManagementServiceV1Beta1AsyncClient",
46+
"SystemPolicyV1Beta1AsyncClient",
4347
"AdmissionRule",
4448
"AdmissionWhitelistPattern",
4549
"Attestor",
@@ -50,10 +54,12 @@
5054
"DeleteAttestorRequest",
5155
"GetAttestorRequest",
5256
"GetPolicyRequest",
57+
"GetSystemPolicyRequest",
5358
"ListAttestorsRequest",
5459
"ListAttestorsResponse",
5560
"PkixPublicKey",
5661
"Policy",
62+
"SystemPolicyV1Beta1Client",
5763
"UpdateAttestorRequest",
5864
"UpdatePolicyRequest",
5965
"UserOwnedDrydockNote",

google/cloud/binaryauthorization_v1beta1/gapic_metadata.json

+24
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,30 @@
8888
}
8989
}
9090
}
91+
},
92+
"SystemPolicyV1Beta1": {
93+
"clients": {
94+
"grpc": {
95+
"libraryClient": "SystemPolicyV1Beta1Client",
96+
"rpcs": {
97+
"GetSystemPolicy": {
98+
"methods": [
99+
"get_system_policy"
100+
]
101+
}
102+
}
103+
},
104+
"grpc-async": {
105+
"libraryClient": "SystemPolicyV1Beta1AsyncClient",
106+
"rpcs": {
107+
"GetSystemPolicy": {
108+
"methods": [
109+
"get_system_policy"
110+
]
111+
}
112+
}
113+
}
114+
}
91115
}
92116
}
93117
}

google/cloud/binaryauthorization_v1beta1/services/binauthz_management_service_v1_beta1/async_client.py

+15-13
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,9 @@ async def get_policy(
237237
238238
Returns:
239239
google.cloud.binaryauthorization_v1beta1.types.Policy:
240-
A [policy][google.cloud.binaryauthorization.v1beta1.Policy] for container
241-
image binary authorization.
240+
A
241+
[policy][google.cloud.binaryauthorization.v1beta1.Policy]
242+
for Binary Authorization.
242243
243244
"""
244245
# Create or coerce a protobuf request object.
@@ -329,8 +330,9 @@ async def update_policy(
329330
330331
Returns:
331332
google.cloud.binaryauthorization_v1beta1.types.Policy:
332-
A [policy][google.cloud.binaryauthorization.v1beta1.Policy] for container
333-
image binary authorization.
333+
A
334+
[policy][google.cloud.binaryauthorization.v1beta1.Policy]
335+
for Binary Authorization.
334336
335337
"""
336338
# Create or coerce a protobuf request object.
@@ -441,9 +443,9 @@ async def create_attestor(
441443
442444
Returns:
443445
google.cloud.binaryauthorization_v1beta1.types.Attestor:
444-
An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests
445-
to container image artifacts. An existing attestor
446-
cannot be modified except where indicated.
446+
An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests to container image
447+
artifacts. An existing attestor cannot be modified
448+
except where indicated.
447449
448450
"""
449451
# Create or coerce a protobuf request object.
@@ -522,9 +524,9 @@ async def get_attestor(
522524
523525
Returns:
524526
google.cloud.binaryauthorization_v1beta1.types.Attestor:
525-
An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests
526-
to container image artifacts. An existing attestor
527-
cannot be modified except where indicated.
527+
An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests to container image
528+
artifacts. An existing attestor cannot be modified
529+
except where indicated.
528530
529531
"""
530532
# Create or coerce a protobuf request object.
@@ -612,9 +614,9 @@ async def update_attestor(
612614
613615
Returns:
614616
google.cloud.binaryauthorization_v1beta1.types.Attestor:
615-
An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests
616-
to container image artifacts. An existing attestor
617-
cannot be modified except where indicated.
617+
An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests to container image
618+
artifacts. An existing attestor cannot be modified
619+
except where indicated.
618620
619621
"""
620622
# Create or coerce a protobuf request object.

google/cloud/binaryauthorization_v1beta1/services/binauthz_management_service_v1_beta1/client.py

+15-13
Original file line numberDiff line numberDiff line change
@@ -422,8 +422,9 @@ def get_policy(
422422
423423
Returns:
424424
google.cloud.binaryauthorization_v1beta1.types.Policy:
425-
A [policy][google.cloud.binaryauthorization.v1beta1.Policy] for container
426-
image binary authorization.
425+
A
426+
[policy][google.cloud.binaryauthorization.v1beta1.Policy]
427+
for Binary Authorization.
427428
428429
"""
429430
# Create or coerce a protobuf request object.
@@ -504,8 +505,9 @@ def update_policy(
504505
505506
Returns:
506507
google.cloud.binaryauthorization_v1beta1.types.Policy:
507-
A [policy][google.cloud.binaryauthorization.v1beta1.Policy] for container
508-
image binary authorization.
508+
A
509+
[policy][google.cloud.binaryauthorization.v1beta1.Policy]
510+
for Binary Authorization.
509511
510512
"""
511513
# Create or coerce a protobuf request object.
@@ -606,9 +608,9 @@ def create_attestor(
606608
607609
Returns:
608610
google.cloud.binaryauthorization_v1beta1.types.Attestor:
609-
An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests
610-
to container image artifacts. An existing attestor
611-
cannot be modified except where indicated.
611+
An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests to container image
612+
artifacts. An existing attestor cannot be modified
613+
except where indicated.
612614
613615
"""
614616
# Create or coerce a protobuf request object.
@@ -687,9 +689,9 @@ def get_attestor(
687689
688690
Returns:
689691
google.cloud.binaryauthorization_v1beta1.types.Attestor:
690-
An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests
691-
to container image artifacts. An existing attestor
692-
cannot be modified except where indicated.
692+
An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests to container image
693+
artifacts. An existing attestor cannot be modified
694+
except where indicated.
693695
694696
"""
695697
# Create or coerce a protobuf request object.
@@ -767,9 +769,9 @@ def update_attestor(
767769
768770
Returns:
769771
google.cloud.binaryauthorization_v1beta1.types.Attestor:
770-
An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests
771-
to container image artifacts. An existing attestor
772-
cannot be modified except where indicated.
772+
An [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] that attests to container image
773+
artifacts. An existing attestor cannot be modified
774+
except where indicated.
773775
774776
"""
775777
# Create or coerce a protobuf request object.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
from .client import SystemPolicyV1Beta1Client
17+
from .async_client import SystemPolicyV1Beta1AsyncClient
18+
19+
__all__ = (
20+
"SystemPolicyV1Beta1Client",
21+
"SystemPolicyV1Beta1AsyncClient",
22+
)

0 commit comments

Comments
 (0)