Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IpOverrideData

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/recaptchaenterprise_v1/classes.rb,
lib/google/apis/recaptchaenterprise_v1/representations.rb,
lib/google/apis/recaptchaenterprise_v1/representations.rb

Overview

Information about the IP or IP range override.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1IpOverrideData

Returns a new instance of GoogleCloudRecaptchaenterpriseV1IpOverrideData.



1056
1057
1058
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1056

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#ipString

Required. The IP address to override (can be IPv4, IPv6 or CIDR). The IP override must be a valid IPv4 or IPv6 address, or a CIDR range. The IP override must be a public IP address. Example of IPv4: 168.192.5.6 Example of IPv6: 2001:0000:130F:0000:0000:09C0:876A:130B Example of IPv4 with CIDR: 168. 192.5.0/24 Example of IPv6 with CIDR: 2001:0DB8:1234::/48 Corresponds to the JSON property ip

Returns:

  • (String)


1049
1050
1051
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1049

def ip
  @ip
end

#override_typeString

Required. Describes the type of IP override. Corresponds to the JSON property overrideType

Returns:

  • (String)


1054
1055
1056
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1054

def override_type
  @override_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1061
1062
1063
1064
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1061

def update!(**args)
  @ip = args[:ip] if args.key?(:ip)
  @override_type = args[:override_type] if args.key?(:override_type)
end