Google Cloud Compute V1 API - Class Google::Cloud::Compute::V1::SecurityPolicyUserDefinedField (v2.9.0)

Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::SecurityPolicyUserDefinedField.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#base

def base() -> ::String
Returns
  • (::String) — The base relative to which 'offset' is measured. Possible values are: - IPV4: Points to the beginning of the IPv4 header. - IPV6: Points to the beginning of the IPv6 header. - TCP: Points to the beginning of the TCP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. - UDP: Points to the beginning of the UDP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. required Check the Base enum for the list of possible values.

#base=

def base=(value) -> ::String
Parameter
  • value (::String) — The base relative to which 'offset' is measured. Possible values are: - IPV4: Points to the beginning of the IPv4 header. - IPV6: Points to the beginning of the IPv6 header. - TCP: Points to the beginning of the TCP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. - UDP: Points to the beginning of the UDP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. required Check the Base enum for the list of possible values.
Returns
  • (::String) — The base relative to which 'offset' is measured. Possible values are: - IPV4: Points to the beginning of the IPv4 header. - IPV6: Points to the beginning of the IPv6 header. - TCP: Points to the beginning of the TCP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. - UDP: Points to the beginning of the UDP header, skipping over any IPv4 options or IPv6 extension headers. Not present for non-first fragments. required Check the Base enum for the list of possible values.

#mask

def mask() -> ::String
Returns
  • (::String) — If specified, apply this mask (bitwise AND) to the field to ignore bits before matching. Encoded as a hexadecimal number (starting with "0x"). The last byte of the field (in network byte order) corresponds to the least significant byte of the mask.

#mask=

def mask=(value) -> ::String
Parameter
  • value (::String) — If specified, apply this mask (bitwise AND) to the field to ignore bits before matching. Encoded as a hexadecimal number (starting with "0x"). The last byte of the field (in network byte order) corresponds to the least significant byte of the mask.
Returns
  • (::String) — If specified, apply this mask (bitwise AND) to the field to ignore bits before matching. Encoded as a hexadecimal number (starting with "0x"). The last byte of the field (in network byte order) corresponds to the least significant byte of the mask.

#name

def name() -> ::String
Returns
  • (::String) — The name of this field. Must be unique within the policy.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — The name of this field. Must be unique within the policy.
Returns
  • (::String) — The name of this field. Must be unique within the policy.

#offset

def offset() -> ::Integer
Returns
  • (::Integer) — Offset of the first byte of the field (in network byte order) relative to 'base'.

#offset=

def offset=(value) -> ::Integer
Parameter
  • value (::Integer) — Offset of the first byte of the field (in network byte order) relative to 'base'.
Returns
  • (::Integer) — Offset of the first byte of the field (in network byte order) relative to 'base'.

#size

def size() -> ::Integer
Returns
  • (::Integer) — Size of the field in bytes. Valid values: 1-4.

#size=

def size=(value) -> ::Integer
Parameter
  • value (::Integer) — Size of the field in bytes. Valid values: 1-4.
Returns
  • (::Integer) — Size of the field in bytes. Valid values: 1-4.