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 |
Lists all instances in the given project.
See: Cloud Spanner API Reference for spanner.projects.instances.list
.
Synopsis
- type ProjectsInstancesListResource = "v1" :> (Capture "parent" Text :> ("instances" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "filter" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListInstancesResponse)))))))))))
- projectsInstancesList :: Text -> ProjectsInstancesList
- data ProjectsInstancesList
- pilParent :: Lens' ProjectsInstancesList Text
- pilXgafv :: Lens' ProjectsInstancesList (Maybe Xgafv)
- pilUploadProtocol :: Lens' ProjectsInstancesList (Maybe Text)
- pilAccessToken :: Lens' ProjectsInstancesList (Maybe Text)
- pilUploadType :: Lens' ProjectsInstancesList (Maybe Text)
- pilFilter :: Lens' ProjectsInstancesList (Maybe Text)
- pilPageToken :: Lens' ProjectsInstancesList (Maybe Text)
- pilPageSize :: Lens' ProjectsInstancesList (Maybe Int32)
- pilCallback :: Lens' ProjectsInstancesList (Maybe Text)
REST Resource
type ProjectsInstancesListResource = "v1" :> (Capture "parent" Text :> ("instances" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "filter" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListInstancesResponse))))))))))) Source #
A resource alias for spanner.projects.instances.list
method which the
ProjectsInstancesList
request conforms to.
Creating a Request
projectsInstancesList Source #
Creates a value of ProjectsInstancesList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsInstancesList Source #
Lists all instances in the given project.
See: projectsInstancesList
smart constructor.
Instances
Request Lenses
pilParent :: Lens' ProjectsInstancesList Text Source #
Required. The name of the project for which a list of instances is requested. Values are of the form `projects/`.
pilUploadProtocol :: Lens' ProjectsInstancesList (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pilAccessToken :: Lens' ProjectsInstancesList (Maybe Text) Source #
OAuth access token.
pilUploadType :: Lens' ProjectsInstancesList (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pilFilter :: Lens' ProjectsInstancesList (Maybe Text) Source #
An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: * `name` * `display_name` * `labels.key` where key is the name of a label Some examples of using filters are: * `name:*` --> The instance has a name. * `name:Howl` --> The instance's name contains the string "howl". * `name:HOWL` --> Equivalent to above. * `NAME:howl` --> Equivalent to above. * `labels.env:*` --> The instance has the label "env". * `labels.env:dev` --> The instance has the label "env" and the value of the label contains the string "dev". * `name:howl labels.env:dev` --> The instance's name contains "howl" and it has the label "env" with its value containing "dev".
pilPageToken :: Lens' ProjectsInstancesList (Maybe Text) Source #
If non-empty, `page_token` should contain a next_page_token from a previous ListInstancesResponse.
pilPageSize :: Lens' ProjectsInstancesList (Maybe Int32) Source #
Number of instances to be returned in the response. If 0 or less, defaults to the server's maximum allowed page size.
pilCallback :: Lens' ProjectsInstancesList (Maybe Text) Source #
JSONP