Reference documentation and code samples for the Google Cloud Service Directory V1 Client class CreateServiceRequest.
The request message for RegistrationService.CreateService .
Generated from protobuf message google.cloud.servicedirectory.v1.CreateServiceRequest
Namespace
Google \ Cloud \ ServiceDirectory \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The resource name of the namespace this service will belong to.
↳ service_id
string
Required. The Resource ID must be 1-63 characters long, and comply with RFC1035
. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
↳ service
getParent
Required. The resource name of the namespace this service will belong to.
string
setParent
Required. The resource name of the namespace this service will belong to.
var
string
$this
getServiceId
Required. The Resource ID must be 1-63 characters long, and comply with RFC1035 .
Specifically, the name must be 1-63 characters long and match the regular
expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])?
which means the first
character must be a lowercase letter, and all following characters must
be a dash, lowercase letter, or digit, except the last character, which
cannot be a dash.
string
setServiceId
Required. The Resource ID must be 1-63 characters long, and comply with RFC1035 .
Specifically, the name must be 1-63 characters long and match the regular
expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])?
which means the first
character must be a lowercase letter, and all following characters must
be a dash, lowercase letter, or digit, except the last character, which
cannot be a dash.
var
string
$this
getService
Required. A service with initial fields set.
hasService
clearService
setService
Required. A service with initial fields set.
$this
static::build
parent
string
Required. The resource name of the namespace this service will belong to. Please see Google\Cloud\ServiceDirectory\V1\RegistrationServiceClient::namespaceName() for help formatting this field.
service
serviceId
string
Required. The Resource ID must be 1-63 characters long, and comply with RFC1035
.
Specifically, the name must be 1-63 characters long and match the regular
expression [a-z](?:[-a-z0-9]{0,61}[a-z0-9])?
which means the first
character must be a lowercase letter, and all following characters must
be a dash, lowercase letter, or digit, except the last character, which
cannot be a dash.