lib/google/cloud/security/privateca/v1beta1/resources_pb.rb in google-cloud-security-private_ca-v1beta1-0.5.0 vs lib/google/cloud/security/privateca/v1beta1/resources_pb.rb in google-cloud-security-private_ca-v1beta1-0.6.0

- old
+ new

@@ -1,5 +1,6 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/security/privateca/v1beta1/resources.proto require 'google/protobuf' @@ -7,277 +8,37 @@ require 'google/api/resource_pb' require 'google/protobuf/duration_pb' require 'google/protobuf/timestamp_pb' require 'google/protobuf/wrappers_pb' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("google/cloud/security/privateca/v1beta1/resources.proto", :syntax => :proto3) do - add_message "google.cloud.security.privateca.v1beta1.CertificateAuthority" do - optional :name, :string, 1 - optional :type, :enum, 2, "google.cloud.security.privateca.v1beta1.CertificateAuthority.Type" - optional :tier, :enum, 3, "google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier" - optional :config, :message, 4, "google.cloud.security.privateca.v1beta1.CertificateConfig" - optional :lifetime, :message, 5, "google.protobuf.Duration" - optional :key_spec, :message, 6, "google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec" - optional :certificate_policy, :message, 7, "google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy" - optional :issuing_options, :message, 8, "google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions" - optional :subordinate_config, :message, 19, "google.cloud.security.privateca.v1beta1.SubordinateConfig" - optional :state, :enum, 10, "google.cloud.security.privateca.v1beta1.CertificateAuthority.State" - repeated :pem_ca_certificates, :string, 9 - repeated :ca_certificate_descriptions, :message, 12, "google.cloud.security.privateca.v1beta1.CertificateDescription" - optional :gcs_bucket, :string, 13 - optional :access_urls, :message, 14, "google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls" - optional :create_time, :message, 15, "google.protobuf.Timestamp" - optional :update_time, :message, 16, "google.protobuf.Timestamp" - optional :delete_time, :message, 17, "google.protobuf.Timestamp" - map :labels, :string, :string, 18 + +descriptor_data = "\n7google/cloud/security/privateca/v1beta1/resources.proto\x12\'google.cloud.security.privateca.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xa8\x1c\n\x14\x43\x65rtificateAuthority\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12X\n\x04type\x18\x02 \x01(\x0e\x32\x42.google.cloud.security.privateca.v1beta1.CertificateAuthority.TypeB\x06\xe0\x41\x02\xe0\x41\x05\x12X\n\x04tier\x18\x03 \x01(\x0e\x32\x42.google.cloud.security.privateca.v1beta1.CertificateAuthority.TierB\x06\xe0\x41\x02\xe0\x41\x05\x12R\n\x06\x63onfig\x18\x04 \x01(\x0b\x32:.google.cloud.security.privateca.v1beta1.CertificateConfigB\x06\xe0\x41\x02\xe0\x41\x05\x12\x30\n\x08lifetime\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\x12\x66\n\x08key_spec\x18\x06 \x01(\x0b\x32L.google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpecB\x06\xe0\x41\x02\xe0\x41\x05\x12y\n\x12\x63\x65rtificate_policy\x18\x07 \x01(\x0b\x32X.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicyB\x03\xe0\x41\x01\x12j\n\x0fissuing_options\x18\x08 \x01(\x0b\x32L.google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptionsB\x03\xe0\x41\x01\x12[\n\x12subordinate_config\x18\x13 \x01(\x0b\x32:.google.cloud.security.privateca.v1beta1.SubordinateConfigB\x03\xe0\x41\x01\x12W\n\x05state\x18\n \x01(\x0e\x32\x43.google.cloud.security.privateca.v1beta1.CertificateAuthority.StateB\x03\xe0\x41\x03\x12 \n\x13pem_ca_certificates\x18\t \x03(\tB\x03\xe0\x41\x03\x12i\n\x1b\x63\x61_certificate_descriptions\x18\x0c \x03(\x0b\x32?.google.cloud.security.privateca.v1beta1.CertificateDescriptionB\x03\xe0\x41\x03\x12\x17\n\ngcs_bucket\x18\r \x01(\tB\x03\xe0\x41\x05\x12\x62\n\x0b\x61\x63\x63\x65ss_urls\x18\x0e \x01(\x0b\x32H.google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrlsB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x10 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12^\n\x06labels\x18\x12 \x03(\x0b\x32I.google.cloud.security.privateca.v1beta1.CertificateAuthority.LabelsEntryB\x03\xe0\x41\x01\x1aW\n\x0eIssuingOptions\x12 \n\x13include_ca_cert_url\x18\x01 \x01(\x08\x42\x03\xe0\x41\x02\x12#\n\x16include_crl_access_url\x18\x02 \x01(\x08\x42\x03\xe0\x41\x02\x1a\xbe\t\n\x1a\x43\x65rtificateAuthorityPolicy\x12\x8e\x01\n\x13\x61llowed_config_list\x18\x01 \x01(\x0b\x32j.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigListB\x03\xe0\x41\x01H\x00\x12\x66\n\x17overwrite_config_values\x18\x02 \x01(\x0b\x32>.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperB\x03\xe0\x41\x01H\x00\x12\x62\n#allowed_locations_and_organizations\x18\x03 \x03(\x0b\x32\x30.google.cloud.security.privateca.v1beta1.SubjectB\x03\xe0\x41\x01\x12!\n\x14\x61llowed_common_names\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12\x8a\x01\n\x0c\x61llowed_sans\x18\x05 \x01(\x0b\x32o.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNamesB\x03\xe0\x41\x01\x12\x38\n\x10maximum_lifetime\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12\x8b\x01\n\x16\x61llowed_issuance_modes\x18\x08 \x01(\x0b\x32\x66.google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModesB\x03\xe0\x41\x01\x1aw\n\x11\x41llowedConfigList\x12\x62\n\x15\x61llowed_config_values\x18\x01 \x03(\x0b\x32>.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperB\x03\xe0\x41\x02\x1a\xde\x01\n\x16\x41llowedSubjectAltNames\x12\x1e\n\x11\x61llowed_dns_names\x18\x01 \x03(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x61llowed_uris\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12$\n\x17\x61llowed_email_addresses\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x61llowed_ips\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12)\n\x1c\x61llow_globbing_dns_wildcards\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1e\n\x11\x61llow_custom_sans\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\x1a`\n\rIssuanceModes\x12%\n\x18\x61llow_csr_based_issuance\x18\x01 \x01(\x08\x42\x03\xe0\x41\x02\x12(\n\x1b\x61llow_config_based_issuance\x18\x02 \x01(\x08\x42\x03\xe0\x41\x02\x42\x0f\n\rconfig_policy\x1aG\n\nAccessUrls\x12!\n\x19\x63\x61_certificate_access_url\x18\x01 \x01(\t\x12\x16\n\x0e\x63rl_access_url\x18\x02 \x01(\t\x1a\xaf\x01\n\x0eKeyVersionSpec\x12$\n\x15\x63loud_kms_key_version\x18\x01 \x01(\tB\x03\xe0\x41\x02H\x00\x12i\n\talgorithm\x18\x02 \x01(\x0e\x32O.google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithmB\x03\xe0\x41\x02H\x00\x42\x0c\n\nKeyVersion\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\">\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bSELF_SIGNED\x10\x01\x12\x0f\n\x0bSUBORDINATE\x10\x02\"8\n\x04Tier\x12\x14\n\x10TIER_UNSPECIFIED\x10\x00\x12\x0e\n\nENTERPRISE\x10\x01\x12\n\n\x06\x44\x45VOPS\x10\x02\"g\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\x12\x16\n\x12PENDING_ACTIVATION\x10\x03\x12\x14\n\x10PENDING_DELETION\x10\x04\"\xfc\x01\n\x11SignHashAlgorithm\x12#\n\x1fSIGN_HASH_ALGORITHM_UNSPECIFIED\x10\x00\x12\x17\n\x13RSA_PSS_2048_SHA256\x10\x01\x12\x17\n\x13RSA_PSS_3072_SHA256\x10\x02\x12\x17\n\x13RSA_PSS_4096_SHA256\x10\x03\x12\x19\n\x15RSA_PKCS1_2048_SHA256\x10\x06\x12\x19\n\x15RSA_PKCS1_3072_SHA256\x10\x07\x12\x19\n\x15RSA_PKCS1_4096_SHA256\x10\x08\x12\x12\n\x0e\x45\x43_P256_SHA256\x10\x04\x12\x12\n\x0e\x45\x43_P384_SHA384\x10\x05:\x8b\x01\xea\x41\x87\x01\n-privateca.googleapis.com/CertificateAuthority\x12Vprojects/{project}/locations/{location}/certificateAuthorities/{certificate_authority}\"\xf9\x07\n\x19\x43\x65rtificateRevocationList\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0fsequence_number\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12x\n\x14revoked_certificates\x18\x03 \x03(\x0b\x32U.google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificateB\x03\xe0\x41\x03\x12\x14\n\x07pem_crl\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\naccess_url\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\\\n\x05state\x18\x06 \x01(\x0e\x32H.google.cloud.security.privateca.v1beta1.CertificateRevocationList.StateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x63\n\x06labels\x18\t \x03(\x0b\x32N.google.cloud.security.privateca.v1beta1.CertificateRevocationList.LabelsEntryB\x03\xe0\x41\x01\x1a\x9a\x01\n\x12RevokedCertificate\x12\x13\n\x0b\x63\x65rtificate\x18\x01 \x01(\t\x12\x19\n\x11hex_serial_number\x18\x02 \x01(\t\x12T\n\x11revocation_reason\x18\x03 \x01(\x0e\x32\x39.google.cloud.security.privateca.v1beta1.RevocationReason\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\":\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0e\n\nSUPERSEDED\x10\x02:\xca\x01\xea\x41\xc6\x01\n2privateca.googleapis.com/CertificateRevocationList\x12\x8f\x01projects/{project}/locations/{location}/certificateAuthorities/{certificate_authority}/certificateRevocationLists/{certificate_revocation_list}\"\x9a\x08\n\x0b\x43\x65rtificate\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x16\n\x07pem_csr\x18\x02 \x01(\tB\x03\xe0\x41\x05H\x00\x12Q\n\x06\x63onfig\x18\x03 \x01(\x0b\x32:.google.cloud.security.privateca.v1beta1.CertificateConfigB\x03\xe0\x41\x05H\x00\x12\x33\n\x08lifetime\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationB\x06\xe0\x41\x02\xe0\x41\x05\x12g\n\x12revocation_details\x18\x05 \x01(\x0b\x32\x46.google.cloud.security.privateca.v1beta1.Certificate.RevocationDetailsB\x03\xe0\x41\x03\x12\x1c\n\x0fpem_certificate\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x65\n\x17\x63\x65rtificate_description\x18\x07 \x01(\x0b\x32?.google.cloud.security.privateca.v1beta1.CertificateDescriptionB\x03\xe0\x41\x03\x12\"\n\x15pem_certificate_chain\x18\x08 \x03(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12U\n\x06labels\x18\x0b \x03(\x0b\x32@.google.cloud.security.privateca.v1beta1.Certificate.LabelsEntryB\x03\xe0\x41\x01\x1a\x9d\x01\n\x11RevocationDetails\x12S\n\x10revocation_state\x18\x01 \x01(\x0e\x32\x39.google.cloud.security.privateca.v1beta1.RevocationReason\x12\x33\n\x0frevocation_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x9d\x01\xea\x41\x99\x01\n$privateca.googleapis.com/Certificate\x12qprojects/{project}/locations/{location}/certificateAuthorities/{certificate_authority}/certificates/{certificate}B\x14\n\x12\x63\x65rtificate_config\"\xff\x03\n\x0eReusableConfig\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12R\n\x06values\x18\x02 \x01(\x0b\x32=.google.cloud.security.privateca.v1beta1.ReusableConfigValuesB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12X\n\x06labels\x18\x06 \x03(\x0b\x32\x43.google.cloud.security.privateca.v1beta1.ReusableConfig.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:w\xea\x41t\n\'privateca.googleapis.com/ReusableConfig\x12Iprojects/{project}/locations/{location}/reusableConfigs/{reusable_config}\"\x89\x04\n\x14ReusableConfigValues\x12I\n\tkey_usage\x18\x01 \x01(\x0b\x32\x31.google.cloud.security.privateca.v1beta1.KeyUsageB\x03\xe0\x41\x01\x12`\n\nca_options\x18\x02 \x01(\x0b\x32G.google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptionsB\x03\xe0\x41\x01\x12J\n\npolicy_ids\x18\x03 \x03(\x0b\x32\x31.google.cloud.security.privateca.v1beta1.ObjectIdB\x03\xe0\x41\x01\x12\x1d\n\x10\x61ia_ocsp_servers\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12Z\n\x15\x61\x64\x64itional_extensions\x18\x05 \x03(\x0b\x32\x36.google.cloud.security.privateca.v1beta1.X509ExtensionB\x03\xe0\x41\x01\x1a}\n\tCaOptions\x12.\n\x05is_ca\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x01\x12@\n\x16max_issuer_path_length\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int32ValueB\x03\xe0\x41\x01\"\xae\x01\n\x15ReusableConfigWrapper\x12\x1e\n\x0freusable_config\x18\x01 \x01(\tB\x03\xe0\x41\x02H\x00\x12\x64\n\x16reusable_config_values\x18\x02 \x01(\x0b\x32=.google.cloud.security.privateca.v1beta1.ReusableConfigValuesB\x03\xe0\x41\x02H\x00\x42\x0f\n\rconfig_values\"\xfc\x01\n\x11SubordinateConfig\x12$\n\x15\x63\x65rtificate_authority\x18\x01 \x01(\tB\x03\xe0\x41\x02H\x00\x12r\n\x10pem_issuer_chain\x18\x02 \x01(\x0b\x32Q.google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChainB\x03\xe0\x41\x02H\x00\x1a\x37\n\x16SubordinateConfigChain\x12\x1d\n\x10pem_certificates\x18\x01 \x03(\tB\x03\xe0\x41\x02\x42\x14\n\x12subordinate_config\"\xb2\x01\n\tPublicKey\x12M\n\x04type\x18\x01 \x01(\x0e\x32:.google.cloud.security.privateca.v1beta1.PublicKey.KeyTypeB\x03\xe0\x41\x02\x12\x10\n\x03key\x18\x02 \x01(\x0c\x42\x03\xe0\x41\x02\"D\n\x07KeyType\x12\x18\n\x14KEY_TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bPEM_RSA_KEY\x10\x01\x12\x0e\n\nPEM_EC_KEY\x10\x02\"\xf2\x03\n\x11\x43\x65rtificateConfig\x12\x65\n\x0esubject_config\x18\x01 \x01(\x0b\x32H.google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfigB\x03\xe0\x41\x02\x12\\\n\x0freusable_config\x18\x02 \x01(\x0b\x32>.google.cloud.security.privateca.v1beta1.ReusableConfigWrapperB\x03\xe0\x41\x02\x12K\n\npublic_key\x18\x03 \x01(\x0b\x32\x32.google.cloud.security.privateca.v1beta1.PublicKeyB\x03\xe0\x41\x01\x1a\xca\x01\n\rSubjectConfig\x12\x46\n\x07subject\x18\x01 \x01(\x0b\x32\x30.google.cloud.security.privateca.v1beta1.SubjectB\x03\xe0\x41\x02\x12\x18\n\x0b\x63ommon_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12W\n\x10subject_alt_name\x18\x03 \x01(\x0b\x32\x38.google.cloud.security.privateca.v1beta1.SubjectAltNamesB\x03\xe0\x41\x01\"\xe1\x08\n\x16\x43\x65rtificateDescription\x12o\n\x13subject_description\x18\x01 \x01(\x0b\x32R.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription\x12T\n\rconfig_values\x18\x02 \x01(\x0b\x32=.google.cloud.security.privateca.v1beta1.ReusableConfigValues\x12\x46\n\npublic_key\x18\x03 \x01(\x0b\x32\x32.google.cloud.security.privateca.v1beta1.PublicKey\x12]\n\x0esubject_key_id\x18\x04 \x01(\x0b\x32\x45.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId\x12_\n\x10\x61uthority_key_id\x18\x05 \x01(\x0b\x32\x45.google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId\x12\x1f\n\x17\x63rl_distribution_points\x18\x06 \x03(\t\x12$\n\x1c\x61ia_issuing_certificate_urls\x18\x07 \x03(\t\x12p\n\x10\x63\x65rt_fingerprint\x18\x08 \x01(\x0b\x32V.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint\x1a\xf1\x02\n\x12SubjectDescription\x12\x41\n\x07subject\x18\x01 \x01(\x0b\x32\x30.google.cloud.security.privateca.v1beta1.Subject\x12\x13\n\x0b\x63ommon_name\x18\x02 \x01(\t\x12R\n\x10subject_alt_name\x18\x03 \x01(\x0b\x32\x38.google.cloud.security.privateca.v1beta1.SubjectAltNames\x12\x19\n\x11hex_serial_number\x18\x04 \x01(\t\x12+\n\x08lifetime\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x33\n\x0fnot_before_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x32\n\x0enot_after_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\x1c\n\x05KeyId\x12\x13\n\x06key_id\x18\x01 \x01(\tB\x03\xe0\x41\x01\x1a-\n\x16\x43\x65rtificateFingerprint\x12\x13\n\x0bsha256_hash\x18\x01 \x01(\t\"\'\n\x08ObjectId\x12\x1b\n\x0eobject_id_path\x18\x01 \x03(\x05\x42\x03\xe0\x41\x02\"\x85\x01\n\rX509Extension\x12I\n\tobject_id\x18\x01 \x01(\x0b\x32\x31.google.cloud.security.privateca.v1beta1.ObjectIdB\x03\xe0\x41\x02\x12\x15\n\x08\x63ritical\x18\x02 \x01(\x08\x42\x03\xe0\x41\x02\x12\x12\n\x05value\x18\x03 \x01(\x0c\x42\x03\xe0\x41\x02\"\xb1\x05\n\x08KeyUsage\x12Y\n\x0e\x62\x61se_key_usage\x18\x01 \x01(\x0b\x32\x41.google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions\x12\x65\n\x12\x65xtended_key_usage\x18\x02 \x01(\x0b\x32I.google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions\x12V\n\x1bunknown_extended_key_usages\x18\x03 \x03(\x0b\x32\x31.google.cloud.security.privateca.v1beta1.ObjectId\x1a\xe7\x01\n\x0fKeyUsageOptions\x12\x19\n\x11\x64igital_signature\x18\x01 \x01(\x08\x12\x1a\n\x12\x63ontent_commitment\x18\x02 \x01(\x08\x12\x18\n\x10key_encipherment\x18\x03 \x01(\x08\x12\x19\n\x11\x64\x61ta_encipherment\x18\x04 \x01(\x08\x12\x15\n\rkey_agreement\x18\x05 \x01(\x08\x12\x11\n\tcert_sign\x18\x06 \x01(\x08\x12\x10\n\x08\x63rl_sign\x18\x07 \x01(\x08\x12\x15\n\rencipher_only\x18\x08 \x01(\x08\x12\x15\n\rdecipher_only\x18\t \x01(\x08\x1a\xa0\x01\n\x17\x45xtendedKeyUsageOptions\x12\x13\n\x0bserver_auth\x18\x01 \x01(\x08\x12\x13\n\x0b\x63lient_auth\x18\x02 \x01(\x08\x12\x14\n\x0c\x63ode_signing\x18\x03 \x01(\x08\x12\x18\n\x10\x65mail_protection\x18\x04 \x01(\x08\x12\x15\n\rtime_stamping\x18\x05 \x01(\x08\x12\x14\n\x0cocsp_signing\x18\x06 \x01(\x08\"\xa3\x01\n\x07Subject\x12\x14\n\x0c\x63ountry_code\x18\x01 \x01(\t\x12\x14\n\x0corganization\x18\x02 \x01(\t\x12\x1b\n\x13organizational_unit\x18\x03 \x01(\t\x12\x10\n\x08locality\x18\x04 \x01(\t\x12\x10\n\x08province\x18\x05 \x01(\t\x12\x16\n\x0estreet_address\x18\x06 \x01(\t\x12\x13\n\x0bpostal_code\x18\x07 \x01(\t\"\xae\x01\n\x0fSubjectAltNames\x12\x11\n\tdns_names\x18\x01 \x03(\t\x12\x0c\n\x04uris\x18\x02 \x03(\t\x12\x17\n\x0f\x65mail_addresses\x18\x03 \x03(\t\x12\x14\n\x0cip_addresses\x18\x04 \x03(\t\x12K\n\x0b\x63ustom_sans\x18\x05 \x03(\x0b\x32\x36.google.cloud.security.privateca.v1beta1.X509Extension*\x87\x02\n\x10RevocationReason\x12!\n\x1dREVOCATION_REASON_UNSPECIFIED\x10\x00\x12\x12\n\x0eKEY_COMPROMISE\x10\x01\x12$\n CERTIFICATE_AUTHORITY_COMPROMISE\x10\x02\x12\x17\n\x13\x41\x46\x46ILIATION_CHANGED\x10\x03\x12\x0e\n\nSUPERSEDED\x10\x04\x12\x1a\n\x16\x43\x45SSATION_OF_OPERATION\x10\x05\x12\x14\n\x10\x43\x45RTIFICATE_HOLD\x10\x06\x12\x17\n\x13PRIVILEGE_WITHDRAWN\x10\x07\x12\"\n\x1e\x41TTRIBUTE_AUTHORITY_COMPROMISE\x10\x08\x42\x98\x02\n+com.google.cloud.security.privateca.v1beta1B\x17PrivateCaResourcesProtoP\x01ZIcloud.google.com/go/security/privateca/apiv1beta1/privatecapb;privatecapb\xf8\x01\x01\xaa\x02\'Google.Cloud.Security.PrivateCA.V1Beta1\xca\x02\'Google\\Cloud\\Security\\PrivateCA\\V1beta1\xea\x02+Google::Cloud::Security::PrivateCA::V1beta1b\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool + +begin + pool.add_serialized_file(descriptor_data) +rescue TypeError => e + # Compatibility code: will be removed in the next major version. + require 'google/protobuf/descriptor_pb' + parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data) + parsed.clear_dependency + serialized = parsed.class.encode(parsed) + file = pool.add_serialized_file(serialized) + warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}" + imports = [ + ["google.protobuf.Duration", "google/protobuf/duration.proto"], + ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"], + ["google.protobuf.BoolValue", "google/protobuf/wrappers.proto"], + ] + imports.each do |type_name, expected_filename| + import_file = pool.lookup(type_name).file_descriptor + if import_file.name != expected_filename + warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}" end - add_message "google.cloud.security.privateca.v1beta1.CertificateAuthority.IssuingOptions" do - optional :include_ca_cert_url, :bool, 1 - optional :include_crl_access_url, :bool, 2 - end - add_message "google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy" do - repeated :allowed_locations_and_organizations, :message, 3, "google.cloud.security.privateca.v1beta1.Subject" - repeated :allowed_common_names, :string, 4 - optional :allowed_sans, :message, 5, "google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames" - optional :maximum_lifetime, :message, 6, "google.protobuf.Duration" - optional :allowed_issuance_modes, :message, 8, "google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes" - oneof :config_policy do - optional :allowed_config_list, :message, 1, "google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList" - optional :overwrite_config_values, :message, 2, "google.cloud.security.privateca.v1beta1.ReusableConfigWrapper" - end - end - add_message "google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedConfigList" do - repeated :allowed_config_values, :message, 1, "google.cloud.security.privateca.v1beta1.ReusableConfigWrapper" - end - add_message "google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.AllowedSubjectAltNames" do - repeated :allowed_dns_names, :string, 1 - repeated :allowed_uris, :string, 2 - repeated :allowed_email_addresses, :string, 3 - repeated :allowed_ips, :string, 4 - optional :allow_globbing_dns_wildcards, :bool, 5 - optional :allow_custom_sans, :bool, 6 - end - add_message "google.cloud.security.privateca.v1beta1.CertificateAuthority.CertificateAuthorityPolicy.IssuanceModes" do - optional :allow_csr_based_issuance, :bool, 1 - optional :allow_config_based_issuance, :bool, 2 - end - add_message "google.cloud.security.privateca.v1beta1.CertificateAuthority.AccessUrls" do - optional :ca_certificate_access_url, :string, 1 - optional :crl_access_url, :string, 2 - end - add_message "google.cloud.security.privateca.v1beta1.CertificateAuthority.KeyVersionSpec" do - oneof :KeyVersion do - optional :cloud_kms_key_version, :string, 1 - optional :algorithm, :enum, 2, "google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm" - end - end - add_enum "google.cloud.security.privateca.v1beta1.CertificateAuthority.Type" do - value :TYPE_UNSPECIFIED, 0 - value :SELF_SIGNED, 1 - value :SUBORDINATE, 2 - end - add_enum "google.cloud.security.privateca.v1beta1.CertificateAuthority.Tier" do - value :TIER_UNSPECIFIED, 0 - value :ENTERPRISE, 1 - value :DEVOPS, 2 - end - add_enum "google.cloud.security.privateca.v1beta1.CertificateAuthority.State" do - value :STATE_UNSPECIFIED, 0 - value :ENABLED, 1 - value :DISABLED, 2 - value :PENDING_ACTIVATION, 3 - value :PENDING_DELETION, 4 - end - add_enum "google.cloud.security.privateca.v1beta1.CertificateAuthority.SignHashAlgorithm" do - value :SIGN_HASH_ALGORITHM_UNSPECIFIED, 0 - value :RSA_PSS_2048_SHA256, 1 - value :RSA_PSS_3072_SHA256, 2 - value :RSA_PSS_4096_SHA256, 3 - value :RSA_PKCS1_2048_SHA256, 6 - value :RSA_PKCS1_3072_SHA256, 7 - value :RSA_PKCS1_4096_SHA256, 8 - value :EC_P256_SHA256, 4 - value :EC_P384_SHA384, 5 - end - add_message "google.cloud.security.privateca.v1beta1.CertificateRevocationList" do - optional :name, :string, 1 - optional :sequence_number, :int64, 2 - repeated :revoked_certificates, :message, 3, "google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate" - optional :pem_crl, :string, 4 - optional :access_url, :string, 5 - optional :state, :enum, 6, "google.cloud.security.privateca.v1beta1.CertificateRevocationList.State" - optional :create_time, :message, 7, "google.protobuf.Timestamp" - optional :update_time, :message, 8, "google.protobuf.Timestamp" - map :labels, :string, :string, 9 - end - add_message "google.cloud.security.privateca.v1beta1.CertificateRevocationList.RevokedCertificate" do - optional :certificate, :string, 1 - optional :hex_serial_number, :string, 2 - optional :revocation_reason, :enum, 3, "google.cloud.security.privateca.v1beta1.RevocationReason" - end - add_enum "google.cloud.security.privateca.v1beta1.CertificateRevocationList.State" do - value :STATE_UNSPECIFIED, 0 - value :ACTIVE, 1 - value :SUPERSEDED, 2 - end - add_message "google.cloud.security.privateca.v1beta1.Certificate" do - optional :name, :string, 1 - optional :lifetime, :message, 4, "google.protobuf.Duration" - optional :revocation_details, :message, 5, "google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails" - optional :pem_certificate, :string, 6 - optional :certificate_description, :message, 7, "google.cloud.security.privateca.v1beta1.CertificateDescription" - repeated :pem_certificate_chain, :string, 8 - optional :create_time, :message, 9, "google.protobuf.Timestamp" - optional :update_time, :message, 10, "google.protobuf.Timestamp" - map :labels, :string, :string, 11 - oneof :certificate_config do - optional :pem_csr, :string, 2 - optional :config, :message, 3, "google.cloud.security.privateca.v1beta1.CertificateConfig" - end - end - add_message "google.cloud.security.privateca.v1beta1.Certificate.RevocationDetails" do - optional :revocation_state, :enum, 1, "google.cloud.security.privateca.v1beta1.RevocationReason" - optional :revocation_time, :message, 2, "google.protobuf.Timestamp" - end - add_message "google.cloud.security.privateca.v1beta1.ReusableConfig" do - optional :name, :string, 1 - optional :values, :message, 2, "google.cloud.security.privateca.v1beta1.ReusableConfigValues" - optional :description, :string, 3 - optional :create_time, :message, 4, "google.protobuf.Timestamp" - optional :update_time, :message, 5, "google.protobuf.Timestamp" - map :labels, :string, :string, 6 - end - add_message "google.cloud.security.privateca.v1beta1.ReusableConfigValues" do - optional :key_usage, :message, 1, "google.cloud.security.privateca.v1beta1.KeyUsage" - optional :ca_options, :message, 2, "google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions" - repeated :policy_ids, :message, 3, "google.cloud.security.privateca.v1beta1.ObjectId" - repeated :aia_ocsp_servers, :string, 4 - repeated :additional_extensions, :message, 5, "google.cloud.security.privateca.v1beta1.X509Extension" - end - add_message "google.cloud.security.privateca.v1beta1.ReusableConfigValues.CaOptions" do - optional :is_ca, :message, 1, "google.protobuf.BoolValue" - optional :max_issuer_path_length, :message, 2, "google.protobuf.Int32Value" - end - add_message "google.cloud.security.privateca.v1beta1.ReusableConfigWrapper" do - oneof :config_values do - optional :reusable_config, :string, 1 - optional :reusable_config_values, :message, 2, "google.cloud.security.privateca.v1beta1.ReusableConfigValues" - end - end - add_message "google.cloud.security.privateca.v1beta1.SubordinateConfig" do - oneof :subordinate_config do - optional :certificate_authority, :string, 1 - optional :pem_issuer_chain, :message, 2, "google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain" - end - end - add_message "google.cloud.security.privateca.v1beta1.SubordinateConfig.SubordinateConfigChain" do - repeated :pem_certificates, :string, 1 - end - add_message "google.cloud.security.privateca.v1beta1.PublicKey" do - optional :type, :enum, 1, "google.cloud.security.privateca.v1beta1.PublicKey.KeyType" - optional :key, :bytes, 2 - end - add_enum "google.cloud.security.privateca.v1beta1.PublicKey.KeyType" do - value :KEY_TYPE_UNSPECIFIED, 0 - value :PEM_RSA_KEY, 1 - value :PEM_EC_KEY, 2 - end - add_message "google.cloud.security.privateca.v1beta1.CertificateConfig" do - optional :subject_config, :message, 1, "google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig" - optional :reusable_config, :message, 2, "google.cloud.security.privateca.v1beta1.ReusableConfigWrapper" - optional :public_key, :message, 3, "google.cloud.security.privateca.v1beta1.PublicKey" - end - add_message "google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig" do - optional :subject, :message, 1, "google.cloud.security.privateca.v1beta1.Subject" - optional :common_name, :string, 2 - optional :subject_alt_name, :message, 3, "google.cloud.security.privateca.v1beta1.SubjectAltNames" - end - add_message "google.cloud.security.privateca.v1beta1.CertificateDescription" do - optional :subject_description, :message, 1, "google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription" - optional :config_values, :message, 2, "google.cloud.security.privateca.v1beta1.ReusableConfigValues" - optional :public_key, :message, 3, "google.cloud.security.privateca.v1beta1.PublicKey" - optional :subject_key_id, :message, 4, "google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId" - optional :authority_key_id, :message, 5, "google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId" - repeated :crl_distribution_points, :string, 6 - repeated :aia_issuing_certificate_urls, :string, 7 - optional :cert_fingerprint, :message, 8, "google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint" - end - add_message "google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription" do - optional :subject, :message, 1, "google.cloud.security.privateca.v1beta1.Subject" - optional :common_name, :string, 2 - optional :subject_alt_name, :message, 3, "google.cloud.security.privateca.v1beta1.SubjectAltNames" - optional :hex_serial_number, :string, 4 - optional :lifetime, :message, 5, "google.protobuf.Duration" - optional :not_before_time, :message, 6, "google.protobuf.Timestamp" - optional :not_after_time, :message, 7, "google.protobuf.Timestamp" - end - add_message "google.cloud.security.privateca.v1beta1.CertificateDescription.KeyId" do - optional :key_id, :string, 1 - end - add_message "google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint" do - optional :sha256_hash, :string, 1 - end - add_message "google.cloud.security.privateca.v1beta1.ObjectId" do - repeated :object_id_path, :int32, 1 - end - add_message "google.cloud.security.privateca.v1beta1.X509Extension" do - optional :object_id, :message, 1, "google.cloud.security.privateca.v1beta1.ObjectId" - optional :critical, :bool, 2 - optional :value, :bytes, 3 - end - add_message "google.cloud.security.privateca.v1beta1.KeyUsage" do - optional :base_key_usage, :message, 1, "google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions" - optional :extended_key_usage, :message, 2, "google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions" - repeated :unknown_extended_key_usages, :message, 3, "google.cloud.security.privateca.v1beta1.ObjectId" - end - add_message "google.cloud.security.privateca.v1beta1.KeyUsage.KeyUsageOptions" do - optional :digital_signature, :bool, 1 - optional :content_commitment, :bool, 2 - optional :key_encipherment, :bool, 3 - optional :data_encipherment, :bool, 4 - optional :key_agreement, :bool, 5 - optional :cert_sign, :bool, 6 - optional :crl_sign, :bool, 7 - optional :encipher_only, :bool, 8 - optional :decipher_only, :bool, 9 - end - add_message "google.cloud.security.privateca.v1beta1.KeyUsage.ExtendedKeyUsageOptions" do - optional :server_auth, :bool, 1 - optional :client_auth, :bool, 2 - optional :code_signing, :bool, 3 - optional :email_protection, :bool, 4 - optional :time_stamping, :bool, 5 - optional :ocsp_signing, :bool, 6 - end - add_message "google.cloud.security.privateca.v1beta1.Subject" do - optional :country_code, :string, 1 - optional :organization, :string, 2 - optional :organizational_unit, :string, 3 - optional :locality, :string, 4 - optional :province, :string, 5 - optional :street_address, :string, 6 - optional :postal_code, :string, 7 - end - add_message "google.cloud.security.privateca.v1beta1.SubjectAltNames" do - repeated :dns_names, :string, 1 - repeated :uris, :string, 2 - repeated :email_addresses, :string, 3 - repeated :ip_addresses, :string, 4 - repeated :custom_sans, :message, 5, "google.cloud.security.privateca.v1beta1.X509Extension" - end - add_enum "google.cloud.security.privateca.v1beta1.RevocationReason" do - value :REVOCATION_REASON_UNSPECIFIED, 0 - value :KEY_COMPROMISE, 1 - value :CERTIFICATE_AUTHORITY_COMPROMISE, 2 - value :AFFILIATION_CHANGED, 3 - value :SUPERSEDED, 4 - value :CESSATION_OF_OPERATION, 5 - value :CERTIFICATE_HOLD, 6 - value :PRIVILEGE_WITHDRAWN, 7 - value :ATTRIBUTE_AUTHORITY_COMPROMISE, 8 - end end + warn "Each proto file must use a consistent fully-qualified name." + warn "This will become an error in the next major version." end module Google module Cloud module Security