Required. The ID to use for the spec, which will become the final component of the spec's resource name. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. Following AIP-162, IDs must not have the form of a UUID.
getParent
Required. The parent, which owns this collection of specs.
Format:projects/*/locations/*/apis/*/versions/*
Returns
Type
Description
string
setParent
Required. The parent, which owns this collection of specs.
Required. The ID to use for the spec, which will become the final component of
the spec's resource name.
This value should be 4-63 characters, and valid characters
are /[a-z][0-9]-/.
Following AIP-162, IDs must not have the form of a UUID.
Returns
Type
Description
string
setApiSpecId
Required. The ID to use for the spec, which will become the final component of
the spec's resource name.
This value should be 4-63 characters, and valid characters
are /[a-z][0-9]-/.
Following AIP-162, IDs must not have the form of a UUID.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameters
Name
Description
parent
string
Required. The parent, which owns this collection of specs.
Format:projects/*/locations/*/apis/*/versions/*Please seeRegistryClient::apiVersionName()for help formatting this field.
[[["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 Cloud Apigee Registry V1 Client - Class CreateApiSpecRequest (1.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.4 (latest)](/php/docs/reference/cloud-apigee-registry/latest/V1.CreateApiSpecRequest)\n- [1.0.3](/php/docs/reference/cloud-apigee-registry/1.0.3/V1.CreateApiSpecRequest)\n- [0.5.5](/php/docs/reference/cloud-apigee-registry/0.5.5/V1.CreateApiSpecRequest)\n- [0.4.2](/php/docs/reference/cloud-apigee-registry/0.4.2/V1.CreateApiSpecRequest)\n- [0.3.2](/php/docs/reference/cloud-apigee-registry/0.3.2/V1.CreateApiSpecRequest)\n- [0.2.7](/php/docs/reference/cloud-apigee-registry/0.2.7/V1.CreateApiSpecRequest) \nReference documentation and code samples for the Google Cloud Apigee Registry V1 Client class CreateApiSpecRequest.\n\nRequest message for CreateApiSpec.\n\nGenerated from protobuf message `google.cloud.apigeeregistry.v1.CreateApiSpecRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ApigeeRegistry \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The parent, which owns this collection of specs.\n\nFormat: `projects/*/locations/*/apis/*/versions/*`\n\n### setParent\n\nRequired. The parent, which owns this collection of specs.\n\nFormat: `projects/*/locations/*/apis/*/versions/*`\n\n### getApiSpec\n\nRequired. The spec to create.\n\n### hasApiSpec\n\n### clearApiSpec\n\n### setApiSpec\n\nRequired. The spec to create.\n\n### getApiSpecId\n\nRequired. The ID to use for the spec, which will become the final component of\nthe spec's resource name.\n\nThis value should be 4-63 characters, and valid characters\nare /\\[a-z\\]\\[0-9\\]-/.\nFollowing AIP-162, IDs must not have the form of a UUID.\n\n### setApiSpecId\n\nRequired. The ID to use for the spec, which will become the final component of\nthe spec's resource name.\n\nThis value should be 4-63 characters, and valid characters\nare /\\[a-z\\]\\[0-9\\]-/.\nFollowing AIP-162, IDs must not have the form of a UUID.\n\n### static::build"]]