Class: Google::Cloud::Compute::V1::SecurityPolicy
- Inherits:
-
Object
- Object
- Google::Cloud::Compute::V1::SecurityPolicy
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/compute/v1/compute.rb
Overview
Represents a Google Cloud Armor security policy resource. Only external backend services that use load balancers can reference a security policy. For more information, see Google Cloud Armor security policy overview.
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
- #adaptive_protection_config ⇒ ::Google::Cloud::Compute::V1::SecurityPolicyAdaptiveProtectionConfig
- #advanced_options_config ⇒ ::Google::Cloud::Compute::V1::SecurityPolicyAdvancedOptionsConfig
-
#creation_timestamp ⇒ ::String
[Output Only] Creation timestamp in RFC3339 text format.
-
#description ⇒ ::String
An optional description of this resource.
-
#fingerprint ⇒ ::String
Specifies a fingerprint for this resource, which is essentially a hash of the metadata's contents and used for optimistic locking.
-
#id ⇒ ::Integer
[Output Only] The unique identifier for the resource.
-
#kind ⇒ ::String
[Output only] Type of the resource.
-
#name ⇒ ::String
Name of the resource.
- #recaptcha_options_config ⇒ ::Google::Cloud::Compute::V1::SecurityPolicyRecaptchaOptionsConfig
-
#rules ⇒ ::Array<::Google::Cloud::Compute::V1::SecurityPolicyRule>
A list of rules that belong to this policy.
-
#self_link ⇒ ::String
[Output Only] Server-defined URL for the resource.
-
#type ⇒ ::String
The type indicates the intended use of the security policy.
Instance Attribute Details
#adaptive_protection_config ⇒ ::Google::Cloud::Compute::V1::SecurityPolicyAdaptiveProtectionConfig
22253 22254 22255 22256 22257 22258 22259 22260 22261 22262 22263 22264 22265 22266 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 22253 class SecurityPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type indicates the intended use of the security policy. CLOUD_ARMOR - Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. CLOUD_ARMOR_EDGE - Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. module Type # A value indicating that the enum field is not set. UNDEFINED_TYPE = 0 CLOUD_ARMOR = 260640373 CLOUD_ARMOR_EDGE = 250728775 end end |
#advanced_options_config ⇒ ::Google::Cloud::Compute::V1::SecurityPolicyAdvancedOptionsConfig
22253 22254 22255 22256 22257 22258 22259 22260 22261 22262 22263 22264 22265 22266 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 22253 class SecurityPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type indicates the intended use of the security policy. CLOUD_ARMOR - Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. CLOUD_ARMOR_EDGE - Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. module Type # A value indicating that the enum field is not set. UNDEFINED_TYPE = 0 CLOUD_ARMOR = 260640373 CLOUD_ARMOR_EDGE = 250728775 end end |
#creation_timestamp ⇒ ::String
Returns [Output Only] Creation timestamp in RFC3339 text format.
22253 22254 22255 22256 22257 22258 22259 22260 22261 22262 22263 22264 22265 22266 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 22253 class SecurityPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type indicates the intended use of the security policy. CLOUD_ARMOR - Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. CLOUD_ARMOR_EDGE - Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. module Type # A value indicating that the enum field is not set. UNDEFINED_TYPE = 0 CLOUD_ARMOR = 260640373 CLOUD_ARMOR_EDGE = 250728775 end end |
#description ⇒ ::String
Returns An optional description of this resource. Provide this property when you create the resource.
22253 22254 22255 22256 22257 22258 22259 22260 22261 22262 22263 22264 22265 22266 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 22253 class SecurityPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type indicates the intended use of the security policy. CLOUD_ARMOR - Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. CLOUD_ARMOR_EDGE - Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. module Type # A value indicating that the enum field is not set. UNDEFINED_TYPE = 0 CLOUD_ARMOR = 260640373 CLOUD_ARMOR_EDGE = 250728775 end end |
#fingerprint ⇒ ::String
Returns 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.
22253 22254 22255 22256 22257 22258 22259 22260 22261 22262 22263 22264 22265 22266 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 22253 class SecurityPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type indicates the intended use of the security policy. CLOUD_ARMOR - Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. CLOUD_ARMOR_EDGE - Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. module Type # A value indicating that the enum field is not set. UNDEFINED_TYPE = 0 CLOUD_ARMOR = 260640373 CLOUD_ARMOR_EDGE = 250728775 end end |
#id ⇒ ::Integer
Returns [Output Only] The unique identifier for the resource. This identifier is defined by the server.
22253 22254 22255 22256 22257 22258 22259 22260 22261 22262 22263 22264 22265 22266 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 22253 class SecurityPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type indicates the intended use of the security policy. CLOUD_ARMOR - Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. CLOUD_ARMOR_EDGE - Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. module Type # A value indicating that the enum field is not set. UNDEFINED_TYPE = 0 CLOUD_ARMOR = 260640373 CLOUD_ARMOR_EDGE = 250728775 end end |
#kind ⇒ ::String
Returns [Output only] Type of the resource. Always compute#securityPolicyfor security policies.
22253 22254 22255 22256 22257 22258 22259 22260 22261 22262 22263 22264 22265 22266 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 22253 class SecurityPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type indicates the intended use of the security policy. CLOUD_ARMOR - Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. CLOUD_ARMOR_EDGE - Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. module Type # A value indicating that the enum field is not set. UNDEFINED_TYPE = 0 CLOUD_ARMOR = 260640373 CLOUD_ARMOR_EDGE = 250728775 end end |
#name ⇒ ::String
Returns 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.
22253 22254 22255 22256 22257 22258 22259 22260 22261 22262 22263 22264 22265 22266 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 22253 class SecurityPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type indicates the intended use of the security policy. CLOUD_ARMOR - Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. CLOUD_ARMOR_EDGE - Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. module Type # A value indicating that the enum field is not set. UNDEFINED_TYPE = 0 CLOUD_ARMOR = 260640373 CLOUD_ARMOR_EDGE = 250728775 end end |
#recaptcha_options_config ⇒ ::Google::Cloud::Compute::V1::SecurityPolicyRecaptchaOptionsConfig
22253 22254 22255 22256 22257 22258 22259 22260 22261 22262 22263 22264 22265 22266 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 22253 class SecurityPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type indicates the intended use of the security policy. CLOUD_ARMOR - Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. CLOUD_ARMOR_EDGE - Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. module Type # A value indicating that the enum field is not set. UNDEFINED_TYPE = 0 CLOUD_ARMOR = 260640373 CLOUD_ARMOR_EDGE = 250728775 end end |
#rules ⇒ ::Array<::Google::Cloud::Compute::V1::SecurityPolicyRule>
Returns 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.
22253 22254 22255 22256 22257 22258 22259 22260 22261 22262 22263 22264 22265 22266 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 22253 class SecurityPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type indicates the intended use of the security policy. CLOUD_ARMOR - Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. CLOUD_ARMOR_EDGE - Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. module Type # A value indicating that the enum field is not set. UNDEFINED_TYPE = 0 CLOUD_ARMOR = 260640373 CLOUD_ARMOR_EDGE = 250728775 end end |
#self_link ⇒ ::String
Returns [Output Only] Server-defined URL for the resource.
22253 22254 22255 22256 22257 22258 22259 22260 22261 22262 22263 22264 22265 22266 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 22253 class SecurityPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type indicates the intended use of the security policy. CLOUD_ARMOR - Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. CLOUD_ARMOR_EDGE - Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. module Type # A value indicating that the enum field is not set. UNDEFINED_TYPE = 0 CLOUD_ARMOR = 260640373 CLOUD_ARMOR_EDGE = 250728775 end end |
#type ⇒ ::String
Returns The type indicates the intended use of the security policy. CLOUD_ARMOR - Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. CLOUD_ARMOR_EDGE - Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. Check the Type enum for the list of possible values.
22253 22254 22255 22256 22257 22258 22259 22260 22261 22262 22263 22264 22265 22266 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 22253 class SecurityPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type indicates the intended use of the security policy. CLOUD_ARMOR - Cloud Armor backend security policies can be configured to filter incoming HTTP requests targeting backend services. They filter requests before they hit the origin servers. CLOUD_ARMOR_EDGE - Cloud Armor edge security policies can be configured to filter incoming HTTP requests targeting backend services (including Cloud CDN-enabled) as well as backend buckets (Cloud Storage). They filter requests before the request is served from Google's cache. module Type # A value indicating that the enum field is not set. UNDEFINED_TYPE = 0 CLOUD_ARMOR = 260640373 CLOUD_ARMOR_EDGE = 250728775 end end |