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 |
Gets a rule at the specified priority.
See: Compute Engine API Reference for compute.securityPolicies.getRule
.
Synopsis
- type SecurityPoliciesGetRuleResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("global" :> ("securityPolicies" :> (Capture "securityPolicy" Text :> ("getRule" :> (QueryParam "priority" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] SecurityPolicyRule)))))))))
- securityPoliciesGetRule :: Text -> Text -> SecurityPoliciesGetRule
- data SecurityPoliciesGetRule
- spgrPriority :: Lens' SecurityPoliciesGetRule (Maybe Int32)
- spgrProject :: Lens' SecurityPoliciesGetRule Text
- spgrSecurityPolicy :: Lens' SecurityPoliciesGetRule Text
REST Resource
type SecurityPoliciesGetRuleResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("global" :> ("securityPolicies" :> (Capture "securityPolicy" Text :> ("getRule" :> (QueryParam "priority" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] SecurityPolicyRule))))))))) Source #
A resource alias for compute.securityPolicies.getRule
method which the
SecurityPoliciesGetRule
request conforms to.
Creating a Request
securityPoliciesGetRule Source #
Creates a value of SecurityPoliciesGetRule
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SecurityPoliciesGetRule Source #
Gets a rule at the specified priority.
See: securityPoliciesGetRule
smart constructor.
Instances
Request Lenses
spgrPriority :: Lens' SecurityPoliciesGetRule (Maybe Int32) Source #
The priority of the rule to get from the security policy.
spgrProject :: Lens' SecurityPoliciesGetRule Text Source #
Project ID for this request.
spgrSecurityPolicy :: Lens' SecurityPoliciesGetRule Text Source #
Name of the security policy to which the queried rule belongs.