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.



39975
39976
39977
# File 'lib/google/apis/compute_beta/classes.rb', line 39975

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)


39924
39925
39926
# File 'lib/google/apis/compute_beta/classes.rb', line 39924

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)


39929
39930
39931
# File 'lib/google/apis/compute_beta/classes.rb', line 39929

def description
  @description
end

#featuresGoogle::Apis::ComputeBeta::NetworkProfileNetworkFeatures

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



39934
39935
39936
# File 'lib/google/apis/compute_beta/classes.rb', line 39934

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)


39941
39942
39943
# File 'lib/google/apis/compute_beta/classes.rb', line 39941

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)


39947
39948
39949
# File 'lib/google/apis/compute_beta/classes.rb', line 39947

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



39952
39953
39954
# File 'lib/google/apis/compute_beta/classes.rb', line 39952

def location
  @location
end

#nameString

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

Returns:

  • (String)


39957
39958
39959
# File 'lib/google/apis/compute_beta/classes.rb', line 39957

def name
  @name
end

#profile_typeGoogle::Apis::ComputeBeta::NetworkProfileProfileType

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



39962
39963
39964
# File 'lib/google/apis/compute_beta/classes.rb', line 39962

def profile_type
  @profile_type
end

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

Returns:

  • (String)


39967
39968
39969
# File 'lib/google/apis/compute_beta/classes.rb', line 39967

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)


39973
39974
39975
# File 'lib/google/apis/compute_beta/classes.rb', line 39973

def self_link_with_id
  @self_link_with_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



39980
39981
39982
39983
39984
39985
39986
39987
39988
39989
39990
39991
# File 'lib/google/apis/compute_beta/classes.rb', line 39980

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