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

chore: use gapic-generator-python 0.65.1 #139

Merged
merged 2 commits into from
Apr 14, 2022
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
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -247,7 +247,6 @@ async def get_policy(
[policy][google.cloud.binaryauthorization.v1.Policy] if the
project does not have one.


.. code-block:: python

from google.cloud import binaryauthorization_v1
Expand Down Expand Up @@ -361,7 +360,6 @@ async def update_policy(
NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the
request is malformed.


.. code-block:: python

from google.cloud import binaryauthorization_v1
Expand Down Expand Up @@ -486,7 +484,6 @@ async def create_attestor(
the [attestor][google.cloud.binaryauthorization.v1.Attestor]
already exists.


.. code-block:: python

from google.cloud import binaryauthorization_v1
Expand Down Expand Up @@ -616,7 +613,6 @@ async def get_attestor(
[attestor][google.cloud.binaryauthorization.v1.Attestor] does
not exist.


.. code-block:: python

from google.cloud import binaryauthorization_v1
Expand Down Expand Up @@ -728,7 +724,6 @@ async def update_attestor(
[attestor][google.cloud.binaryauthorization.v1.Attestor] does
not exist.


.. code-block:: python

from google.cloud import binaryauthorization_v1
Expand Down Expand Up @@ -846,7 +841,6 @@ async def list_attestors(
r"""Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
Returns INVALID_ARGUMENT if the project does not exist.


.. code-block:: python

from google.cloud import binaryauthorization_v1
Expand Down Expand Up @@ -971,7 +965,6 @@ async def delete_attestor(
[attestor][google.cloud.binaryauthorization.v1.Attestor] does
not exist.


.. code-block:: python

from google.cloud import binaryauthorization_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import os
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
Expand Down Expand Up @@ -472,7 +472,6 @@ def get_policy(
[policy][google.cloud.binaryauthorization.v1.Policy] if the
project does not have one.


.. code-block:: python

from google.cloud import binaryauthorization_v1
Expand Down Expand Up @@ -576,7 +575,6 @@ def update_policy(
NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the
request is malformed.


.. code-block:: python

from google.cloud import binaryauthorization_v1
Expand Down Expand Up @@ -691,7 +689,6 @@ def create_attestor(
the [attestor][google.cloud.binaryauthorization.v1.Attestor]
already exists.


.. code-block:: python

from google.cloud import binaryauthorization_v1
Expand Down Expand Up @@ -821,7 +818,6 @@ def get_attestor(
[attestor][google.cloud.binaryauthorization.v1.Attestor] does
not exist.


.. code-block:: python

from google.cloud import binaryauthorization_v1
Expand Down Expand Up @@ -923,7 +919,6 @@ def update_attestor(
[attestor][google.cloud.binaryauthorization.v1.Attestor] does
not exist.


.. code-block:: python

from google.cloud import binaryauthorization_v1
Expand Down Expand Up @@ -1031,7 +1026,6 @@ def list_attestors(
r"""Lists [attestors][google.cloud.binaryauthorization.v1.Attestor].
Returns INVALID_ARGUMENT if the project does not exist.


.. code-block:: python

from google.cloud import binaryauthorization_v1
Expand Down Expand Up @@ -1146,7 +1140,6 @@ def delete_attestor(
[attestor][google.cloud.binaryauthorization.v1.Attestor] does
not exist.


.. code-block:: python

from google.cloud import binaryauthorization_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def __init__(
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
be used for service account credentials.
"""

# Save the hostname. Default to port 443 (HTTPS) if none is specified.
if ":" not in host:
host += ":443"
Expand Down Expand Up @@ -290,5 +291,9 @@ def delete_attestor(
]:
raise NotImplementedError()

@property
def kind(self) -> str:
raise NotImplementedError()


__all__ = ("BinauthzManagementServiceV1Transport",)
Original file line number Diff line number Diff line change
Expand Up @@ -455,5 +455,9 @@ def delete_attestor(
def close(self):
self.grpc_channel.close()

@property
def kind(self) -> str:
return "grpc"


__all__ = ("BinauthzManagementServiceV1GrpcTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -215,7 +215,6 @@ async def get_system_policy(
r"""Gets the current system policy in the specified
location.


.. code-block:: python

from google.cloud import binaryauthorization_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import os
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
Expand Down Expand Up @@ -432,7 +432,6 @@ def get_system_policy(
r"""Gets the current system policy in the specified
location.


.. code-block:: python

from google.cloud import binaryauthorization_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def __init__(
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
be used for service account credentials.
"""

# Save the hostname. Default to port 443 (HTTPS) if none is specified.
if ":" not in host:
host += ":443"
Expand Down Expand Up @@ -146,5 +147,9 @@ def get_system_policy(
]:
raise NotImplementedError()

@property
def kind(self) -> str:
raise NotImplementedError()


__all__ = ("SystemPolicyV1Transport",)
Original file line number Diff line number Diff line change
Expand Up @@ -258,5 +258,9 @@ def get_system_policy(
def close(self):
self.grpc_channel.close()

@property
def kind(self) -> str:
return "grpc"


__all__ = ("SystemPolicyV1GrpcTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -211,7 +211,6 @@ async def validate_attestation_occurrence(
r"""Returns whether the given Attestation for the given
image URI was signed by the given Attestor


.. code-block:: python

from google.cloud import binaryauthorization_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import os
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
Expand Down Expand Up @@ -414,7 +414,6 @@ def validate_attestation_occurrence(
r"""Returns whether the given Attestation for the given
image URI was signed by the given Attestor


.. code-block:: python

from google.cloud import binaryauthorization_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def __init__(
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
be used for service account credentials.
"""

# Save the hostname. Default to port 443 (HTTPS) if none is specified.
if ":" not in host:
host += ":443"
Expand Down Expand Up @@ -148,5 +149,9 @@ def validate_attestation_occurrence(
]:
raise NotImplementedError()

@property
def kind(self) -> str:
raise NotImplementedError()


__all__ = ("ValidationHelperV1Transport",)
Original file line number Diff line number Diff line change
Expand Up @@ -263,5 +263,9 @@ def validate_attestation_occurrence(
def close(self):
self.grpc_channel.close()

@property
def kind(self) -> str:
return "grpc"


__all__ = ("ValidationHelperV1GrpcTransport",)
8 changes: 4 additions & 4 deletions google/cloud/binaryauthorization_v1/types/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,21 @@ class Policy(proto.Message):
permitted. This feature is typically used to
exclude Google or third-party infrastructure
images from Binary Authorization policies.
cluster_admission_rules (Sequence[google.cloud.binaryauthorization_v1.types.Policy.ClusterAdmissionRulesEntry]):
cluster_admission_rules (Mapping[str, google.cloud.binaryauthorization_v1.types.AdmissionRule]):
Optional. Per-cluster admission rules. Cluster spec format:
``location.clusterId``. There can be at most one admission
rule per cluster spec. A ``location`` is either a compute
zone (e.g. us-central1-a) or a region (e.g. us-central1).
For ``clusterId`` syntax restrictions see
https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters.
kubernetes_namespace_admission_rules (Sequence[google.cloud.binaryauthorization_v1.types.Policy.KubernetesNamespaceAdmissionRulesEntry]):
kubernetes_namespace_admission_rules (Mapping[str, google.cloud.binaryauthorization_v1.types.AdmissionRule]):
Optional. Per-kubernetes-namespace admission rules. K8s
namespace spec format: [a-z.-]+, e.g. 'some-namespace'
kubernetes_service_account_admission_rules (Sequence[google.cloud.binaryauthorization_v1.types.Policy.KubernetesServiceAccountAdmissionRulesEntry]):
kubernetes_service_account_admission_rules (Mapping[str, google.cloud.binaryauthorization_v1.types.AdmissionRule]):
Optional. Per-kubernetes-service-account admission rules.
Service account spec format: ``namespace:serviceaccount``.
e.g. 'test-ns:default'
istio_service_identity_admission_rules (Sequence[google.cloud.binaryauthorization_v1.types.Policy.IstioServiceIdentityAdmissionRulesEntry]):
istio_service_identity_admission_rules (Mapping[str, google.cloud.binaryauthorization_v1.types.AdmissionRule]):
Optional. Per-istio-service-identity
admission rules. Istio service identity spec
format:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -256,7 +256,6 @@ async def get_policy(
[policy][google.cloud.binaryauthorization.v1beta1.Policy] if the
project does not have one.


.. code-block:: python

from google.cloud import binaryauthorization_v1beta1
Expand Down Expand Up @@ -371,7 +370,6 @@ async def update_policy(
Returns NOT_FOUND if the project does not exist,
INVALID_ARGUMENT if the request is malformed.


.. code-block:: python

from google.cloud import binaryauthorization_v1beta1
Expand Down Expand Up @@ -498,7 +496,6 @@ async def create_attestor(
[attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
already exists.


.. code-block:: python

from google.cloud import binaryauthorization_v1beta1
Expand Down Expand Up @@ -628,7 +625,6 @@ async def get_attestor(
[attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
does not exist.


.. code-block:: python

from google.cloud import binaryauthorization_v1beta1
Expand Down Expand Up @@ -740,7 +736,6 @@ async def update_attestor(
[attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
does not exist.


.. code-block:: python

from google.cloud import binaryauthorization_v1beta1
Expand Down Expand Up @@ -859,7 +854,6 @@ async def list_attestors(
[attestors][google.cloud.binaryauthorization.v1beta1.Attestor].
Returns INVALID_ARGUMENT if the project does not exist.


.. code-block:: python

from google.cloud import binaryauthorization_v1beta1
Expand Down Expand Up @@ -984,7 +978,6 @@ async def delete_attestor(
[attestor][google.cloud.binaryauthorization.v1beta1.Attestor]
does not exist.


.. code-block:: python

from google.cloud import binaryauthorization_v1beta1
Expand Down
Loading