Class: Google::Apis::ComputeAlpha::UsableSubnetwork

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

Overview

Subnetwork which the current user has compute.subnetworks.use permission on.

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) ⇒ UsableSubnetwork

Returns a new instance of UsableSubnetwork



31433
31434
31435
# File 'generated/google/apis/compute_alpha/classes.rb', line 31433

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

Instance Attribute Details

#ip_cidr_rangeString

The range of internal addresses that are owned by this subnetwork. Corresponds to the JSON property ipCidrRange

Returns:

  • (String)


31416
31417
31418
# File 'generated/google/apis/compute_alpha/classes.rb', line 31416

def ip_cidr_range
  @ip_cidr_range
end

#networkString

Network URL. Corresponds to the JSON property network

Returns:

  • (String)


31421
31422
31423
# File 'generated/google/apis/compute_alpha/classes.rb', line 31421

def network
  @network
end

#secondary_ip_rangesArray<Google::Apis::ComputeAlpha::UsableSubnetworkSecondaryRange>

Secondary IP ranges. Corresponds to the JSON property secondaryIpRanges



31426
31427
31428
# File 'generated/google/apis/compute_alpha/classes.rb', line 31426

def secondary_ip_ranges
  @secondary_ip_ranges
end

#subnetworkString

Subnetwork URL. Corresponds to the JSON property subnetwork

Returns:

  • (String)


31431
31432
31433
# File 'generated/google/apis/compute_alpha/classes.rb', line 31431

def subnetwork
  @subnetwork
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



31438
31439
31440
31441
31442
31443
# File 'generated/google/apis/compute_alpha/classes.rb', line 31438

def update!(**args)
  @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
  @network = args[:network] if args.key?(:network)
  @secondary_ip_ranges = args[:secondary_ip_ranges] if args.key?(:secondary_ip_ranges)
  @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
end