Class: Google::Apis::GmailpostmastertoolsV1::IpReputation

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

Overview

IP Reputation information for a set of IPs in a specific reputation category.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IpReputation

Returns a new instance of IpReputation.



137
138
139
# File 'lib/google/apis/gmailpostmastertools_v1/classes.rb', line 137

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

Instance Attribute Details

#ip_countFixnum

Total number of unique IPs in this reputation category. This metric only pertains to traffic that passed SPF or DKIM. Corresponds to the JSON property ipCount

Returns:

  • (Fixnum)


125
126
127
# File 'lib/google/apis/gmailpostmastertools_v1/classes.rb', line 125

def ip_count
  @ip_count
end

#reputationString

The reputation category this IP reputation represents. Corresponds to the JSON property reputation

Returns:

  • (String)


130
131
132
# File 'lib/google/apis/gmailpostmastertools_v1/classes.rb', line 130

def reputation
  @reputation
end

#sample_ipsArray<String>

A sample of IPs in this reputation category. Corresponds to the JSON property sampleIps

Returns:

  • (Array<String>)


135
136
137
# File 'lib/google/apis/gmailpostmastertools_v1/classes.rb', line 135

def sample_ips
  @sample_ips
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



142
143
144
145
146
# File 'lib/google/apis/gmailpostmastertools_v1/classes.rb', line 142

def update!(**args)
  @ip_count = args[:ip_count] if args.key?(:ip_count)
  @reputation = args[:reputation] if args.key?(:reputation)
  @sample_ips = args[:sample_ips] if args.key?(:sample_ips)
end