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 |
Patches a rule at the specified priority.
See: Compute Engine API Reference for compute.securityPolicies.patchRule
.
Synopsis
- type SecurityPoliciesPatchRuleResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("global" :> ("securityPolicies" :> (Capture "securityPolicy" Text :> ("patchRule" :> (QueryParam "priority" (Textual Int32) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SecurityPolicyRule :> Post '[JSON] Operation))))))))))
- securityPoliciesPatchRule :: Text -> SecurityPolicyRule -> Text -> SecurityPoliciesPatchRule
- data SecurityPoliciesPatchRule
- spprPriority :: Lens' SecurityPoliciesPatchRule (Maybe Int32)
- spprProject :: Lens' SecurityPoliciesPatchRule Text
- spprPayload :: Lens' SecurityPoliciesPatchRule SecurityPolicyRule
- spprSecurityPolicy :: Lens' SecurityPoliciesPatchRule Text
REST Resource
type SecurityPoliciesPatchRuleResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("global" :> ("securityPolicies" :> (Capture "securityPolicy" Text :> ("patchRule" :> (QueryParam "priority" (Textual Int32) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SecurityPolicyRule :> Post '[JSON] Operation)))))))))) Source #
A resource alias for compute.securityPolicies.patchRule
method which the
SecurityPoliciesPatchRule
request conforms to.
Creating a Request
securityPoliciesPatchRule Source #
Creates a value of SecurityPoliciesPatchRule
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SecurityPoliciesPatchRule Source #
Patches a rule at the specified priority.
See: securityPoliciesPatchRule
smart constructor.
Instances
Request Lenses
spprPriority :: Lens' SecurityPoliciesPatchRule (Maybe Int32) Source #
The priority of the rule to patch.
spprProject :: Lens' SecurityPoliciesPatchRule Text Source #
Project ID for this request.
spprPayload :: Lens' SecurityPoliciesPatchRule SecurityPolicyRule Source #
Multipart request metadata.
spprSecurityPolicy :: Lens' SecurityPoliciesPatchRule Text Source #
Name of the security policy to update.