Class: Google::Apis::TestingV1::DeviceIpBlock

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

Overview

A single device IP block

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeviceIpBlock

Returns a new instance of DeviceIpBlock.



885
886
887
# File 'generated/google/apis/testing_v1/classes.rb', line 885

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

Instance Attribute Details

#added_dateGoogle::Apis::TestingV1::Date

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and google.protobuf.Timestamp. Corresponds to the JSON property addedDate



873
874
875
# File 'generated/google/apis/testing_v1/classes.rb', line 873

def added_date
  @added_date
end

#blockString

An IP address block in CIDR notation eg: 34.68.194.64/29 Corresponds to the JSON property block

Returns:

  • (String)


878
879
880
# File 'generated/google/apis/testing_v1/classes.rb', line 878

def block
  @block
end

#formString

Whether this block is used by physical or virtual devices Corresponds to the JSON property form

Returns:

  • (String)


883
884
885
# File 'generated/google/apis/testing_v1/classes.rb', line 883

def form
  @form
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



890
891
892
893
894
# File 'generated/google/apis/testing_v1/classes.rb', line 890

def update!(**args)
  @added_date = args[:added_date] if args.key?(:added_date)
  @block = args[:block] if args.key?(:block)
  @form = args[:form] if args.key?(:form)
end