Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::FirewallPolicy.
Represents a Firewall Policy resource.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#associations
def associations() -> ::Array<::Google::Cloud::Compute::V1::FirewallPolicyAssociation>- (::Array<::Google::Cloud::Compute::V1::FirewallPolicyAssociation>) — A list of associations that belong to this firewall policy.
#associations=
def associations=(value) -> ::Array<::Google::Cloud::Compute::V1::FirewallPolicyAssociation>- value (::Array<::Google::Cloud::Compute::V1::FirewallPolicyAssociation>) — A list of associations that belong to this firewall policy.
- (::Array<::Google::Cloud::Compute::V1::FirewallPolicyAssociation>) — A list of associations that belong to this firewall policy.
#creation_timestamp
def creation_timestamp() -> ::String- (::String) — Output only. [Output Only] Creation timestamp inRFC3339 text format.
#creation_timestamp=
def creation_timestamp=(value) -> ::String- value (::String) — Output only. [Output Only] Creation timestamp inRFC3339 text format.
- (::String) — Output only. [Output Only] Creation timestamp inRFC3339 text format.
#description
def description() -> ::String- (::String) — An optional description of this resource. Provide this property when you create the resource.
#description=
def description=(value) -> ::String- value (::String) — An optional description of this resource. Provide this property when you create the resource.
- (::String) — An optional description of this resource. Provide this property when you create the resource.
#display_name
def display_name() -> ::String-
(::String) — Deprecated, please use short name instead. User-provided name of the
Organization firewall policy. The name should be unique in the organization
in which the firewall policy is created.
This field is not applicable to network firewall policies.
This name must be set on creation and cannot be changed.
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.
#display_name=
def display_name=(value) -> ::String-
value (::String) — Deprecated, please use short name instead. User-provided name of the
Organization firewall policy. The name should be unique in the organization
in which the firewall policy is created.
This field is not applicable to network firewall policies.
This name must be set on creation and cannot be changed.
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.
-
(::String) — Deprecated, please use short name instead. User-provided name of the
Organization firewall policy. The name should be unique in the organization
in which the firewall policy is created.
This field is not applicable to network firewall policies.
This name must be set on creation and cannot be changed.
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.
#fingerprint
def fingerprint() -> ::String-
(::String) — 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 error412 conditionNotMet.
To see the latest fingerprint, make get() request to the firewall policy.
#fingerprint=
def fingerprint=(value) -> ::String-
value (::String) — 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 error412 conditionNotMet.
To see the latest fingerprint, make get() request to the firewall policy.
-
(::String) — 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 error412 conditionNotMet.
To see the latest fingerprint, make get() request to the firewall policy.
#id
def id() -> ::Integer- (::Integer) — [Output Only] The unique identifier for the resource. This identifier is defined by the server.
#id=
def id=(value) -> ::Integer- value (::Integer) — [Output Only] The unique identifier for the resource. This identifier is defined by the server.
- (::Integer) — [Output Only] The unique identifier for the resource. This identifier is defined by the server.
#kind
def kind() -> ::String- (::String) — Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies
#kind=
def kind=(value) -> ::String- value (::String) — Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies
- (::String) — Output only. [Output only] Type of the resource. Alwayscompute#firewallPolicyfor firewall policies
#name
def name() -> ::String- (::String) — Name of the resource. For Organization Firewall Policies it's a [Output Only] numeric ID allocated by Google Cloud which uniquely identifies the Organization Firewall Policy.
#name=
def name=(value) -> ::String- value (::String) — Name of the resource. For Organization Firewall Policies it's a [Output Only] numeric ID allocated by Google Cloud which uniquely identifies the Organization Firewall Policy.
- (::String) — Name of the resource. For Organization Firewall Policies it's a [Output Only] numeric ID allocated by Google Cloud which uniquely identifies the Organization Firewall Policy.
#packet_mirroring_rules
def packet_mirroring_rules() -> ::Array<::Google::Cloud::Compute::V1::FirewallPolicyRule>- (::Array<::Google::Cloud::Compute::V1::FirewallPolicyRule>) — A list of packet mirroring rules that belong to this policy.
#packet_mirroring_rules=
def packet_mirroring_rules=(value) -> ::Array<::Google::Cloud::Compute::V1::FirewallPolicyRule>- value (::Array<::Google::Cloud::Compute::V1::FirewallPolicyRule>) — A list of packet mirroring rules that belong to this policy.
- (::Array<::Google::Cloud::Compute::V1::FirewallPolicyRule>) — A list of packet mirroring rules that belong to this policy.
#parent
def parent() -> ::String- (::String) — Output only. [Output Only] The parent of the firewall policy. This field is not applicable to network firewall policies.
#parent=
def parent=(value) -> ::String- value (::String) — Output only. [Output Only] The parent of the firewall policy. This field is not applicable to network firewall policies.
- (::String) — Output only. [Output Only] The parent of the firewall policy. This field is not applicable to network firewall policies.
#policy_type
def policy_type() -> ::String-
(::String) — The type of the firewall policy. This field can be eitherVPC_POLICY or RDMA_ROCE_POLICY.
Note: if not specified then VPC_POLICY will be used. Check the PolicyType enum for the list of possible values.
#policy_type=
def policy_type=(value) -> ::String-
value (::String) — The type of the firewall policy. This field can be eitherVPC_POLICY or RDMA_ROCE_POLICY.
Note: if not specified then VPC_POLICY will be used. Check the PolicyType enum for the list of possible values.
-
(::String) — The type of the firewall policy. This field can be eitherVPC_POLICY or RDMA_ROCE_POLICY.
Note: if not specified then VPC_POLICY will be used. Check the PolicyType enum for the list of possible values.
#region
def region() -> ::String- (::String) — Output only. [Output Only] URL of the region where the regional firewall policy resides. This field is not applicable to global firewall policies. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
#region=
def region=(value) -> ::String- value (::String) — Output only. [Output Only] URL of the region where the regional firewall policy resides. This field is not applicable to global firewall policies. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
- (::String) — Output only. [Output Only] URL of the region where the regional firewall policy resides. This field is not applicable to global firewall policies. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
#rule_tuple_count
def rule_tuple_count() -> ::Integer- (::Integer) — Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall policy can not exceed a set number of tuples.
#rule_tuple_count=
def rule_tuple_count=(value) -> ::Integer- value (::Integer) — Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall policy can not exceed a set number of tuples.
- (::Integer) — Output only. [Output Only] Total count of all firewall policy rule tuples. A firewall policy can not exceed a set number of tuples.
#rules
def rules() -> ::Array<::Google::Cloud::Compute::V1::FirewallPolicyRule>- (::Array<::Google::Cloud::Compute::V1::FirewallPolicyRule>) — 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 firewall policy, a default rule with action "allow" will be added.
#rules=
def rules=(value) -> ::Array<::Google::Cloud::Compute::V1::FirewallPolicyRule>- value (::Array<::Google::Cloud::Compute::V1::FirewallPolicyRule>) — 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 firewall policy, a default rule with action "allow" will be added.
- (::Array<::Google::Cloud::Compute::V1::FirewallPolicyRule>) — 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 firewall policy, a default rule with action "allow" will be added.
#self_link
def self_link() -> ::String- (::String) — [Output Only] Server-defined URL for the resource.
#self_link=
def self_link=(value) -> ::String- value (::String) — [Output Only] Server-defined URL for the resource.
- (::String) — [Output Only] Server-defined URL for the resource.
#self_link_with_id
def self_link_with_id() -> ::String- (::String) — Output only. [Output Only] Server-defined URL for this resource with the resource id.
#self_link_with_id=
def self_link_with_id=(value) -> ::String- value (::String) — Output only. [Output Only] Server-defined URL for this resource with the resource id.
- (::String) — Output only. [Output Only] Server-defined URL for this resource with the resource id.
#short_name
def short_name() -> ::String-
(::String) — User-provided name of the Organization firewall policy. The name should be
unique in the organization in which the firewall policy is created.
This field is not applicable to network firewall policies.
This name must be set on creation and cannot be changed. 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.
#short_name=
def short_name=(value) -> ::String-
value (::String) — User-provided name of the Organization firewall policy. The name should be
unique in the organization in which the firewall policy is created.
This field is not applicable to network firewall policies.
This name must be set on creation and cannot be changed. 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.
-
(::String) — User-provided name of the Organization firewall policy. The name should be
unique in the organization in which the firewall policy is created.
This field is not applicable to network firewall policies.
This name must be set on creation and cannot be changed. 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.