Class: Google::Apis::GmailpostmastertoolsV1beta1::IpReputation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/gmailpostmastertools_v1beta1/classes.rb,
generated/google/apis/gmailpostmastertools_v1beta1/representations.rb,
generated/google/apis/gmailpostmastertools_v1beta1/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.



145
146
147
# File 'generated/google/apis/gmailpostmastertools_v1beta1/classes.rb', line 145

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 'generated/google/apis/gmailpostmastertools_v1beta1/classes.rb', line 125

def ip_count
  @ip_count
end

#num_ipsFixnum

Total number of unique IPs in this reputation category. This metric only pertains to traffic that passed SPF or DKIM. Deprecated to be complied with ApiLinter for Quantities. Use ip_count instead. Corresponds to the JSON property numIps

Returns:

  • (Fixnum)


133
134
135
# File 'generated/google/apis/gmailpostmastertools_v1beta1/classes.rb', line 133

def num_ips
  @num_ips
end

#reputationString

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

Returns:

  • (String)


138
139
140
# File 'generated/google/apis/gmailpostmastertools_v1beta1/classes.rb', line 138

def reputation
  @reputation
end

#sample_ipsArray<String>

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

Returns:

  • (Array<String>)


143
144
145
# File 'generated/google/apis/gmailpostmastertools_v1beta1/classes.rb', line 143

def sample_ips
  @sample_ips
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



150
151
152
153
154
155
# File 'generated/google/apis/gmailpostmastertools_v1beta1/classes.rb', line 150

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