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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InternalIpAddress

Returns a new instance of InternalIpAddress.



20251
20252
20253
# File 'lib/google/apis/compute_alpha/classes.rb', line 20251

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

Instance Attribute Details

#cidrString

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

Returns:

  • (String)


20229
20230
20231
# File 'lib/google/apis/compute_alpha/classes.rb', line 20229

def cidr
  @cidr
end

#ownerString

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

Returns:

  • (String)


20234
20235
20236
# File 'lib/google/apis/compute_alpha/classes.rb', line 20234

def owner
  @owner
end

#purposeString

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

Returns:

  • (String)


20239
20240
20241
# File 'lib/google/apis/compute_alpha/classes.rb', line 20239

def purpose
  @purpose
end

#regionString

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

Returns:

  • (String)


20244
20245
20246
# File 'lib/google/apis/compute_alpha/classes.rb', line 20244

def region
  @region
end

#typeString

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

Returns:

  • (String)


20249
20250
20251
# File 'lib/google/apis/compute_alpha/classes.rb', line 20249

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20256
20257
20258
20259
20260
20261
20262
# File 'lib/google/apis/compute_alpha/classes.rb', line 20256

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