Reference documentation and code samples for the Security Command Center V2 API class Google::Cloud::SecurityCenter::V2::IpRule::PortRange.
A port range which is inclusive of the min and max values.
Values are between 0 and 2^16-1. The max can be equal / must be not smaller
than the min value. If min and max are equal this indicates that it is a
single port.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Security Command Center V2 API - Class Google::Cloud::SecurityCenter::V2::IpRule::PortRange (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-IpRule-PortRange)\n- [1.2.0](/ruby/docs/reference/google-cloud-security_center-v2/1.2.0/Google-Cloud-SecurityCenter-V2-IpRule-PortRange)\n- [1.1.1](/ruby/docs/reference/google-cloud-security_center-v2/1.1.1/Google-Cloud-SecurityCenter-V2-IpRule-PortRange)\n- [1.0.0](/ruby/docs/reference/google-cloud-security_center-v2/1.0.0/Google-Cloud-SecurityCenter-V2-IpRule-PortRange)\n- [0.6.0](/ruby/docs/reference/google-cloud-security_center-v2/0.6.0/Google-Cloud-SecurityCenter-V2-IpRule-PortRange)\n- [0.5.0](/ruby/docs/reference/google-cloud-security_center-v2/0.5.0/Google-Cloud-SecurityCenter-V2-IpRule-PortRange)\n- [0.4.1](/ruby/docs/reference/google-cloud-security_center-v2/0.4.1/Google-Cloud-SecurityCenter-V2-IpRule-PortRange)\n- [0.3.0](/ruby/docs/reference/google-cloud-security_center-v2/0.3.0/Google-Cloud-SecurityCenter-V2-IpRule-PortRange)\n- [0.2.0](/ruby/docs/reference/google-cloud-security_center-v2/0.2.0/Google-Cloud-SecurityCenter-V2-IpRule-PortRange)\n- [0.1.0](/ruby/docs/reference/google-cloud-security_center-v2/0.1.0/Google-Cloud-SecurityCenter-V2-IpRule-PortRange) \nReference documentation and code samples for the Security Command Center V2 API class Google::Cloud::SecurityCenter::V2::IpRule::PortRange.\n\nA port range which is inclusive of the min and max values.\nValues are between 0 and 2\\^16-1. The max can be equal / must be not smaller\nthan the min value. If min and max are equal this indicates that it is a\nsingle port. \n\nInherits\n--------\n\n- [Object](./Google-Cloud-SecurityCenter-V2-Kubernetes-Object) \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #max\n\n def max() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Maximum port value.\n\n### #max=\n\n def max=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Maximum port value. \n**Returns**\n\n- (::Integer) --- Maximum port value.\n\n### #min\n\n def min() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Minimum port value.\n\n### #min=\n\n def min=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Minimum port value. \n**Returns**\n\n- (::Integer) --- Minimum port value."]]