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 |
Retrieves a list of calendar resources for an account.
See: Admin Directory API Reference for directory.resources.calendars.list
.
Synopsis
- type ResourcesCalendarsListResource = "admin" :> ("directory" :> ("v1" :> ("customer" :> (Capture "customer" Text :> ("resources" :> ("calendars" :> (QueryParam "orderBy" Text :> (QueryParam "query" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] CalendarResources)))))))))))
- resourcesCalendarsList :: Text -> ResourcesCalendarsList
- data ResourcesCalendarsList
- rclOrderBy :: Lens' ResourcesCalendarsList (Maybe Text)
- rclCustomer :: Lens' ResourcesCalendarsList Text
- rclQuery :: Lens' ResourcesCalendarsList (Maybe Text)
- rclPageToken :: Lens' ResourcesCalendarsList (Maybe Text)
- rclMaxResults :: Lens' ResourcesCalendarsList (Maybe Int32)
REST Resource
type ResourcesCalendarsListResource = "admin" :> ("directory" :> ("v1" :> ("customer" :> (Capture "customer" Text :> ("resources" :> ("calendars" :> (QueryParam "orderBy" Text :> (QueryParam "query" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] CalendarResources))))))))))) Source #
A resource alias for directory.resources.calendars.list
method which the
ResourcesCalendarsList
request conforms to.
Creating a Request
resourcesCalendarsList Source #
Creates a value of ResourcesCalendarsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ResourcesCalendarsList Source #
Retrieves a list of calendar resources for an account.
See: resourcesCalendarsList
smart constructor.
Instances
Request Lenses
rclOrderBy :: Lens' ResourcesCalendarsList (Maybe Text) Source #
Field(s) to sort results by in either ascending or descending order. Supported fields include resourceId, resourceName, capacity, buildingId, and floorName. If no order is specified, defaults to ascending. Should be of the form "field [asc|desc], field [asc|desc], ...". For example buildingId, capacity desc would return results sorted first by buildingId in ascending order then by capacity in descending order.
rclCustomer :: Lens' ResourcesCalendarsList Text Source #
The unique ID for the customer's G Suite account. As an account administrator, you can also use the my_customer alias to represent your account's customer ID.
rclQuery :: Lens' ResourcesCalendarsList (Maybe Text) Source #
String query used to filter results. Should be of the form "field operator value" where field can be any of supported fields and operators can be any of supported operations. Operators include '=' for exact match and ':' for prefix match or HAS match where applicable. For prefix match, the value should always be followed by a *. Supported fields include generatedResourceName, name, buildingId, featureInstances.feature.name. For example buildingId=US-NYC-9TH AND featureInstances.feature.name:Phone.
rclPageToken :: Lens' ResourcesCalendarsList (Maybe Text) Source #
Token to specify the next page in the list.
rclMaxResults :: Lens' ResourcesCalendarsList (Maybe Int32) Source #
Maximum number of results to return.