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

Commit 423615c

Browse files
fix: Add service_yaml parameters to privateca_py_gapic (#339)
* chore: Update gapic-generator-python to v1.8.5 PiperOrigin-RevId: 511892190 Source-Link: googleapis/googleapis@a45d9c0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/1907294b1d8365ea24f8c5f2e059a64124c4ed3b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTkwNzI5NGIxZDgzNjVlYTI0ZjhjNWYyZTA1OWE2NDEyNGM0ZWQzYiJ9 fix: Add service_yaml_parameters to py_gapic_library BUILD.bazel targets PiperOrigin-RevId: 510187992 Source-Link: googleapis/googleapis@5edc235 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b0bedb72e4765a3e0b674a28c50ea0f9a9b26a89 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjBiZWRiNzJlNDc2NWEzZTBiNjc0YTI4YzUwZWEwZjlhOWIyNmE4OSJ9 feat: add X.509 Name Constraints support PiperOrigin-RevId: 509331611 Source-Link: googleapis/googleapis@a57751b Source-Link: https://github.com/googleapis/googleapis-gen/commit/f99e972b5210aa2a5d0fe7cb91fb0dca4c8a9032 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjk5ZTk3MmI1MjEwYWEyYTVkMGZlN2NiOTFmYjBkY2E0YzhhOTAzMiJ9 feat: enable "rest" transport in Python for services supporting numeric enums PiperOrigin-RevId: 508143576 Source-Link: googleapis/googleapis@7a702a9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/6ad1279c0e7aa787ac6b66c9fd4a210692edffcd Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmFkMTI3OWMwZTdhYTc4N2FjNmI2NmM5ZmQ0YTIxMDY5MmVkZmZjZCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix: Add `service_yaml` parameters to `privateca_py_gapic` PiperOrigin-RevId: 513565852 Source-Link: googleapis/googleapis@d83ff74 Source-Link: https://github.com/googleapis/googleapis-gen/commit/26d16e1f7e27cc886c746f09030a32677d0a8209 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjZkMTZlMWY3ZTI3Y2M4ODZjNzQ2ZjA5MDMwYTMyNjc3ZDBhODIwOSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent b0a9c44 commit 423615c

File tree

25 files changed

+31083
-895
lines changed

25 files changed

+31083
-895
lines changed

google/cloud/security/privateca_v1/gapic_metadata.json

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,156 @@
306306
]
307307
}
308308
}
309+
},
310+
"rest": {
311+
"libraryClient": "CertificateAuthorityServiceClient",
312+
"rpcs": {
313+
"ActivateCertificateAuthority": {
314+
"methods": [
315+
"activate_certificate_authority"
316+
]
317+
},
318+
"CreateCaPool": {
319+
"methods": [
320+
"create_ca_pool"
321+
]
322+
},
323+
"CreateCertificate": {
324+
"methods": [
325+
"create_certificate"
326+
]
327+
},
328+
"CreateCertificateAuthority": {
329+
"methods": [
330+
"create_certificate_authority"
331+
]
332+
},
333+
"CreateCertificateTemplate": {
334+
"methods": [
335+
"create_certificate_template"
336+
]
337+
},
338+
"DeleteCaPool": {
339+
"methods": [
340+
"delete_ca_pool"
341+
]
342+
},
343+
"DeleteCertificateAuthority": {
344+
"methods": [
345+
"delete_certificate_authority"
346+
]
347+
},
348+
"DeleteCertificateTemplate": {
349+
"methods": [
350+
"delete_certificate_template"
351+
]
352+
},
353+
"DisableCertificateAuthority": {
354+
"methods": [
355+
"disable_certificate_authority"
356+
]
357+
},
358+
"EnableCertificateAuthority": {
359+
"methods": [
360+
"enable_certificate_authority"
361+
]
362+
},
363+
"FetchCaCerts": {
364+
"methods": [
365+
"fetch_ca_certs"
366+
]
367+
},
368+
"FetchCertificateAuthorityCsr": {
369+
"methods": [
370+
"fetch_certificate_authority_csr"
371+
]
372+
},
373+
"GetCaPool": {
374+
"methods": [
375+
"get_ca_pool"
376+
]
377+
},
378+
"GetCertificate": {
379+
"methods": [
380+
"get_certificate"
381+
]
382+
},
383+
"GetCertificateAuthority": {
384+
"methods": [
385+
"get_certificate_authority"
386+
]
387+
},
388+
"GetCertificateRevocationList": {
389+
"methods": [
390+
"get_certificate_revocation_list"
391+
]
392+
},
393+
"GetCertificateTemplate": {
394+
"methods": [
395+
"get_certificate_template"
396+
]
397+
},
398+
"ListCaPools": {
399+
"methods": [
400+
"list_ca_pools"
401+
]
402+
},
403+
"ListCertificateAuthorities": {
404+
"methods": [
405+
"list_certificate_authorities"
406+
]
407+
},
408+
"ListCertificateRevocationLists": {
409+
"methods": [
410+
"list_certificate_revocation_lists"
411+
]
412+
},
413+
"ListCertificateTemplates": {
414+
"methods": [
415+
"list_certificate_templates"
416+
]
417+
},
418+
"ListCertificates": {
419+
"methods": [
420+
"list_certificates"
421+
]
422+
},
423+
"RevokeCertificate": {
424+
"methods": [
425+
"revoke_certificate"
426+
]
427+
},
428+
"UndeleteCertificateAuthority": {
429+
"methods": [
430+
"undelete_certificate_authority"
431+
]
432+
},
433+
"UpdateCaPool": {
434+
"methods": [
435+
"update_ca_pool"
436+
]
437+
},
438+
"UpdateCertificate": {
439+
"methods": [
440+
"update_certificate"
441+
]
442+
},
443+
"UpdateCertificateAuthority": {
444+
"methods": [
445+
"update_certificate_authority"
446+
]
447+
},
448+
"UpdateCertificateRevocationList": {
449+
"methods": [
450+
"update_certificate_revocation_list"
451+
]
452+
},
453+
"UpdateCertificateTemplate": {
454+
"methods": [
455+
"update_certificate_template"
456+
]
457+
}
458+
}
309459
}
310460
}
311461
}

