# Class Service (0.5.0)

0.5.0 (latest) 0.4.0 0.3.0 0.2.0 0.1.10

    Service(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Service is an App Hub data model that contains a discovered
service, which represents a network or API interface that
exposes some functionality to clients for consumption over the
network.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Identifier. The resource name of a Service. Format: `"projects/{host-project-id}/locations/{location}/applications/{application-id}/services/{service-id}"` |
| `display_name` | `str` Optional. User-defined name for the Service. Can have a maximum length of 63 characters. |
| `description` | `str` Optional. User-defined description of a Service. Can have a maximum length of 2048 characters. |
| `service_reference` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-apphub/latest/google.cloud.apphub_v1.types.ServiceReference` Output only. Reference to an underlying networking resource that can comprise a Service. These are immutable. |
| `service_properties` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-apphub/latest/google.cloud.apphub_v1.types.ServiceProperties` Output only. Properties of an underlying compute resource that can comprise a Service. These are immutable. |
| `attributes` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-apphub/latest/google.cloud.apphub_v1.types.Attributes` Optional. Consumer provided attributes. |
| `discovered_service` | `str` Required. Immutable. The resource name of the original discovered service. |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Create time. |
| `update_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Update time. |
| `uid` | `str` Output only. A universally unique identifier (UUID) for the `Service` in the UUID4 format. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-apphub/latest/google.cloud.apphub_v1.types.Service.State` Output only. Service state. |

## Classes

### State

    State(value)

Service state.