Class: Google::Apis::ComputeAlpha::InternalIpAddress

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ InternalIpAddress

Returns a new instance of InternalIpAddress



13360
13361
13362
# File 'generated/google/apis/compute_alpha/classes.rb', line 13360

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

Instance Attribute Details

#cidrString

IP CIDR address or range. Corresponds to the JSON property cidr

Returns:

  • (String)


13338
13339
13340
# File 'generated/google/apis/compute_alpha/classes.rb', line 13338

def cidr
  @cidr
end

#ownerString

The owner of the internal IP address. Corresponds to the JSON property owner

Returns:

  • (String)


13343
13344
13345
# File 'generated/google/apis/compute_alpha/classes.rb', line 13343

def owner
  @owner
end

#purposeString

The purpose of the internal IP address if applicable. Corresponds to the JSON property purpose

Returns:

  • (String)


13348
13349
13350
# File 'generated/google/apis/compute_alpha/classes.rb', line 13348

def purpose
  @purpose
end

#regionString

The region of the internal IP address if applicable. Corresponds to the JSON property region

Returns:

  • (String)


13353
13354
13355
# File 'generated/google/apis/compute_alpha/classes.rb', line 13353

def region
  @region
end

#typeString

The type of the internal IP address. Corresponds to the JSON property type

Returns:

  • (String)


13358
13359
13360
# File 'generated/google/apis/compute_alpha/classes.rb', line 13358

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13365
13366
13367
13368
13369
13370
13371
# File 'generated/google/apis/compute_alpha/classes.rb', line 13365

def update!(**args)
  @cidr = args[:cidr] if args.key?(:cidr)
  @owner = args[:owner] if args.key?(:owner)
  @purpose = args[:purpose] if args.key?(:purpose)
  @region = args[:region] if args.key?(:region)
  @type = args[:type] if args.key?(:type)
end