Reference documentation and code samples for the Google Cloud Apigee Registry V1 Client class DeleteApiVersionRequest.
Request message for DeleteApiVersion.
Generated from protobuf message google.cloud.apigeeregistry.v1.DeleteApiVersionRequest
Namespace
Google \ Cloud \ ApigeeRegistry \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. The name of the version to delete. Format: projects/*/locations/*/apis/*/versions/*
↳ force
bool
If set to true, any child resources will also be deleted. (Otherwise, the request will only work if there are no child resources.)
getName
Required. The name of the version to delete.
Format: projects/*/locations/*/apis/*/versions/*
Returns
Type
Description
string
setName
Required. The name of the version to delete.
Format: projects/*/locations/*/apis/*/versions/*
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getForce
If set to true, any child resources will also be deleted.
(Otherwise, the request will only work if there are no child resources.)
Returns
Type
Description
bool
setForce
If set to true, any child resources will also be deleted.
(Otherwise, the request will only work if there are no child resources.)
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
static::build
Parameter
Name
Description
name
string
Required. The name of the version to delete.
Format: projects/*/locations/*/apis/*/versions/*
Please see RegistryClient::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 DeleteApiVersionRequest (1.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.4 (latest)](/php/docs/reference/cloud-apigee-registry/latest/V1.DeleteApiVersionRequest)\n- [1.0.3](/php/docs/reference/cloud-apigee-registry/1.0.3/V1.DeleteApiVersionRequest)\n- [0.5.5](/php/docs/reference/cloud-apigee-registry/0.5.5/V1.DeleteApiVersionRequest)\n- [0.4.2](/php/docs/reference/cloud-apigee-registry/0.4.2/V1.DeleteApiVersionRequest)\n- [0.3.2](/php/docs/reference/cloud-apigee-registry/0.3.2/V1.DeleteApiVersionRequest)\n- [0.2.7](/php/docs/reference/cloud-apigee-registry/0.2.7/V1.DeleteApiVersionRequest) \nReference documentation and code samples for the Google Cloud Apigee Registry V1 Client class DeleteApiVersionRequest.\n\nRequest message for DeleteApiVersion.\n\nGenerated from protobuf message `google.cloud.apigeeregistry.v1.DeleteApiVersionRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ApigeeRegistry \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. The name of the version to delete.\n\nFormat: `projects/*/locations/*/apis/*/versions/*`\n\n### setName\n\nRequired. The name of the version to delete.\n\nFormat: `projects/*/locations/*/apis/*/versions/*`\n\n### getForce\n\nIf set to true, any child resources will also be deleted.\n\n(Otherwise, the request will only work if there are no child resources.)\n\n### setForce\n\nIf set to true, any child resources will also be deleted.\n\n(Otherwise, the request will only work if there are no child resources.)\n\n### static::build"]]