Reference documentation and code samples for the App Engine Admin V1 API class Google::Cloud::AppEngine::V1::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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#id
def id() -> ::String
-
(::String) — Relative name of the service within the application.
Example:
default
.
#id=
def id=(value) -> ::String
-
value (::String) — Relative name of the service within the application.
Example:
default
.
-
(::String) — Relative name of the service within the application.
Example:
default
.
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
-
(::Google::Protobuf::Map{::String => ::String}) — 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.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
-
value (::Google::Protobuf::Map{::String => ::String}) — 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.
-
(::Google::Protobuf::Map{::String => ::String}) — 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.
#name
def name() -> ::String
-
(::String) — Full path to the Service resource in the API.
Example:
apps/myapp/services/default
.
#name=
def name=(value) -> ::String
-
value (::String) — Full path to the Service resource in the API.
Example:
apps/myapp/services/default
.
-
(::String) — Full path to the Service resource in the API.
Example:
apps/myapp/services/default
.
#network_settings
def network_settings() -> ::Google::Cloud::AppEngine::V1::NetworkSettings
- (::Google::Cloud::AppEngine::V1::NetworkSettings) — Ingress settings for this service. Will apply to all versions.
#network_settings=
def network_settings=(value) -> ::Google::Cloud::AppEngine::V1::NetworkSettings
- value (::Google::Cloud::AppEngine::V1::NetworkSettings) — Ingress settings for this service. Will apply to all versions.
- (::Google::Cloud::AppEngine::V1::NetworkSettings) — Ingress settings for this service. Will apply to all versions.
#split
def split() -> ::Google::Cloud::AppEngine::V1::TrafficSplit
- (::Google::Cloud::AppEngine::V1::TrafficSplit) — Mapping that defines fractional HTTP traffic diversion to different versions within the service.
#split=
def split=(value) -> ::Google::Cloud::AppEngine::V1::TrafficSplit
- value (::Google::Cloud::AppEngine::V1::TrafficSplit) — Mapping that defines fractional HTTP traffic diversion to different versions within the service.
- (::Google::Cloud::AppEngine::V1::TrafficSplit) — Mapping that defines fractional HTTP traffic diversion to different versions within the service.