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 |
Inserts a rule into a security policy.
See: Compute Engine API Reference for compute.securityPolicies.addRule
.
Synopsis
- type SecurityPoliciesAddRuleResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("global" :> ("securityPolicies" :> (Capture "securityPolicy" Text :> ("addRule" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SecurityPolicyRule :> Post '[JSON] Operation)))))))))
- securityPoliciesAddRule :: Text -> SecurityPolicyRule -> Text -> SecurityPoliciesAddRule
- data SecurityPoliciesAddRule
- sparProject :: Lens' SecurityPoliciesAddRule Text
- sparPayload :: Lens' SecurityPoliciesAddRule SecurityPolicyRule
- sparSecurityPolicy :: Lens' SecurityPoliciesAddRule Text
REST Resource
type SecurityPoliciesAddRuleResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("global" :> ("securityPolicies" :> (Capture "securityPolicy" Text :> ("addRule" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SecurityPolicyRule :> Post '[JSON] Operation))))))))) Source #
A resource alias for compute.securityPolicies.addRule
method which the
SecurityPoliciesAddRule
request conforms to.
Creating a Request
securityPoliciesAddRule Source #
Creates a value of SecurityPoliciesAddRule
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SecurityPoliciesAddRule Source #
Inserts a rule into a security policy.
See: securityPoliciesAddRule
smart constructor.
Instances
Request Lenses
sparProject :: Lens' SecurityPoliciesAddRule Text Source #
Project ID for this request.
sparPayload :: Lens' SecurityPoliciesAddRule SecurityPolicyRule Source #
Multipart request metadata.
sparSecurityPolicy :: Lens' SecurityPoliciesAddRule Text Source #
Name of the security policy to update.