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

Commit

Permalink
feat: Make CertificateTemplate bools optional to indicate unset values (
Browse files Browse the repository at this point in the history
#54)

PiperOrigin-RevId: 373649163

Source-Link: googleapis/googleapis@7e1b14e

Source-Link: googleapis/googleapis-gen@0a3c7d2

chore: upgrade gapic-generator-python to 0.46.3
fix: add async client to %name_%version/init.py
chore: add autogenerated snippets
chore: remove auth, policy, and options from the reserved names list
feat: support self-signed JWT flow for service accounts
chore: enable GAPIC metadata generation
chore: sort subpackages in %namespace/%name/init.py
feat: Import v1 by default instead of v1beta1
  • Loading branch information
gcf-owl-bot[bot] committed May 14, 2021
1 parent c37c268 commit c4c8624
Show file tree
Hide file tree
Showing 40 changed files with 2,876 additions and 2,960 deletions.
1 change: 0 additions & 1 deletion docs/privateca_v1/certificate_authority_service.rst
Expand Up @@ -5,7 +5,6 @@ CertificateAuthorityService
:members:
:inherited-members:


.. automodule:: google.cloud.security.privateca_v1.services.certificate_authority_service.pagers
:members:
:inherited-members:
1 change: 0 additions & 1 deletion docs/privateca_v1beta1/certificate_authority_service.rst
Expand Up @@ -5,7 +5,6 @@ CertificateAuthorityService
:members:
:inherited-members:


.. automodule:: google.cloud.security.privateca_v1beta1.services.certificate_authority_service.pagers
:members:
:inherited-members:
196 changes: 109 additions & 87 deletions google/cloud/security/privateca/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

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

from google.cloud.security.privateca_v1beta1.services.certificate_authority_service.async_client import (
CertificateAuthorityServiceAsyncClient,
)
from google.cloud.security.privateca_v1beta1.services.certificate_authority_service.client import (
from google.cloud.security.privateca_v1.services.certificate_authority_service.client import (
CertificateAuthorityServiceClient,
)
from google.cloud.security.privateca_v1beta1.types.resources import Certificate
from google.cloud.security.privateca_v1beta1.types.resources import CertificateAuthority
from google.cloud.security.privateca_v1beta1.types.resources import CertificateConfig
from google.cloud.security.privateca_v1beta1.types.resources import (
CertificateDescription,
)
from google.cloud.security.privateca_v1beta1.types.resources import (
CertificateRevocationList,
)
from google.cloud.security.privateca_v1beta1.types.resources import KeyUsage
from google.cloud.security.privateca_v1beta1.types.resources import ObjectId
from google.cloud.security.privateca_v1beta1.types.resources import PublicKey
from google.cloud.security.privateca_v1beta1.types.resources import ReusableConfig
from google.cloud.security.privateca_v1beta1.types.resources import ReusableConfigValues
from google.cloud.security.privateca_v1beta1.types.resources import (
ReusableConfigWrapper,
)
from google.cloud.security.privateca_v1beta1.types.resources import RevocationReason
from google.cloud.security.privateca_v1beta1.types.resources import Subject
from google.cloud.security.privateca_v1beta1.types.resources import SubjectAltNames
from google.cloud.security.privateca_v1beta1.types.resources import SubordinateConfig
from google.cloud.security.privateca_v1beta1.types.resources import X509Extension
from google.cloud.security.privateca_v1beta1.types.service import (
from google.cloud.security.privateca_v1.services.certificate_authority_service.async_client import (
CertificateAuthorityServiceAsyncClient,
)

from google.cloud.security.privateca_v1.types.resources import CaPool
from google.cloud.security.privateca_v1.types.resources import Certificate
from google.cloud.security.privateca_v1.types.resources import CertificateAuthority
from google.cloud.security.privateca_v1.types.resources import CertificateConfig
from google.cloud.security.privateca_v1.types.resources import CertificateDescription
from google.cloud.security.privateca_v1.types.resources import (
CertificateExtensionConstraints,
)
from google.cloud.security.privateca_v1.types.resources import (
CertificateIdentityConstraints,
)
from google.cloud.security.privateca_v1.types.resources import CertificateRevocationList
from google.cloud.security.privateca_v1.types.resources import CertificateTemplate
from google.cloud.security.privateca_v1.types.resources import KeyUsage
from google.cloud.security.privateca_v1.types.resources import ObjectId
from google.cloud.security.privateca_v1.types.resources import PublicKey
from google.cloud.security.privateca_v1.types.resources import Subject
from google.cloud.security.privateca_v1.types.resources import SubjectAltNames
from google.cloud.security.privateca_v1.types.resources import SubordinateConfig
from google.cloud.security.privateca_v1.types.resources import X509Extension
from google.cloud.security.privateca_v1.types.resources import X509Parameters
from google.cloud.security.privateca_v1.types.resources import RevocationReason
from google.cloud.security.privateca_v1.types.resources import SubjectRequestMode
from google.cloud.security.privateca_v1.types.service import (
ActivateCertificateAuthorityRequest,
)
from google.cloud.security.privateca_v1beta1.types.service import (
from google.cloud.security.privateca_v1.types.service import CreateCaPoolRequest
from google.cloud.security.privateca_v1.types.service import (
CreateCertificateAuthorityRequest,
)
from google.cloud.security.privateca_v1beta1.types.service import (
CreateCertificateRequest,
from google.cloud.security.privateca_v1.types.service import CreateCertificateRequest
from google.cloud.security.privateca_v1.types.service import (
CreateCertificateTemplateRequest,
)
from google.cloud.security.privateca_v1.types.service import DeleteCaPoolRequest
from google.cloud.security.privateca_v1.types.service import (
DeleteCertificateAuthorityRequest,
)
from google.cloud.security.privateca_v1beta1.types.service import (
from google.cloud.security.privateca_v1.types.service import (
DeleteCertificateTemplateRequest,
)
from google.cloud.security.privateca_v1.types.service import (
DisableCertificateAuthorityRequest,
)
from google.cloud.security.privateca_v1beta1.types.service import (
from google.cloud.security.privateca_v1.types.service import (
EnableCertificateAuthorityRequest,
)
from google.cloud.security.privateca_v1beta1.types.service import (
from google.cloud.security.privateca_v1.types.service import FetchCaCertsRequest
from google.cloud.security.privateca_v1.types.service import FetchCaCertsResponse
from google.cloud.security.privateca_v1.types.service import (
FetchCertificateAuthorityCsrRequest,
)
from google.cloud.security.privateca_v1beta1.types.service import (
from google.cloud.security.privateca_v1.types.service import (
FetchCertificateAuthorityCsrResponse,
)
from google.cloud.security.privateca_v1beta1.types.service import (
from google.cloud.security.privateca_v1.types.service import GetCaPoolRequest
from google.cloud.security.privateca_v1.types.service import (
GetCertificateAuthorityRequest,
)
from google.cloud.security.privateca_v1beta1.types.service import GetCertificateRequest
from google.cloud.security.privateca_v1beta1.types.service import (
from google.cloud.security.privateca_v1.types.service import GetCertificateRequest
from google.cloud.security.privateca_v1.types.service import (
GetCertificateRevocationListRequest,
)
from google.cloud.security.privateca_v1beta1.types.service import (
GetReusableConfigRequest,
from google.cloud.security.privateca_v1.types.service import (
GetCertificateTemplateRequest,
)
from google.cloud.security.privateca_v1beta1.types.service import (
from google.cloud.security.privateca_v1.types.service import ListCaPoolsRequest
from google.cloud.security.privateca_v1.types.service import ListCaPoolsResponse
from google.cloud.security.privateca_v1.types.service import (
ListCertificateAuthoritiesRequest,
)
from google.cloud.security.privateca_v1beta1.types.service import (
from google.cloud.security.privateca_v1.types.service import (
ListCertificateAuthoritiesResponse,
)
from google.cloud.security.privateca_v1beta1.types.service import (
from google.cloud.security.privateca_v1.types.service import (
ListCertificateRevocationListsRequest,
)
from google.cloud.security.privateca_v1beta1.types.service import (
from google.cloud.security.privateca_v1.types.service import (
ListCertificateRevocationListsResponse,
)
from google.cloud.security.privateca_v1beta1.types.service import (
ListCertificatesRequest,
)
from google.cloud.security.privateca_v1beta1.types.service import (
ListCertificatesResponse,
from google.cloud.security.privateca_v1.types.service import ListCertificatesRequest
from google.cloud.security.privateca_v1.types.service import ListCertificatesResponse
from google.cloud.security.privateca_v1.types.service import (
ListCertificateTemplatesRequest,
)
from google.cloud.security.privateca_v1beta1.types.service import (
ListReusableConfigsRequest,
from google.cloud.security.privateca_v1.types.service import (
ListCertificateTemplatesResponse,
)
from google.cloud.security.privateca_v1beta1.types.service import (
ListReusableConfigsResponse,
from google.cloud.security.privateca_v1.types.service import OperationMetadata
from google.cloud.security.privateca_v1.types.service import RevokeCertificateRequest
from google.cloud.security.privateca_v1.types.service import (
UndeleteCertificateAuthorityRequest,
)
from google.cloud.security.privateca_v1beta1.types.service import OperationMetadata
from google.cloud.security.privateca_v1beta1.types.service import (
RestoreCertificateAuthorityRequest,
)
from google.cloud.security.privateca_v1beta1.types.service import (
RevokeCertificateRequest,
)
from google.cloud.security.privateca_v1beta1.types.service import (
ScheduleDeleteCertificateAuthorityRequest,
)
from google.cloud.security.privateca_v1beta1.types.service import (
from google.cloud.security.privateca_v1.types.service import UpdateCaPoolRequest
from google.cloud.security.privateca_v1.types.service import (
UpdateCertificateAuthorityRequest,
)
from google.cloud.security.privateca_v1beta1.types.service import (
UpdateCertificateRequest,
)
from google.cloud.security.privateca_v1beta1.types.service import (
from google.cloud.security.privateca_v1.types.service import UpdateCertificateRequest
from google.cloud.security.privateca_v1.types.service import (
UpdateCertificateRevocationListRequest,
)
from google.cloud.security.privateca_v1.types.service import (
UpdateCertificateTemplateRequest,
)

__all__ = (
"ActivateCertificateAuthorityRequest",
"CertificateAuthorityServiceClient",
"CertificateAuthorityServiceAsyncClient",
"CaPool",
"Certificate",
"CertificateAuthority",
"CertificateAuthorityServiceAsyncClient",
"CertificateAuthorityServiceClient",
"CertificateConfig",
"CertificateDescription",
"CertificateExtensionConstraints",
"CertificateIdentityConstraints",
"CertificateRevocationList",
"CertificateTemplate",
"KeyUsage",
"ObjectId",
"PublicKey",
"Subject",
"SubjectAltNames",
"SubordinateConfig",
"X509Extension",
"X509Parameters",
"RevocationReason",
"SubjectRequestMode",
"ActivateCertificateAuthorityRequest",
"CreateCaPoolRequest",
"CreateCertificateAuthorityRequest",
"CreateCertificateRequest",
"CreateCertificateTemplateRequest",
"DeleteCaPoolRequest",
"DeleteCertificateAuthorityRequest",
"DeleteCertificateTemplateRequest",
"DisableCertificateAuthorityRequest",
"EnableCertificateAuthorityRequest",
"FetchCaCertsRequest",
"FetchCaCertsResponse",
"FetchCertificateAuthorityCsrRequest",
"FetchCertificateAuthorityCsrResponse",
"GetCaPoolRequest",
"GetCertificateAuthorityRequest",
"GetCertificateRequest",
"GetCertificateRevocationListRequest",
"GetReusableConfigRequest",
"KeyUsage",
"GetCertificateTemplateRequest",
"ListCaPoolsRequest",
"ListCaPoolsResponse",
"ListCertificateAuthoritiesRequest",
"ListCertificateAuthoritiesResponse",
"ListCertificateRevocationListsRequest",
"ListCertificateRevocationListsResponse",
"ListCertificatesRequest",
"ListCertificatesResponse",
"ListReusableConfigsRequest",
"ListReusableConfigsResponse",
"ObjectId",
"ListCertificateTemplatesRequest",
"ListCertificateTemplatesResponse",
"OperationMetadata",
"PublicKey",
"RestoreCertificateAuthorityRequest",
"ReusableConfig",
"ReusableConfigValues",
"ReusableConfigWrapper",
"RevocationReason",
"RevokeCertificateRequest",
"ScheduleDeleteCertificateAuthorityRequest",
"Subject",
"SubjectAltNames",
"SubordinateConfig",
"UndeleteCertificateAuthorityRequest",
"UpdateCaPoolRequest",
"UpdateCertificateAuthorityRequest",
"UpdateCertificateRequest",
"UpdateCertificateRevocationListRequest",
"X509Extension",
"UpdateCertificateTemplateRequest",
)
17 changes: 10 additions & 7 deletions google/cloud/security/privateca_v1/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -16,6 +15,10 @@
#

from .services.certificate_authority_service import CertificateAuthorityServiceClient
from .services.certificate_authority_service import (
CertificateAuthorityServiceAsyncClient,
)

from .types.resources import CaPool
from .types.resources import Certificate
from .types.resources import CertificateAuthority
Expand All @@ -28,13 +31,13 @@
from .types.resources import KeyUsage
from .types.resources import ObjectId
from .types.resources import PublicKey
from .types.resources import RevocationReason
from .types.resources import Subject
from .types.resources import SubjectAltNames
from .types.resources import SubjectRequestMode
from .types.resources import SubordinateConfig
from .types.resources import X509Extension
from .types.resources import X509Parameters
from .types.resources import RevocationReason
from .types.resources import SubjectRequestMode
from .types.service import ActivateCertificateAuthorityRequest
from .types.service import CreateCaPoolRequest
from .types.service import CreateCertificateAuthorityRequest
Expand All @@ -60,10 +63,10 @@
from .types.service import ListCertificateAuthoritiesResponse
from .types.service import ListCertificateRevocationListsRequest
from .types.service import ListCertificateRevocationListsResponse
from .types.service import ListCertificateTemplatesRequest
from .types.service import ListCertificateTemplatesResponse
from .types.service import ListCertificatesRequest
from .types.service import ListCertificatesResponse
from .types.service import ListCertificateTemplatesRequest
from .types.service import ListCertificateTemplatesResponse
from .types.service import OperationMetadata
from .types.service import RevokeCertificateRequest
from .types.service import UndeleteCertificateAuthorityRequest
Expand All @@ -73,12 +76,13 @@
from .types.service import UpdateCertificateRevocationListRequest
from .types.service import UpdateCertificateTemplateRequest


__all__ = (
"CertificateAuthorityServiceAsyncClient",
"ActivateCertificateAuthorityRequest",
"CaPool",
"Certificate",
"CertificateAuthority",
"CertificateAuthorityServiceClient",
"CertificateConfig",
"CertificateDescription",
"CertificateExtensionConstraints",
Expand Down Expand Up @@ -131,5 +135,4 @@
"UpdateCertificateTemplateRequest",
"X509Extension",
"X509Parameters",
"CertificateAuthorityServiceClient",
)

0 comments on commit c4c8624

Please sign in to comment.