Class: Google::Apis::ComputeAlpha::PublicAdvertisedPrefixPublicDelegatedPrefix

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

Represents a CIDR range which can be used to assign addresses.

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

Returns a new instance of PublicAdvertisedPrefixPublicDelegatedPrefix.



24609
24610
24611
# File 'generated/google/apis/compute_alpha/classes.rb', line 24609

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


24594
24595
24596
# File 'generated/google/apis/compute_alpha/classes.rb', line 24594

def name
  @name
end

#regionString

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

Returns:

  • (String)


24600
24601
24602
# File 'generated/google/apis/compute_alpha/classes.rb', line 24600

def region
  @region
end

#statusString

The status of the public delegated prefix. Possible values are: ACTIVE: The public delegated prefix is active DRAINED: The public delegated prefix is drained. Corresponds to the JSON property status

Returns:

  • (String)


24607
24608
24609
# File 'generated/google/apis/compute_alpha/classes.rb', line 24607

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



24614
24615
24616
24617
24618
# File 'generated/google/apis/compute_alpha/classes.rb', line 24614

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @region = args[:region] if args.key?(:region)
  @status = args[:status] if args.key?(:status)
end