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

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



951
952
953
# File 'lib/google/apis/testing_v1/classes.rb', line 951

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, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type. TimeOfDay * google.type.DateTime * google.protobuf.Timestamp Corresponds to the JSON property addedDate



939
940
941
# File 'lib/google/apis/testing_v1/classes.rb', line 939

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)


944
945
946
# File 'lib/google/apis/testing_v1/classes.rb', line 944

def block
  @block
end

#formString

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

Returns:

  • (String)


949
950
951
# File 'lib/google/apis/testing_v1/classes.rb', line 949

def form
  @form
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



956
957
958
959
960
# File 'lib/google/apis/testing_v1/classes.rb', line 956

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