Reference documentation and code samples for the Google Cloud Service Usage V1 Client class BatchEnableServicesRequest.
Request message for the BatchEnableServices method.
Generated from protobuf message google.api.serviceusage.v1.BatchEnableServicesRequest
Namespace
Google \ Cloud \ ServiceUsage \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
Parent to enable services on. An example name would be: projects/123 where 123 is the project number. The BatchEnableServices method currently only supports projects.
↳ service_ids
array
The identifiers of the services to enable on the project. A valid identifier would be: serviceusage.googleapis.com Enabling services requires that each service is public or is shared with the user enabling the service. A single request can enable a maximum of 20 services at a time. If more than 20 services are specified, the request will fail, and no state changes will occur.
getParent
Parent to enable services on.
An example name would be:
projects/123 where 123 is the project number.
The BatchEnableServices method currently only supports projects.
Returns
Type
Description
string
setParent
Parent to enable services on.
An example name would be:
projects/123 where 123 is the project number.
The BatchEnableServices method currently only supports projects.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getServiceIds
The identifiers of the services to enable on the project.
A valid identifier would be:
serviceusage.googleapis.com
Enabling services requires that each service is public or is shared with
the user enabling the service.
A single request can enable a maximum of 20 services at a time. If more
than 20 services are specified, the request will fail, and no state changes
will occur.
The identifiers of the services to enable on the project.
A valid identifier would be:
serviceusage.googleapis.com
Enabling services requires that each service is public or is shared with
the user enabling the service.
A single request can enable a maximum of 20 services at a time. If more
than 20 services are specified, the request will fail, and no state changes
will occur.
[[["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 Service Usage V1 Client - Class BatchEnableServicesRequest (2.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.4 (latest)](/php/docs/reference/cloud-service-usage/latest/V1.BatchEnableServicesRequest)\n- [2.0.3](/php/docs/reference/cloud-service-usage/2.0.3/V1.BatchEnableServicesRequest)\n- [1.3.4](/php/docs/reference/cloud-service-usage/1.3.4/V1.BatchEnableServicesRequest)\n- [1.2.3](/php/docs/reference/cloud-service-usage/1.2.3/V1.BatchEnableServicesRequest)\n- [1.1.1](/php/docs/reference/cloud-service-usage/1.1.1/V1.BatchEnableServicesRequest)\n- [1.0.5](/php/docs/reference/cloud-service-usage/1.0.5/V1.BatchEnableServicesRequest) \nReference documentation and code samples for the Google Cloud Service Usage V1 Client class BatchEnableServicesRequest.\n\nRequest message for the `BatchEnableServices` method.\n\nGenerated from protobuf message `google.api.serviceusage.v1.BatchEnableServicesRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ServiceUsage \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nParent to enable services on.\n\nAn example name would be:\n`projects/123` where `123` is the project number.\nThe `BatchEnableServices` method currently only supports projects.\n\n### setParent\n\nParent to enable services on.\n\nAn example name would be:\n`projects/123` where `123` is the project number.\nThe `BatchEnableServices` method currently only supports projects.\n\n### getServiceIds\n\nThe identifiers of the services to enable on the project.\n\nA valid identifier would be:\nserviceusage.googleapis.com\nEnabling services requires that each service is public or is shared with\nthe user enabling the service.\nA single request can enable a maximum of 20 services at a time. If more\nthan 20 services are specified, the request will fail, and no state changes\nwill occur.\n\n### setServiceIds\n\nThe identifiers of the services to enable on the project.\n\nA valid identifier would be:\nserviceusage.googleapis.com\nEnabling services requires that each service is public or is shared with\nthe user enabling the service.\nA single request can enable a maximum of 20 services at a time. If more\nthan 20 services are specified, the request will fail, and no state changes\nwill occur."]]