Class: Google::Apis::ComputeAlpha::PublicDelegatedPrefixPublicDelegatedSubPrefix

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

Overview

Represents a sub PublicDelegatedPrefix.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PublicDelegatedPrefixPublicDelegatedSubPrefix

Returns a new instance of PublicDelegatedPrefixPublicDelegatedSubPrefix.



34554
34555
34556
# File 'lib/google/apis/compute_alpha/classes.rb', line 34554

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

Instance Attribute Details

#allocatable_prefix_lengthFixnum

The allocatable prefix length supported by this PublicDelegatedSubPrefix. Corresponds to the JSON property allocatablePrefixLength

Returns:

  • (Fixnum)


34507
34508
34509
# File 'lib/google/apis/compute_alpha/classes.rb', line 34507

def allocatable_prefix_length
  @allocatable_prefix_length
end

#delegatee_projectString

Name of the project scoping this PublicDelegatedSubPrefix. Corresponds to the JSON property delegateeProject

Returns:

  • (String)


34512
34513
34514
# File 'lib/google/apis/compute_alpha/classes.rb', line 34512

def delegatee_project
  @delegatee_project
end

#descriptionString

An optional description of this resource. Provide this property when you create the resource. Corresponds to the JSON property description

Returns:

  • (String)


34518
34519
34520
# File 'lib/google/apis/compute_alpha/classes.rb', line 34518

def description
  @description
end

#ip_cidr_rangeString

The IP address range, in CIDR format, represented by this sub public delegated prefix. Corresponds to the JSON property ipCidrRange

Returns:

  • (String)


34524
34525
34526
# File 'lib/google/apis/compute_alpha/classes.rb', line 34524

def ip_cidr_range
  @ip_cidr_range
end

#is_addressBoolean Also known as: is_address?

Whether the sub prefix is delegated to create Address resources in the delegatee project. Corresponds to the JSON property isAddress

Returns:

  • (Boolean)


34530
34531
34532
# File 'lib/google/apis/compute_alpha/classes.rb', line 34530

def is_address
  @is_address
end

#modeString

The PublicDelegatedSubPrefix mode for IPv6 only. Corresponds to the JSON property mode

Returns:

  • (String)


34536
34537
34538
# File 'lib/google/apis/compute_alpha/classes.rb', line 34536

def mode
  @mode
end

#nameString

The name of the sub public delegated prefix. Corresponds to the JSON property name

Returns:

  • (String)


34541
34542
34543
# File 'lib/google/apis/compute_alpha/classes.rb', line 34541

def name
  @name
end

#regionString

[Output Only] The region of the sub public delegated prefix if it is regional. If absent, the sub prefix is global. Corresponds to the JSON property region

Returns:

  • (String)


34547
34548
34549
# File 'lib/google/apis/compute_alpha/classes.rb', line 34547

def region
  @region
end

#statusString

[Output Only] The status of the sub public delegated prefix. Corresponds to the JSON property status

Returns:

  • (String)


34552
34553
34554
# File 'lib/google/apis/compute_alpha/classes.rb', line 34552

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



34559
34560
34561
34562
34563
34564
34565
34566
34567
34568
34569
# File 'lib/google/apis/compute_alpha/classes.rb', line 34559

def update!(**args)
  @allocatable_prefix_length = args[:allocatable_prefix_length] if args.key?(:allocatable_prefix_length)
  @delegatee_project = args[:delegatee_project] if args.key?(:delegatee_project)
  @description = args[:description] if args.key?(:description)
  @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
  @is_address = args[:is_address] if args.key?(:is_address)
  @mode = args[:mode] if args.key?(:mode)
  @name = args[:name] if args.key?(:name)
  @region = args[:region] if args.key?(:region)
  @status = args[:status] if args.key?(:status)
end