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.



24579
24580
24581
# File 'generated/google/apis/compute_alpha/classes.rb', line 24579

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)


24564
24565
24566
# File 'generated/google/apis/compute_alpha/classes.rb', line 24564

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)


24570
24571
24572
# File 'generated/google/apis/compute_alpha/classes.rb', line 24570

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)


24577
24578
24579
# File 'generated/google/apis/compute_alpha/classes.rb', line 24577

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



24584
24585
24586
24587
24588
# File 'generated/google/apis/compute_alpha/classes.rb', line 24584

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