#include <security_policy.h>
A security policy is comprised of one or more rules. It can also be associated with one or more 'targets'. (== resource_for v1.securityPolicies ==) (== resource_for beta.securityPolicies ==).
◆ SecurityPolicy() [1/2]
google_compute_api::SecurityPolicy::SecurityPolicy |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ SecurityPolicy() [2/2]
google_compute_api::SecurityPolicy::SecurityPolicy |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ ~SecurityPolicy()
google_compute_api::SecurityPolicy::~SecurityPolicy |
( |
| ) |
|
|
virtual |
◆ clear_creation_timestamp()
void google_compute_api::SecurityPolicy::clear_creation_timestamp |
( |
| ) |
|
|
inline |
Clears the 'creationTimestamp
' attribute.
◆ clear_description()
void google_compute_api::SecurityPolicy::clear_description |
( |
| ) |
|
|
inline |
Clears the 'description
' attribute.
◆ clear_fingerprint()
void google_compute_api::SecurityPolicy::clear_fingerprint |
( |
| ) |
|
|
inline |
Clears the 'fingerprint
' attribute.
◆ clear_id()
void google_compute_api::SecurityPolicy::clear_id |
( |
| ) |
|
|
inline |
Clears the 'id
' attribute.
◆ clear_kind()
void google_compute_api::SecurityPolicy::clear_kind |
( |
| ) |
|
|
inline |
Clears the 'kind
' attribute.
◆ clear_name()
void google_compute_api::SecurityPolicy::clear_name |
( |
| ) |
|
|
inline |
Clears the 'name
' attribute.
◆ clear_rules()
void google_compute_api::SecurityPolicy::clear_rules |
( |
| ) |
|
|
inline |
Clears the 'rules
' attribute.
◆ clear_self_link()
void google_compute_api::SecurityPolicy::clear_self_link |
( |
| ) |
|
|
inline |
Clears the 'selfLink
' attribute.
◆ get_creation_timestamp()
const StringPiece google_compute_api::SecurityPolicy::get_creation_timestamp |
( |
| ) |
const |
|
inline |
Get the value of the 'creationTimestamp
' attribute.
◆ get_description()
const StringPiece google_compute_api::SecurityPolicy::get_description |
( |
| ) |
const |
|
inline |
Get the value of the 'description
' attribute.
◆ get_fingerprint()
const StringPiece google_compute_api::SecurityPolicy::get_fingerprint |
( |
| ) |
const |
|
inline |
Get the value of the 'fingerprint
' attribute.
◆ get_id()
uint64 google_compute_api::SecurityPolicy::get_id |
( |
| ) |
const |
|
inline |
Get the value of the 'id
' attribute.
◆ get_kind()
const StringPiece google_compute_api::SecurityPolicy::get_kind |
( |
| ) |
const |
|
inline |
Get the value of the 'kind
' attribute.
◆ get_name()
const StringPiece google_compute_api::SecurityPolicy::get_name |
( |
| ) |
const |
|
inline |
Get the value of the 'name
' attribute.
◆ get_rules()
const client::JsonCppArray<SecurityPolicyRule > google_compute_api::SecurityPolicy::get_rules |
( |
| ) |
const |
Get a reference to the value of the 'rules
' attribute.
◆ get_self_link()
const StringPiece google_compute_api::SecurityPolicy::get_self_link |
( |
| ) |
const |
|
inline |
Get the value of the 'selfLink
' attribute.
◆ GetTypeName()
const StringPiece google_compute_api::SecurityPolicy::GetTypeName |
( |
| ) |
const |
|
inline |
◆ has_creation_timestamp()
bool google_compute_api::SecurityPolicy::has_creation_timestamp |
( |
| ) |
const |
|
inline |
Determine if the 'creationTimestamp
' attribute was set.
- Returns
- true if the '
creationTimestamp
' attribute was set.
◆ has_description()
bool google_compute_api::SecurityPolicy::has_description |
( |
| ) |
const |
|
inline |
Determine if the 'description
' attribute was set.
- Returns
- true if the '
description
' attribute was set.
◆ has_fingerprint()
bool google_compute_api::SecurityPolicy::has_fingerprint |
( |
| ) |
const |
|
inline |
Determine if the 'fingerprint
' attribute was set.
- Returns
- true if the '
fingerprint
' attribute was set.
◆ has_id()
bool google_compute_api::SecurityPolicy::has_id |
( |
| ) |
const |
|
inline |
Determine if the 'id
' attribute was set.
- Returns
- true if the '
id
' attribute was set.
◆ has_kind()
bool google_compute_api::SecurityPolicy::has_kind |
( |
| ) |
const |
|
inline |
Determine if the 'kind
' attribute was set.
- Returns
- true if the '
kind
' attribute was set.
◆ has_name()
bool google_compute_api::SecurityPolicy::has_name |
( |
| ) |
const |
|
inline |
Determine if the 'name
' attribute was set.
- Returns
- true if the '
name
' attribute was set.
◆ has_rules()
bool google_compute_api::SecurityPolicy::has_rules |
( |
| ) |
const |
|
inline |
Determine if the 'rules
' attribute was set.
- Returns
- true if the '
rules
' attribute was set.
◆ has_self_link()
bool google_compute_api::SecurityPolicy::has_self_link |
( |
| ) |
const |
|
inline |
Determine if the 'selfLink
' attribute was set.
- Returns
- true if the '
selfLink
' attribute was set.
◆ mutable_rules()
client::JsonCppArray<SecurityPolicyRule > google_compute_api::SecurityPolicy::mutable_rules |
( |
| ) |
|
Gets a reference to a mutable value of the 'rules
' property.
A list of rules that belong to this policy. There must always be a default rule (rule with priority 2147483647 and match "*"). If no rules are provided when creating a security policy, a default rule with action "allow" will be added.
- Returns
- The result can be modified to change the attribute value.
◆ New()
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
◆ set_creation_timestamp()
void google_compute_api::SecurityPolicy::set_creation_timestamp |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'creationTimestamp
' attribute.
[Output Only] Creation timestamp in RFC3339 text format.
- Parameters
-
◆ set_description()
void google_compute_api::SecurityPolicy::set_description |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'description
' attribute.
An optional description of this resource. Provide this property when you create the resource.
- Parameters
-
◆ set_fingerprint()
void google_compute_api::SecurityPolicy::set_fingerprint |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'fingerprint
' attribute.
Specifies a fingerprint for this resource, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet.
To see the latest fingerprint, make get() request to the security policy.
- Parameters
-
◆ set_id()
void google_compute_api::SecurityPolicy::set_id |
( |
uint64 |
value | ) |
|
|
inline |
Change the 'id
' attribute.
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
- Parameters
-
◆ set_kind()
void google_compute_api::SecurityPolicy::set_kind |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'kind
' attribute.
[Output only] Type of the resource. Always compute::securityPolicyfor security policies.
- Parameters
-
◆ set_name()
void google_compute_api::SecurityPolicy::set_name |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'name
' attribute.
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
- Parameters
-
◆ set_self_link()
void google_compute_api::SecurityPolicy::set_self_link |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'selfLink
' attribute.
[Output Only] Server-defined URL for the resource.
- Parameters
-
The documentation for this class was generated from the following files: