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 |
Updates the information about the specified namespace. Only the namespace visibility can be updated.
See: Proximity Beacon API Reference for proximitybeacon.namespaces.update
.
Synopsis
- type NamespacesUpdateResource = "v1beta1" :> (Capture "namespaceName" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "projectId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Namespace :> Put '[JSON] Namespace)))))))))
- namespacesUpdate :: Namespace -> Text -> NamespacesUpdate
- data NamespacesUpdate
- nuXgafv :: Lens' NamespacesUpdate (Maybe Xgafv)
- nuUploadProtocol :: Lens' NamespacesUpdate (Maybe Text)
- nuAccessToken :: Lens' NamespacesUpdate (Maybe Text)
- nuUploadType :: Lens' NamespacesUpdate (Maybe Text)
- nuPayload :: Lens' NamespacesUpdate Namespace
- nuNamespaceName :: Lens' NamespacesUpdate Text
- nuProjectId :: Lens' NamespacesUpdate (Maybe Text)
- nuCallback :: Lens' NamespacesUpdate (Maybe Text)
REST Resource
type NamespacesUpdateResource = "v1beta1" :> (Capture "namespaceName" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "projectId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Namespace :> Put '[JSON] Namespace))))))))) Source #
A resource alias for proximitybeacon.namespaces.update
method which the
NamespacesUpdate
request conforms to.
Creating a Request
Creates a value of NamespacesUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data NamespacesUpdate Source #
Updates the information about the specified namespace. Only the namespace visibility can be updated.
See: namespacesUpdate
smart constructor.
Instances
Request Lenses
nuUploadProtocol :: Lens' NamespacesUpdate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
nuAccessToken :: Lens' NamespacesUpdate (Maybe Text) Source #
OAuth access token.
nuUploadType :: Lens' NamespacesUpdate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
nuNamespaceName :: Lens' NamespacesUpdate Text Source #
Resource name of this namespace. Namespaces names have the format: 'namespaces\/namespace'.
nuProjectId :: Lens' NamespacesUpdate (Maybe Text) Source #
The project id of the namespace to update. If the project id is not specified then the project making the request is used. The project id must match the project that owns the beacon. Optional.
nuCallback :: Lens' NamespacesUpdate (Maybe Text) Source #
JSONP