# Class ApiTarget (0.9.0)

0.9.0 (latest) 0.8.0 0.7.0 0.6.0 0.5.17 0.4.1 0.3.0 0.2.2 0.1.0

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

A restriction for a specific service and optionally one or
multiple specific methods. Both fields are case insensitive.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `service` | `str` The service for this restriction. It should be the canonical service name, for example: `translate.googleapis.com`. You can use \`\``gcloud services list`` `__ to get a list of services that are enabled in the project. |
| `methods` | `MutableSequence[str]` Optional. List of one or more methods that can be called. If empty, all methods for the service are allowed. A wildcard (\\\*) can be used as the last symbol. Valid examples: `google.cloud.translate.v2.TranslateService.GetSupportedLanguage` `TranslateText` `Get*` `translate.googleapis.com.Get*` |