# SecurityGroupRule

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**FromPortRange** | Pointer to **int32** | The beginning of the port range for the TCP and UDP protocols, or an ICMP type number. | [optional] 
**IpProtocol** | Pointer to **string** | The IP protocol name (&#x60;tcp&#x60;, &#x60;udp&#x60;, &#x60;icmp&#x60;, or &#x60;-1&#x60; for all protocols). By default, &#x60;-1&#x60;. In a Net, this can also be an IP protocol number. For more information, see the [IANA.org website](https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). | [optional] 
**IpRanges** | Pointer to **[]string** | One or more IP ranges for the security group rules, in CIDR notation (for example, &#x60;[&amp;quot;10.0.0.0/24&amp;quot; , &amp;quot;10.0.1.0/24&amp;quot;]&#x60;). | [optional] 
**SecurityGroupRuleId** | Pointer to **string** | The ID of the security group rule. | [optional] 
**SecurityGroupsMembers** | Pointer to [**[]SecurityGroupsMember**](SecurityGroupsMember.md) | Information about one or more source or destination security groups. | [optional] 
**ServiceIds** | Pointer to **[]string** | One or more service IDs to allow traffic from a Net to access the corresponding OUTSCALE services. For more information, see [ReadNetAccessPointServices](#readnetaccesspointservices). | [optional] 
**ToPortRange** | Pointer to **int32** | The end of the port range for the TCP and UDP protocols, or an ICMP code number. | [optional] 

## Methods

### NewSecurityGroupRule

`func NewSecurityGroupRule() *SecurityGroupRule`

NewSecurityGroupRule instantiates a new SecurityGroupRule object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed

### NewSecurityGroupRuleWithDefaults

`func NewSecurityGroupRuleWithDefaults() *SecurityGroupRule`

NewSecurityGroupRuleWithDefaults instantiates a new SecurityGroupRule object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set

### GetFromPortRange

`func (o *SecurityGroupRule) GetFromPortRange() int32`

GetFromPortRange returns the FromPortRange field if non-nil, zero value otherwise.

### GetFromPortRangeOk

`func (o *SecurityGroupRule) GetFromPortRangeOk() (*int32, bool)`

GetFromPortRangeOk returns a tuple with the FromPortRange field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetFromPortRange

`func (o *SecurityGroupRule) SetFromPortRange(v int32)`

SetFromPortRange sets FromPortRange field to given value.

### HasFromPortRange

`func (o *SecurityGroupRule) HasFromPortRange() bool`

HasFromPortRange returns a boolean if a field has been set.

### GetIpProtocol

`func (o *SecurityGroupRule) GetIpProtocol() string`

GetIpProtocol returns the IpProtocol field if non-nil, zero value otherwise.

### GetIpProtocolOk

`func (o *SecurityGroupRule) GetIpProtocolOk() (*string, bool)`

GetIpProtocolOk returns a tuple with the IpProtocol field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetIpProtocol

`func (o *SecurityGroupRule) SetIpProtocol(v string)`

SetIpProtocol sets IpProtocol field to given value.

### HasIpProtocol

`func (o *SecurityGroupRule) HasIpProtocol() bool`

HasIpProtocol returns a boolean if a field has been set.

### GetIpRanges

`func (o *SecurityGroupRule) GetIpRanges() []string`

GetIpRanges returns the IpRanges field if non-nil, zero value otherwise.

### GetIpRangesOk

`func (o *SecurityGroupRule) GetIpRangesOk() (*[]string, bool)`

GetIpRangesOk returns a tuple with the IpRanges field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetIpRanges

`func (o *SecurityGroupRule) SetIpRanges(v []string)`

SetIpRanges sets IpRanges field to given value.

### HasIpRanges

`func (o *SecurityGroupRule) HasIpRanges() bool`

HasIpRanges returns a boolean if a field has been set.

### GetSecurityGroupRuleId

`func (o *SecurityGroupRule) GetSecurityGroupRuleId() string`

GetSecurityGroupRuleId returns the SecurityGroupRuleId field if non-nil, zero value otherwise.

### GetSecurityGroupRuleIdOk

`func (o *SecurityGroupRule) GetSecurityGroupRuleIdOk() (*string, bool)`

GetSecurityGroupRuleIdOk returns a tuple with the SecurityGroupRuleId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetSecurityGroupRuleId

`func (o *SecurityGroupRule) SetSecurityGroupRuleId(v string)`

SetSecurityGroupRuleId sets SecurityGroupRuleId field to given value.

### HasSecurityGroupRuleId

`func (o *SecurityGroupRule) HasSecurityGroupRuleId() bool`

HasSecurityGroupRuleId returns a boolean if a field has been set.

### GetSecurityGroupsMembers

`func (o *SecurityGroupRule) GetSecurityGroupsMembers() []SecurityGroupsMember`

GetSecurityGroupsMembers returns the SecurityGroupsMembers field if non-nil, zero value otherwise.

### GetSecurityGroupsMembersOk

`func (o *SecurityGroupRule) GetSecurityGroupsMembersOk() (*[]SecurityGroupsMember, bool)`

GetSecurityGroupsMembersOk returns a tuple with the SecurityGroupsMembers field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetSecurityGroupsMembers

`func (o *SecurityGroupRule) SetSecurityGroupsMembers(v []SecurityGroupsMember)`

SetSecurityGroupsMembers sets SecurityGroupsMembers field to given value.

### HasSecurityGroupsMembers

`func (o *SecurityGroupRule) HasSecurityGroupsMembers() bool`

HasSecurityGroupsMembers returns a boolean if a field has been set.

### GetServiceIds

`func (o *SecurityGroupRule) GetServiceIds() []string`

GetServiceIds returns the ServiceIds field if non-nil, zero value otherwise.

### GetServiceIdsOk

`func (o *SecurityGroupRule) GetServiceIdsOk() (*[]string, bool)`

GetServiceIdsOk returns a tuple with the ServiceIds field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetServiceIds

`func (o *SecurityGroupRule) SetServiceIds(v []string)`

SetServiceIds sets ServiceIds field to given value.

### HasServiceIds

`func (o *SecurityGroupRule) HasServiceIds() bool`

HasServiceIds returns a boolean if a field has been set.

### GetToPortRange

`func (o *SecurityGroupRule) GetToPortRange() int32`

GetToPortRange returns the ToPortRange field if non-nil, zero value otherwise.

### GetToPortRangeOk

`func (o *SecurityGroupRule) GetToPortRangeOk() (*int32, bool)`

GetToPortRangeOk returns a tuple with the ToPortRange field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetToPortRange

`func (o *SecurityGroupRule) SetToPortRange(v int32)`

SetToPortRange sets ToPortRange field to given value.

### HasToPortRange

`func (o *SecurityGroupRule) HasToPortRange() bool`

HasToPortRange returns a boolean if a field has been set.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


