Generated from protobuf message google.cloud.security.privateca.v1.CreateCertificateRequest
Namespace
Google \ Cloud \ Security \ PrivateCA \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The resource name of the CaPool associated with the Certificate, in the format projects/*/locations/*/caPools/*.
↳ certificate_id
string
Optional. It must be unique within a location and match the regular expression [a-zA-Z0-9_-]{1,63}. This field is required when using a CertificateAuthority in the Enterprise CertificateAuthority.tier, but is optional and its value is ignored otherwise.
Required. A Certificate with initial field values.
↳ request_id
string
Optional. An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
Optional. The resource ID of the CertificateAuthority that should issue the certificate. This optional field will ignore the load-balancing scheme of the Pool and directly issue the certificate from the CA with the specified ID, contained in the same CaPool referenced by parent. Per-CA quota rules apply. If left empty, a CertificateAuthority will be chosen from the CaPool by the service. For example, to issue a Certificate from a Certificate Authority with resource name "projects/my-project/locations/us-central1/caPools/my-pool/certificateAuthorities/my-ca", you can set the parent to "projects/my-project/locations/us-central1/caPools/my-pool" and the issuing_certificate_authority_id to "my-ca".
getParent
Required. The resource name of the
CaPool associated with the
Certificate, in the
format projects/*/locations/*/caPools/*.
Returns
Type
Description
string
setParent
Required. The resource name of the
CaPool associated with the
Certificate, in the
format projects/*/locations/*/caPools/*.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getCertificateId
Optional. It must be unique within a location and match the regular
expression [a-zA-Z0-9_-]{1,63}. This field is required when using a
CertificateAuthority
in the Enterprise
CertificateAuthority.tier,
but is optional and its value is ignored otherwise.
Returns
Type
Description
string
setCertificateId
Optional. It must be unique within a location and match the regular
expression [a-zA-Z0-9_-]{1,63}. This field is required when using a
CertificateAuthority
in the Enterprise
CertificateAuthority.tier,
but is optional and its value is ignored otherwise.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getCertificate
Required. A Certificate
with initial field values.
Optional. An ID to identify requests. Specify a unique request ID so that
if you must retry your request, the server will know to ignore the request
if it has already been completed. The server will guarantee that for at
least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request ID,
the server can check if original operation with the same request ID was
received, and if so, will ignore the second request. This prevents clients
from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
Returns
Type
Description
string
setRequestId
Optional. An ID to identify requests. Specify a unique request ID so that
if you must retry your request, the server will know to ignore the request
if it has already been completed. The server will guarantee that for at
least 60 minutes since the first request.
For example, consider a situation where you make an initial request and the
request times out. If you make the request again with the same request ID,
the server can check if original operation with the same request ID was
received, and if so, will ignore the second request. This prevents clients
from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
Optional. The resource ID of the
CertificateAuthority
that should issue the certificate. This optional field will ignore the
load-balancing scheme of the Pool and directly issue the certificate from
the CA with the specified ID, contained in the same
CaPool referenced by parent.
Per-CA quota rules apply. If left empty, a
CertificateAuthority
will be chosen from the CaPool
by the service. For example, to issue a
Certificate from a
Certificate Authority with resource name
"projects/my-project/locations/us-central1/caPools/my-pool/certificateAuthorities/my-ca",
you can set the
parent
to "projects/my-project/locations/us-central1/caPools/my-pool" and the
issuing_certificate_authority_id
to "my-ca".
Returns
Type
Description
string
setIssuingCertificateAuthorityId
Optional. The resource ID of the
CertificateAuthority
that should issue the certificate. This optional field will ignore the
load-balancing scheme of the Pool and directly issue the certificate from
the CA with the specified ID, contained in the same
CaPool referenced by parent.
Per-CA quota rules apply. If left empty, a
CertificateAuthority
will be chosen from the CaPool
by the service. For example, to issue a
Certificate from a
Certificate Authority with resource name
"projects/my-project/locations/us-central1/caPools/my-pool/certificateAuthorities/my-ca",
you can set the
parent
to "projects/my-project/locations/us-central1/caPools/my-pool" and the
issuing_certificate_authority_id
to "my-ca".
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameters
Name
Description
parent
string
Required. The resource name of the
CaPool associated with the
Certificate, in the
format projects/*/locations/*/caPools/*. Please see
CertificateAuthorityServiceClient::caPoolName() for help formatting this field.
Required. A Certificate
with initial field values.
certificateId
string
Optional. It must be unique within a location and match the regular
expression [a-zA-Z0-9_-]{1,63}. This field is required when using a
CertificateAuthority
in the Enterprise
CertificateAuthority.tier,
but is optional and its value is ignored otherwise.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Certificate Authority Service V1 Client - Class CreateCertificateRequest (2.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.1 (latest)](/php/docs/reference/cloud-security-private-ca/latest/V1.CreateCertificateRequest)\n- [2.1.0](/php/docs/reference/cloud-security-private-ca/2.1.0/V1.CreateCertificateRequest)\n- [2.0.3](/php/docs/reference/cloud-security-private-ca/2.0.3/V1.CreateCertificateRequest)\n- [1.7.3](/php/docs/reference/cloud-security-private-ca/1.7.3/V1.CreateCertificateRequest)\n- [1.5.0](/php/docs/reference/cloud-security-private-ca/1.5.0/V1.CreateCertificateRequest)\n- [1.4.2](/php/docs/reference/cloud-security-private-ca/1.4.2/V1.CreateCertificateRequest)\n- [1.3.1](/php/docs/reference/cloud-security-private-ca/1.3.1/V1.CreateCertificateRequest)\n- [1.2.2](/php/docs/reference/cloud-security-private-ca/1.2.2/V1.CreateCertificateRequest)\n- [1.1.0](/php/docs/reference/cloud-security-private-ca/1.1.0/V1.CreateCertificateRequest)\n- [1.0.3](/php/docs/reference/cloud-security-private-ca/1.0.3/V1.CreateCertificateRequest) \nReference documentation and code samples for the Google Certificate Authority Service V1 Client class CreateCertificateRequest.\n\nRequest message for\n[CertificateAuthorityService.CreateCertificate](/php/docs/reference/cloud-security-private-ca/latest/V1.Client.CertificateAuthorityServiceClient#_Google_Cloud_Security_PrivateCA_V1_Client_CertificateAuthorityServiceClient__createCertificate__).\n\nGenerated from protobuf message `google.cloud.security.privateca.v1.CreateCertificateRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Security \\\\ PrivateCA \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The resource name of the\n[CaPool](/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool) associated with the\n[Certificate](/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate), in the\nformat `projects/*/locations/*/caPools/*`.\n\n### setParent\n\nRequired. The resource name of the\n[CaPool](/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool) associated with the\n[Certificate](/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate), in the\nformat `projects/*/locations/*/caPools/*`.\n\n### getCertificateId\n\nOptional. It must be unique within a location and match the regular\nexpression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a\n[CertificateAuthority](/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateAuthority)\nin the Enterprise\n[CertificateAuthority.tier](/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateAuthority#_Google_Cloud_Security_PrivateCA_V1_CertificateAuthority__getTier__),\nbut is optional and its value is ignored otherwise.\n\n### setCertificateId\n\nOptional. It must be unique within a location and match the regular\nexpression `[a-zA-Z0-9_-]{1,63}`. This field is required when using a\n[CertificateAuthority](/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateAuthority)\nin the Enterprise\n[CertificateAuthority.tier](/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateAuthority#_Google_Cloud_Security_PrivateCA_V1_CertificateAuthority__getTier__),\nbut is optional and its value is ignored otherwise.\n\n### getCertificate\n\nRequired. A [Certificate](/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate)\nwith initial field values.\n\n### hasCertificate\n\n### clearCertificate\n\n### setCertificate\n\nRequired. A [Certificate](/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate)\nwith initial field values.\n\n### getRequestId\n\nOptional. An ID to identify requests. Specify a unique request ID so that\nif you must retry your request, the server will know to ignore the request\nif it has already been completed. The server will guarantee that for at\nleast 60 minutes since the first request.\n\nFor example, consider a situation where you make an initial request and the\nrequest times out. If you make the request again with the same request ID,\nthe server can check if original operation with the same request ID was\nreceived, and if so, will ignore the second request. This prevents clients\nfrom accidentally creating duplicate commitments.\nThe request ID must be a valid UUID with the exception that zero UUID is\nnot supported (00000000-0000-0000-0000-000000000000).\n\n### setRequestId\n\nOptional. An ID to identify requests. Specify a unique request ID so that\nif you must retry your request, the server will know to ignore the request\nif it has already been completed. The server will guarantee that for at\nleast 60 minutes since the first request.\n\nFor example, consider a situation where you make an initial request and the\nrequest times out. If you make the request again with the same request ID,\nthe server can check if original operation with the same request ID was\nreceived, and if so, will ignore the second request. This prevents clients\nfrom accidentally creating duplicate commitments.\nThe request ID must be a valid UUID with the exception that zero UUID is\nnot supported (00000000-0000-0000-0000-000000000000).\n\n### getValidateOnly\n\nOptional. If this is true, no\n[Certificate](/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) resource will\nbe persisted regardless of the\n[CaPool](/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool)'s\n[tier](/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool#_Google_Cloud_Security_PrivateCA_V1_CaPool__getTier__), and the returned\n[Certificate](/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) will not\ncontain the\n[pem_certificate](/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate#_Google_Cloud_Security_PrivateCA_V1_Certificate__getPemCertificate__)\nfield.\n\n### setValidateOnly\n\nOptional. If this is true, no\n[Certificate](/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) resource will\nbe persisted regardless of the\n[CaPool](/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool)'s\n[tier](/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool#_Google_Cloud_Security_PrivateCA_V1_CaPool__getTier__), and the returned\n[Certificate](/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) will not\ncontain the\n[pem_certificate](/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate#_Google_Cloud_Security_PrivateCA_V1_Certificate__getPemCertificate__)\nfield.\n\n### getIssuingCertificateAuthorityId\n\nOptional. The resource ID of the\n[CertificateAuthority](/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateAuthority)\nthat should issue the certificate. This optional field will ignore the\nload-balancing scheme of the Pool and directly issue the certificate from\nthe CA with the specified ID, contained in the same\n[CaPool](/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool) referenced by `parent`.\n\nPer-CA quota rules apply. If left empty, a\n[CertificateAuthority](/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateAuthority)\nwill be chosen from the [CaPool](/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool)\nby the service. For example, to issue a\n[Certificate](/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) from a\nCertificate Authority with resource name\n\"projects/my-project/locations/us-central1/caPools/my-pool/certificateAuthorities/my-ca\",\nyou can set the\n[parent](/php/docs/reference/cloud-security-private-ca/latest/V1.CreateCertificateRequest#_Google_Cloud_Security_PrivateCA_V1_CreateCertificateRequest__getParent__)\nto \"projects/my-project/locations/us-central1/caPools/my-pool\" and the\n[issuing_certificate_authority_id](/php/docs/reference/cloud-security-private-ca/latest/V1.CreateCertificateRequest#_Google_Cloud_Security_PrivateCA_V1_CreateCertificateRequest__getIssuingCertificateAuthorityId__)\nto \"my-ca\".\n\n### setIssuingCertificateAuthorityId\n\nOptional. The resource ID of the\n[CertificateAuthority](/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateAuthority)\nthat should issue the certificate. This optional field will ignore the\nload-balancing scheme of the Pool and directly issue the certificate from\nthe CA with the specified ID, contained in the same\n[CaPool](/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool) referenced by `parent`.\n\nPer-CA quota rules apply. If left empty, a\n[CertificateAuthority](/php/docs/reference/cloud-security-private-ca/latest/V1.CertificateAuthority)\nwill be chosen from the [CaPool](/php/docs/reference/cloud-security-private-ca/latest/V1.CaPool)\nby the service. For example, to issue a\n[Certificate](/php/docs/reference/cloud-security-private-ca/latest/V1.Certificate) from a\nCertificate Authority with resource name\n\"projects/my-project/locations/us-central1/caPools/my-pool/certificateAuthorities/my-ca\",\nyou can set the\n[parent](/php/docs/reference/cloud-security-private-ca/latest/V1.CreateCertificateRequest#_Google_Cloud_Security_PrivateCA_V1_CreateCertificateRequest__getParent__)\nto \"projects/my-project/locations/us-central1/caPools/my-pool\" and the\n[issuing_certificate_authority_id](/php/docs/reference/cloud-security-private-ca/latest/V1.CreateCertificateRequest#_Google_Cloud_Security_PrivateCA_V1_CreateCertificateRequest__getIssuingCertificateAuthorityId__)\nto \"my-ca\".\n\n### static::build"]]