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 |
Sets the access control policy on the specified dataset. Replaces any existing policy. For the definitions of datasets and other genomics resources, see Fundamentals of Google Genomics See Setting a Policy for more information.
See: Genomics API Reference for genomics.datasets.setIamPolicy
.
- type DataSetsSetIAMPolicyResource = "v1" :> (CaptureMode "resource" "setIamPolicy" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SetIAMPolicyRequest :> Post '[JSON] Policy))))))))))
- dataSetsSetIAMPolicy :: SetIAMPolicyRequest -> Text -> DataSetsSetIAMPolicy
- data DataSetsSetIAMPolicy
- dssipXgafv :: Lens' DataSetsSetIAMPolicy (Maybe Xgafv)
- dssipUploadProtocol :: Lens' DataSetsSetIAMPolicy (Maybe Text)
- dssipPp :: Lens' DataSetsSetIAMPolicy Bool
- dssipAccessToken :: Lens' DataSetsSetIAMPolicy (Maybe Text)
- dssipUploadType :: Lens' DataSetsSetIAMPolicy (Maybe Text)
- dssipPayload :: Lens' DataSetsSetIAMPolicy SetIAMPolicyRequest
- dssipBearerToken :: Lens' DataSetsSetIAMPolicy (Maybe Text)
- dssipResource :: Lens' DataSetsSetIAMPolicy Text
- dssipCallback :: Lens' DataSetsSetIAMPolicy (Maybe Text)
REST Resource
type DataSetsSetIAMPolicyResource = "v1" :> (CaptureMode "resource" "setIamPolicy" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SetIAMPolicyRequest :> Post '[JSON] Policy)))))))))) Source #
A resource alias for genomics.datasets.setIamPolicy
method which the
DataSetsSetIAMPolicy
request conforms to.
Creating a Request
Creates a value of DataSetsSetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DataSetsSetIAMPolicy Source #
Sets the access control policy on the specified dataset. Replaces any existing policy. For the definitions of datasets and other genomics resources, see Fundamentals of Google Genomics See Setting a Policy for more information.
See: dataSetsSetIAMPolicy
smart constructor.
Request Lenses
dssipXgafv :: Lens' DataSetsSetIAMPolicy (Maybe Xgafv) Source #
V1 error format.
dssipUploadProtocol :: Lens' DataSetsSetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
dssipAccessToken :: Lens' DataSetsSetIAMPolicy (Maybe Text) Source #
OAuth access token.
dssipUploadType :: Lens' DataSetsSetIAMPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
dssipPayload :: Lens' DataSetsSetIAMPolicy SetIAMPolicyRequest Source #
Multipart request metadata.
dssipBearerToken :: Lens' DataSetsSetIAMPolicy (Maybe Text) Source #
OAuth bearer token.
dssipResource :: Lens' DataSetsSetIAMPolicy Text Source #
REQUIRED: The resource for which policy is being specified. Format is `datasets/`.
dssipCallback :: Lens' DataSetsSetIAMPolicy (Maybe Text) Source #
JSONP