Class: Google::Apis::ComputeBeta::NetworkProfile

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

Overview

NetworkProfile represents a Google managed network profile resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkProfile

Returns a new instance of NetworkProfile.



41642
41643
41644
# File 'lib/google/apis/compute_beta/classes.rb', line 41642

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

Instance Attribute Details

#creation_timestampString

Output only. [Output Only] Creation timestamp inRFC3339 text format. Corresponds to the JSON property creationTimestamp

Returns:

  • (String)


41591
41592
41593
# File 'lib/google/apis/compute_beta/classes.rb', line 41591

def creation_timestamp
  @creation_timestamp
end

#descriptionString

Output only. [Output Only] An optional description of this resource. Corresponds to the JSON property description

Returns:

  • (String)


41596
41597
41598
# File 'lib/google/apis/compute_beta/classes.rb', line 41596

def description
  @description
end

#featuresGoogle::Apis::ComputeBeta::NetworkProfileNetworkFeatures

Output only. [Output Only] Features supported by the network. Corresponds to the JSON property features



41601
41602
41603
# File 'lib/google/apis/compute_beta/classes.rb', line 41601

def features
  @features
end

#idFixnum

Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server. Corresponds to the JSON property id

Returns:

  • (Fixnum)


41608
41609
41610
# File 'lib/google/apis/compute_beta/classes.rb', line 41608

def id
  @id
end

#kindString

Output only. [Output Only] Type of the resource. Alwayscompute#networkProfile for network profiles. Corresponds to the JSON property kind

Returns:

  • (String)


41614
41615
41616
# File 'lib/google/apis/compute_beta/classes.rb', line 41614

def kind
  @kind
end

#locationGoogle::Apis::ComputeBeta::NetworkProfileLocation

Output only. [Output Only] Location to which the network is restricted. Corresponds to the JSON property location



41619
41620
41621
# File 'lib/google/apis/compute_beta/classes.rb', line 41619

def location
  @location
end

#nameString

Output only. [Output Only] Name of the resource. Corresponds to the JSON property name

Returns:

  • (String)


41624
41625
41626
# File 'lib/google/apis/compute_beta/classes.rb', line 41624

def name
  @name
end

#profile_typeGoogle::Apis::ComputeBeta::NetworkProfileProfileType

Output only. [Output Only] Type of the network profile. Corresponds to the JSON property profileType



41629
41630
41631
# File 'lib/google/apis/compute_beta/classes.rb', line 41629

def profile_type
  @profile_type
end

Output only. [Output Only] Server-defined URL for the resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


41634
41635
41636
# File 'lib/google/apis/compute_beta/classes.rb', line 41634

def self_link
  @self_link
end

Output only. [Output Only] Server-defined URL for this resource with the resource id. Corresponds to the JSON property selfLinkWithId

Returns:

  • (String)


41640
41641
41642
# File 'lib/google/apis/compute_beta/classes.rb', line 41640

def self_link_with_id
  @self_link_with_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



41647
41648
41649
41650
41651
41652
41653
41654
41655
41656
41657
41658
# File 'lib/google/apis/compute_beta/classes.rb', line 41647

def update!(**args)
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
  @description = args[:description] if args.key?(:description)
  @features = args[:features] if args.key?(:features)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @location = args[:location] if args.key?(:location)
  @name = args[:name] if args.key?(:name)
  @profile_type = args[:profile_type] if args.key?(:profile_type)
  @self_link = args[:self_link] if args.key?(:self_link)
  @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id)
end