Required. The fields to update. Accepts the following values: * * intended_enablement_state * * modules If omitted, then all eligible fields are updated.
↳ validate_only
bool
Optional. When set to true, the request will be validated (including IAM checks), but no service will be updated. An OK response indicates that the request is valid, while an error response indicates that the request is invalid. If the request is valid, a subsequent request to update the service could still fail for one of the following reasons: * * The state of your cloud resources changed; for example, you lost a required IAM permission * * An error occurred during update of the service Defaults to false.
Optional. When set to true, the request will be validated (including IAM
checks), but no service will be updated. An OK response indicates that
the request is valid, while an error response indicates that the request is
invalid.
If the request is valid, a subsequent request to update the service could
still fail for one of the following reasons:
The state of your cloud resources changed; for example, you lost a
required IAM permission
An error occurred during update of the service
Defaults to false.
Returns
Type
Description
bool
setValidateOnly
Optional. When set to true, the request will be validated (including IAM
checks), but no service will be updated. An OK response indicates that
the request is valid, while an error response indicates that the request is
invalid.
If the request is valid, a subsequent request to update the service could
still fail for one of the following reasons:
The state of your cloud resources changed; for example, you lost a
required IAM permission
An error occurred during update of the service
Defaults to false.
[[["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 Security Center Management V1 Client - Class UpdateSecurityCenterServiceRequest (1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/php/docs/reference/cloud-securitycentermanagement/latest/V1.UpdateSecurityCenterServiceRequest)\n- [1.2.0](/php/docs/reference/cloud-securitycentermanagement/1.2.0/V1.UpdateSecurityCenterServiceRequest)\n- [1.1.3](/php/docs/reference/cloud-securitycentermanagement/1.1.3/V1.UpdateSecurityCenterServiceRequest)\n- [1.0.0](/php/docs/reference/cloud-securitycentermanagement/1.0.0/V1.UpdateSecurityCenterServiceRequest)\n- [0.3.2](/php/docs/reference/cloud-securitycentermanagement/0.3.2/V1.UpdateSecurityCenterServiceRequest)\n- [0.2.7](/php/docs/reference/cloud-securitycentermanagement/0.2.7/V1.UpdateSecurityCenterServiceRequest)\n- [0.1.0](/php/docs/reference/cloud-securitycentermanagement/0.1.0/V1.UpdateSecurityCenterServiceRequest) \nReference documentation and code samples for the Google Cloud Security Center Management V1 Client class UpdateSecurityCenterServiceRequest.\n\nRequest message for\n[SecurityCenterManagement.UpdateSecurityCenterService](/php/docs/reference/cloud-securitycentermanagement/latest/V1.Client.SecurityCenterManagementClient#_Google_Cloud_SecurityCenterManagement_V1_Client_SecurityCenterManagementClient__updateSecurityCenterService__).\n\nGenerated from protobuf message `google.cloud.securitycentermanagement.v1.UpdateSecurityCenterServiceRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ SecurityCenterManagement \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getSecurityCenterService\n\nRequired. The updated service.\n\n### hasSecurityCenterService\n\n### clearSecurityCenterService\n\n### setSecurityCenterService\n\nRequired. The updated service.\n\n### getUpdateMask\n\nRequired. The fields to update. Accepts the following values:\n\n- `intended_enablement_state`\n- `modules` If omitted, then all eligible fields are updated.\n\n### hasUpdateMask\n\n### clearUpdateMask\n\n### setUpdateMask\n\nRequired. The fields to update. Accepts the following values:\n\n- `intended_enablement_state`\n- `modules` If omitted, then all eligible fields are updated.\n\n### getValidateOnly\n\nOptional. When set to `true`, the request will be validated (including IAM\nchecks), but no service will be updated. An `OK` response indicates that\nthe request is valid, while an error response indicates that the request is\ninvalid.\n\nIf the request is valid, a subsequent request to update the service could\nstill fail for one of the following reasons:\n\n- The state of your cloud resources changed; for example, you lost a required IAM permission\n- An error occurred during update of the service Defaults to `false`.\n\n### setValidateOnly\n\nOptional. When set to `true`, the request will be validated (including IAM\nchecks), but no service will be updated. An `OK` response indicates that\nthe request is valid, while an error response indicates that the request is\ninvalid.\n\nIf the request is valid, a subsequent request to update the service could\nstill fail for one of the following reasons:\n\n- The state of your cloud resources changed; for example, you lost a required IAM permission\n- An error occurred during update of the service Defaults to `false`.\n\n### static::build"]]