Google Cloud Appengine Admin V1 Client - Class Service (1.0.6)

Reference documentation and code samples for the Google Cloud Appengine Admin V1 Client class Service.

A Service resource is a logical component of an application that can share state and communicate in a secure fashion with other services.

For example, an application that handles customer requests might include separate services to handle tasks such as backend data analysis or API requests from mobile devices. Each service has a collection of versions that define a specific set of code used to implement the functionality of that service.

Generated from protobuf message google.appengine.v1.Service

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Full path to the Service resource in the API. Example: apps/myapp/services/default. @OutputOnly

↳ id string

Relative name of the service within the application. Example: default. @OutputOnly

↳ split Google\Cloud\AppEngine\V1\TrafficSplit

Mapping that defines fractional HTTP traffic diversion to different versions within the service.

↳ labels array|Google\Protobuf\Internal\MapField

A set of labels to apply to this service. Labels are key/value pairs that describe the service and all resources that belong to it (e.g., versions). The labels can be used to search and group resources, and are propagated to the usage and billing reports, enabling fine-grain analysis of costs. An example of using labels is to tag resources belonging to different environments (e.g., "env=prod", "env=qa").

Label keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, dashes, and international characters. Label keys must start with a lowercase letter or an international character. Each service can have at most 32 labels.

↳ network_settings Google\Cloud\AppEngine\V1\NetworkSettings

Ingress settings for this service. Will apply to all versions.

getName

Full path to the Service resource in the API.

Example: apps/myapp/services/default. @OutputOnly

Returns
TypeDescription
string

setName

Full path to the Service resource in the API.

Example: apps/myapp/services/default. @OutputOnly

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getId

Relative name of the service within the application.

Example: default. @OutputOnly

Returns
TypeDescription
string

setId

Relative name of the service within the application.

Example: default. @OutputOnly

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSplit

Mapping that defines fractional HTTP traffic diversion to different versions within the service.

Returns
TypeDescription
Google\Cloud\AppEngine\V1\TrafficSplit|null

hasSplit

clearSplit

setSplit

Mapping that defines fractional HTTP traffic diversion to different versions within the service.

Parameter
NameDescription
var Google\Cloud\AppEngine\V1\TrafficSplit
Returns
TypeDescription
$this

getLabels

A set of labels to apply to this service. Labels are key/value pairs that describe the service and all resources that belong to it (e.g., versions). The labels can be used to search and group resources, and are propagated to the usage and billing reports, enabling fine-grain analysis of costs. An example of using labels is to tag resources belonging to different environments (e.g., "env=prod", "env=qa").

Label keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, dashes, and international characters. Label keys must start with a lowercase letter or an international character. Each service can have at most 32 labels.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

A set of labels to apply to this service. Labels are key/value pairs that describe the service and all resources that belong to it (e.g., versions). The labels can be used to search and group resources, and are propagated to the usage and billing reports, enabling fine-grain analysis of costs. An example of using labels is to tag resources belonging to different environments (e.g., "env=prod", "env=qa").

Label keys and values can be no longer than 63 characters and can only contain lowercase letters, numeric characters, underscores, dashes, and international characters. Label keys must start with a lowercase letter or an international character. Each service can have at most 32 labels.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getNetworkSettings

Ingress settings for this service. Will apply to all versions.

Returns
TypeDescription
Google\Cloud\AppEngine\V1\NetworkSettings|null

hasNetworkSettings

clearNetworkSettings

setNetworkSettings

Ingress settings for this service. Will apply to all versions.

Parameter
NameDescription
var Google\Cloud\AppEngine\V1\NetworkSettings
Returns
TypeDescription
$this