Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1EnvironmentConfigClientIpResolutionConfigHeaderIndexAlgorithm

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

Overview

Resolves the client ip based on a custom header.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1EnvironmentConfigClientIpResolutionConfigHeaderIndexAlgorithm

Returns a new instance of GoogleCloudApigeeV1EnvironmentConfigClientIpResolutionConfigHeaderIndexAlgorithm.



4572
4573
4574
# File 'lib/google/apis/apigee_v1/classes.rb', line 4572

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

Instance Attribute Details

#ip_header_indexFixnum

The index of the ip in the header. (By default, value is 0 if missing) Corresponds to the JSON property ipHeaderIndex

Returns:

  • (Fixnum)


4565
4566
4567
# File 'lib/google/apis/apigee_v1/classes.rb', line 4565

def ip_header_index
  @ip_header_index
end

#ip_header_nameString

The name of the header to extract the client ip from. Corresponds to the JSON property ipHeaderName

Returns:

  • (String)


4570
4571
4572
# File 'lib/google/apis/apigee_v1/classes.rb', line 4570

def ip_header_name
  @ip_header_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4577
4578
4579
4580
# File 'lib/google/apis/apigee_v1/classes.rb', line 4577

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