google/cloud/security/privateca_v1/services/certificate_authority_service/async_client.py

Lines changed: 681 additions & 32 deletions
Large diffs are not rendered by default.

google/cloud/security/privateca_v1/services/certificate_authority_service/client.py

Lines changed: 683 additions & 32 deletions
Large diffs are not rendered by default.

google/cloud/security/privateca_v1/services/certificate_authority_service/transports/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,23 @@
1919
from .base import CertificateAuthorityServiceTransport
2020
from .grpc import CertificateAuthorityServiceGrpcTransport
2121
from .grpc_asyncio import CertificateAuthorityServiceGrpcAsyncIOTransport
22+
from .rest import (
23+
CertificateAuthorityServiceRestInterceptor,
24+
CertificateAuthorityServiceRestTransport,
25+
)
2226

2327
# Compile a registry of transports.
2428
_transport_registry = (
2529
OrderedDict()
2630
) # type: Dict[str, Type[CertificateAuthorityServiceTransport]]
2731
_transport_registry["grpc"] = CertificateAuthorityServiceGrpcTransport
2832
_transport_registry["grpc_asyncio"] = CertificateAuthorityServiceGrpcAsyncIOTransport
33+
_transport_registry["rest"] = CertificateAuthorityServiceRestTransport
2934

3035
__all__ = (
3136
"CertificateAuthorityServiceTransport",
3237
"CertificateAuthorityServiceGrpcTransport",
3338
"CertificateAuthorityServiceGrpcAsyncIOTransport",
39+
"CertificateAuthorityServiceRestTransport",
40+
"CertificateAuthorityServiceRestInterceptor",
3441
)

google/cloud/security/privateca_v1/services/certificate_authority_service/transports/base.py

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
from google.api_core import retry as retries
2323
import google.auth # type: ignore
2424
from google.auth import credentials as ga_credentials # type: ignore
25+
from google.cloud.location import locations_pb2 # type: ignore
26+
from google.iam.v1 import iam_policy_pb2 # type: ignore
27+
from google.iam.v1 import policy_pb2 # type: ignore
2528
from google.longrunning import operations_pb2 # type: ignore
2629
from google.oauth2 import service_account # type: ignore
2730

@@ -564,6 +567,90 @@ def update_certificate_template(
564567
]:
565568
raise NotImplementedError()
566569

570+
@property
571+
def list_operations(
572+
self,
573+
) -> Callable[
574+
[operations_pb2.ListOperationsRequest],
575+
Union[
576+
operations_pb2.ListOperationsResponse,
577+
Awaitable[operations_pb2.ListOperationsResponse],
578+
],
579+
]:
580+
raise NotImplementedError()
581+
582+
@property
583+
def get_operation(
584+
self,
585+
) -> Callable[
586+
[operations_pb2.GetOperationRequest],
587+
Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]],
588+
]:
589+
raise NotImplementedError()
590+
591+
@property
592+
def cancel_operation(
593+
self,
594+
) -> Callable[[operations_pb2.CancelOperationRequest], None,]:
595+
raise NotImplementedError()
596+
597+
@property
598+
def delete_operation(
599+
self,
600+
) -> Callable[[operations_pb2.DeleteOperationRequest], None,]:
601+
raise NotImplementedError()
602+
603+
@property
604+
def set_iam_policy(
605+
self,
606+
) -> Callable[
607+
[iam_policy_pb2.SetIamPolicyRequest],
608+
Union[policy_pb2.Policy, Awaitable[policy_pb2.Policy]],
609+
]:
610+
raise NotImplementedError()
611+
612+
@property
613+
def get_iam_policy(
614+
self,
615+
) -> Callable[
616+
[iam_policy_pb2.GetIamPolicyRequest],
617+
Union[policy_pb2.Policy, Awaitable[policy_pb2.Policy]],
618+
]:
619+
raise NotImplementedError()
620+
621+
@property
622+
def test_iam_permissions(
623+
self,
624+
) -> Callable[
625+
[iam_policy_pb2.TestIamPermissionsRequest],
626+
Union[
627+
iam_policy_pb2.TestIamPermissionsResponse,
628+
Awaitable[iam_policy_pb2.TestIamPermissionsResponse],
629+
],
630+
]:
631+
raise NotImplementedError()
632+
633+
@property
634+
def get_location(
635+
self,
636+
) -> Callable[
637+
[locations_pb2.GetLocationRequest],
638+
Union[locations_pb2.Location, Awaitable[locations_pb2.Location]],
639+
]:
640+
raise NotImplementedError()
641+
642+
@property
643+
def list_locations(
644+
self,
645+
) -> Callable[
646+
[locations_pb2.ListLocationsRequest],
647+
Union[
648+
locations_pb2.ListLocationsResponse,
649+
Awaitable[locations_pb2.ListLocationsResponse],
650+
],
651+
]:
652+
raise NotImplementedError()
653+
567654
@property
568655
def kind(self) -> str:
569656
raise NotImplementedError()

0 commit comments

Comments
 (0)