Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::FirewallPolicy (v1.6.0)

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>
Returns

#associations=

def associations=(value) -> ::Array<::Google::Cloud::Compute::V1::FirewallPolicyAssociation>
Parameter
Returns

#creation_timestamp

def creation_timestamp() -> ::String
Returns
  • (::String) — [Output Only] Creation timestamp in RFC3339 text format.

#creation_timestamp=

def creation_timestamp=(value) -> ::String
Parameter
  • value (::String) — [Output Only] Creation timestamp in RFC3339 text format.
Returns
  • (::String) — [Output Only] Creation timestamp in RFC3339 text format.

#description

def description() -> ::String
Returns
  • (::String) — An optional description of this resource. Provide this property when you create the resource.

#description=

def description=(value) -> ::String
Parameter
  • value (::String) — An optional description of this resource. Provide this property when you create the resource.
Returns
  • (::String) — An optional description of this resource. Provide this property when you create the resource.

#display_name

def display_name() -> ::String
Returns
  • (::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 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
Parameter
  • 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 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.
Returns
  • (::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 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
Returns
  • (::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 error 412 conditionNotMet. To see the latest fingerprint, make get() request to the firewall policy.

#fingerprint=

def fingerprint=(value) -> ::String
Parameter
  • 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 error 412 conditionNotMet. To see the latest fingerprint, make get() request to the firewall policy.
Returns
  • (::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 error 412 conditionNotMet. To see the latest fingerprint, make get() request to the firewall policy.

#id

def id() -> ::Integer
Returns
  • (::Integer) — [Output Only] The unique identifier for the resource. This identifier is defined by the server.

#id=

def id=(value) -> ::Integer
Parameter
  • value (::Integer) — [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Returns
  • (::Integer) — [Output Only] The unique identifier for the resource. This identifier is defined by the server.

#kind

def kind() -> ::String
Returns
  • (::String) — [Output only] Type of the resource. Always compute#firewallPolicyfor firewall policies

#kind=

def kind=(value) -> ::String
Parameter
  • value (::String) — [Output only] Type of the resource. Always compute#firewallPolicyfor firewall policies
Returns
  • (::String) — [Output only] Type of the resource. Always compute#firewallPolicyfor firewall policies

#name

def name() -> ::String
Returns
  • (::String) — [Output Only] Name of the resource. It is a numeric ID allocated by GCP which uniquely identifies the Firewall Policy.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — [Output Only] Name of the resource. It is a numeric ID allocated by GCP which uniquely identifies the Firewall Policy.
Returns
  • (::String) — [Output Only] Name of the resource. It is a numeric ID allocated by GCP which uniquely identifies the Firewall Policy.

#parent

def parent() -> ::String
Returns
  • (::String) — [Output Only] The parent of the firewall policy.

#parent=

def parent=(value) -> ::String
Parameter
  • value (::String) — [Output Only] The parent of the firewall policy.
Returns
  • (::String) — [Output Only] The parent of the firewall policy.

#region

def region() -> ::String
Returns
  • (::String) — [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
Parameter
  • value (::String) — [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.
Returns
  • (::String) — [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
Returns
  • (::Integer) — [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
Parameter
  • value (::Integer) — [Output Only] Total count of all firewall policy rule tuples. A firewall policy can not exceed a set number of tuples.
Returns
  • (::Integer) — [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>
Returns
  • (::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>
Parameter
  • 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.
Returns
  • (::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.
def self_link() -> ::String
Returns
  • (::String) — [Output Only] Server-defined URL for the resource.
def self_link=(value) -> ::String
Parameter
  • value (::String) — [Output Only] Server-defined URL for the resource.
Returns
  • (::String) — [Output Only] Server-defined URL for the resource.
def self_link_with_id() -> ::String
Returns
  • (::String) — [Output Only] Server-defined URL for this resource with the resource id.
def self_link_with_id=(value) -> ::String
Parameter
  • value (::String) — [Output Only] Server-defined URL for this resource with the resource id.
Returns
  • (::String) — [Output Only] Server-defined URL for this resource with the resource id.

#short_name

def short_name() -> ::String
Returns
  • (::String) — User-provided name of the Organization firewall plicy. The name should be unique in the organization in which the firewall policy is created. 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
Parameter
  • value (::String) — User-provided name of the Organization firewall plicy. The name should be unique in the organization in which the firewall policy is created. 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.
Returns
  • (::String) — User-provided name of the Organization firewall plicy. The name should be unique in the organization in which the firewall policy is created. 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.