Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Search tenancy units for a service.
See: Service Consumer Management API Reference for serviceconsumermanagement.services.search
.
Synopsis
- type ServicesSearchResource = "v1" :> (CaptureMode "parent" "search" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "query" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] SearchTenancyUnitsResponse))))))))))
- servicesSearch :: Text -> ServicesSearch
- data ServicesSearch
- ssParent :: Lens' ServicesSearch Text
- ssXgafv :: Lens' ServicesSearch (Maybe Xgafv)
- ssUploadProtocol :: Lens' ServicesSearch (Maybe Text)
- ssAccessToken :: Lens' ServicesSearch (Maybe Text)
- ssUploadType :: Lens' ServicesSearch (Maybe Text)
- ssQuery :: Lens' ServicesSearch (Maybe Text)
- ssPageToken :: Lens' ServicesSearch (Maybe Text)
- ssPageSize :: Lens' ServicesSearch (Maybe Int32)
- ssCallback :: Lens' ServicesSearch (Maybe Text)
REST Resource
type ServicesSearchResource = "v1" :> (CaptureMode "parent" "search" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "query" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] SearchTenancyUnitsResponse)))))))))) Source #
A resource alias for serviceconsumermanagement.services.search
method which the
ServicesSearch
request conforms to.
Creating a Request
Creates a value of ServicesSearch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ServicesSearch Source #
Search tenancy units for a service.
See: servicesSearch
smart constructor.
Instances
Request Lenses
ssParent :: Lens' ServicesSearch Text Source #
Service for which search is performed. services/{service} {service} the name of a service, for example 'service.googleapis.com'.
ssUploadProtocol :: Lens' ServicesSearch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ssAccessToken :: Lens' ServicesSearch (Maybe Text) Source #
OAuth access token.
ssUploadType :: Lens' ServicesSearch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ssQuery :: Lens' ServicesSearch (Maybe Text) Source #
Set a query `{expression}` for querying tenancy units. Your `{expression}` must be in the format: `field_name=literal_string`. The `field_name` is the name of the field you want to compare. Supported fields are `tenant_resources.tag` and `tenant_resources.resource`. For example, to search tenancy units that contain at least one tenant resource with given tag 'xyz', use query `tenant_resources.tag=xyz`. To search tenancy units that contain at least one tenant resource with given resource name 'projects/123456', use query `tenant_resources.resource=projects/123456`. Multiple expressions can be joined with `AND`s. Tenancy units must match all expressions to be included in the result set. For example, `tenant_resources.tag=xyz AND tenant_resources.resource=projects/123456` Optional.
ssPageToken :: Lens' ServicesSearch (Maybe Text) Source #
The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of `nextPageToken` from the previous response. Optional.
ssPageSize :: Lens' ServicesSearch (Maybe Int32) Source #
The maximum number of results returned by this request. Currently, the default maximum is set to 1000. If page_size is not provided or the size provided is a number larger than 1000, it will be automatically set to 1000. Optional.
ssCallback :: Lens' ServicesSearch (Maybe Text) Source #
JSONP