Name | Type | Description | Notes |
---|---|---|---|
Name | string | ||
ExecutionLogging | Pointer to bool | When this option is enabled, all executions of this policy will be logged. By default, only execution errors are logged. | [optional] |
Asns | Pointer to []int32 | [optional] | |
Countries | []CountryCodeEnum | ||
CheckHistoryDistance | Pointer to bool | [optional] | |
HistoryMaxDistanceKm | Pointer to int64 | [optional] | |
DistanceToleranceKm | Pointer to int32 | [optional] | |
HistoryLoginCount | Pointer to int32 | [optional] | |
CheckImpossibleTravel | Pointer to bool | [optional] | |
ImpossibleToleranceKm | Pointer to int32 | [optional] |
func NewGeoIPPolicyRequest(name string, countries []CountryCodeEnum, ) *GeoIPPolicyRequest
NewGeoIPPolicyRequest instantiates a new GeoIPPolicyRequest 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
func NewGeoIPPolicyRequestWithDefaults() *GeoIPPolicyRequest
NewGeoIPPolicyRequestWithDefaults instantiates a new GeoIPPolicyRequest 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
func (o *GeoIPPolicyRequest) GetName() string
GetName returns the Name field if non-nil, zero value otherwise.
func (o *GeoIPPolicyRequest) GetNameOk() (*string, bool)
GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GeoIPPolicyRequest) SetName(v string)
SetName sets Name field to given value.
func (o *GeoIPPolicyRequest) GetExecutionLogging() bool
GetExecutionLogging returns the ExecutionLogging field if non-nil, zero value otherwise.
func (o *GeoIPPolicyRequest) GetExecutionLoggingOk() (*bool, bool)
GetExecutionLoggingOk returns a tuple with the ExecutionLogging field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GeoIPPolicyRequest) SetExecutionLogging(v bool)
SetExecutionLogging sets ExecutionLogging field to given value.
func (o *GeoIPPolicyRequest) HasExecutionLogging() bool
HasExecutionLogging returns a boolean if a field has been set.
func (o *GeoIPPolicyRequest) GetAsns() []int32
GetAsns returns the Asns field if non-nil, zero value otherwise.
func (o *GeoIPPolicyRequest) GetAsnsOk() (*[]int32, bool)
GetAsnsOk returns a tuple with the Asns field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GeoIPPolicyRequest) SetAsns(v []int32)
SetAsns sets Asns field to given value.
func (o *GeoIPPolicyRequest) HasAsns() bool
HasAsns returns a boolean if a field has been set.
func (o *GeoIPPolicyRequest) GetCountries() []CountryCodeEnum
GetCountries returns the Countries field if non-nil, zero value otherwise.
func (o *GeoIPPolicyRequest) GetCountriesOk() (*[]CountryCodeEnum, bool)
GetCountriesOk returns a tuple with the Countries field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GeoIPPolicyRequest) SetCountries(v []CountryCodeEnum)
SetCountries sets Countries field to given value.
func (o *GeoIPPolicyRequest) GetCheckHistoryDistance() bool
GetCheckHistoryDistance returns the CheckHistoryDistance field if non-nil, zero value otherwise.
func (o *GeoIPPolicyRequest) GetCheckHistoryDistanceOk() (*bool, bool)
GetCheckHistoryDistanceOk returns a tuple with the CheckHistoryDistance field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GeoIPPolicyRequest) SetCheckHistoryDistance(v bool)
SetCheckHistoryDistance sets CheckHistoryDistance field to given value.
func (o *GeoIPPolicyRequest) HasCheckHistoryDistance() bool
HasCheckHistoryDistance returns a boolean if a field has been set.
func (o *GeoIPPolicyRequest) GetHistoryMaxDistanceKm() int64
GetHistoryMaxDistanceKm returns the HistoryMaxDistanceKm field if non-nil, zero value otherwise.
func (o *GeoIPPolicyRequest) GetHistoryMaxDistanceKmOk() (*int64, bool)
GetHistoryMaxDistanceKmOk returns a tuple with the HistoryMaxDistanceKm field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GeoIPPolicyRequest) SetHistoryMaxDistanceKm(v int64)
SetHistoryMaxDistanceKm sets HistoryMaxDistanceKm field to given value.
func (o *GeoIPPolicyRequest) HasHistoryMaxDistanceKm() bool
HasHistoryMaxDistanceKm returns a boolean if a field has been set.
func (o *GeoIPPolicyRequest) GetDistanceToleranceKm() int32
GetDistanceToleranceKm returns the DistanceToleranceKm field if non-nil, zero value otherwise.
func (o *GeoIPPolicyRequest) GetDistanceToleranceKmOk() (*int32, bool)
GetDistanceToleranceKmOk returns a tuple with the DistanceToleranceKm field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GeoIPPolicyRequest) SetDistanceToleranceKm(v int32)
SetDistanceToleranceKm sets DistanceToleranceKm field to given value.
func (o *GeoIPPolicyRequest) HasDistanceToleranceKm() bool
HasDistanceToleranceKm returns a boolean if a field has been set.
func (o *GeoIPPolicyRequest) GetHistoryLoginCount() int32
GetHistoryLoginCount returns the HistoryLoginCount field if non-nil, zero value otherwise.
func (o *GeoIPPolicyRequest) GetHistoryLoginCountOk() (*int32, bool)
GetHistoryLoginCountOk returns a tuple with the HistoryLoginCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GeoIPPolicyRequest) SetHistoryLoginCount(v int32)
SetHistoryLoginCount sets HistoryLoginCount field to given value.
func (o *GeoIPPolicyRequest) HasHistoryLoginCount() bool
HasHistoryLoginCount returns a boolean if a field has been set.
func (o *GeoIPPolicyRequest) GetCheckImpossibleTravel() bool
GetCheckImpossibleTravel returns the CheckImpossibleTravel field if non-nil, zero value otherwise.
func (o *GeoIPPolicyRequest) GetCheckImpossibleTravelOk() (*bool, bool)
GetCheckImpossibleTravelOk returns a tuple with the CheckImpossibleTravel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GeoIPPolicyRequest) SetCheckImpossibleTravel(v bool)
SetCheckImpossibleTravel sets CheckImpossibleTravel field to given value.
func (o *GeoIPPolicyRequest) HasCheckImpossibleTravel() bool
HasCheckImpossibleTravel returns a boolean if a field has been set.
func (o *GeoIPPolicyRequest) GetImpossibleToleranceKm() int32
GetImpossibleToleranceKm returns the ImpossibleToleranceKm field if non-nil, zero value otherwise.
func (o *GeoIPPolicyRequest) GetImpossibleToleranceKmOk() (*int32, bool)
GetImpossibleToleranceKmOk returns a tuple with the ImpossibleToleranceKm field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *GeoIPPolicyRequest) SetImpossibleToleranceKm(v int32)
SetImpossibleToleranceKm sets ImpossibleToleranceKm field to given value.
func (o *GeoIPPolicyRequest) HasImpossibleToleranceKm() bool
HasImpossibleToleranceKm returns a boolean if a field has been set.