Class: Google::Apis::ComputeV1::NetworkProfile

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/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.



38556
38557
38558
# File 'lib/google/apis/compute_v1/classes.rb', line 38556

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)


38505
38506
38507
# File 'lib/google/apis/compute_v1/classes.rb', line 38505

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)


38510
38511
38512
# File 'lib/google/apis/compute_v1/classes.rb', line 38510

def description
  @description
end

#featuresGoogle::Apis::ComputeV1::NetworkProfileNetworkFeatures

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



38515
38516
38517
# File 'lib/google/apis/compute_v1/classes.rb', line 38515

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)


38522
38523
38524
# File 'lib/google/apis/compute_v1/classes.rb', line 38522

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)


38528
38529
38530
# File 'lib/google/apis/compute_v1/classes.rb', line 38528

def kind
  @kind
end

#locationGoogle::Apis::ComputeV1::NetworkProfileLocation

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



38533
38534
38535
# File 'lib/google/apis/compute_v1/classes.rb', line 38533

def location
  @location
end

#nameString

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

Returns:

  • (String)


38538
38539
38540
# File 'lib/google/apis/compute_v1/classes.rb', line 38538

def name
  @name
end

#profile_typeGoogle::Apis::ComputeV1::NetworkProfileProfileType

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



38543
38544
38545
# File 'lib/google/apis/compute_v1/classes.rb', line 38543

def profile_type
  @profile_type
end

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

Returns:

  • (String)


38548
38549
38550
# File 'lib/google/apis/compute_v1/classes.rb', line 38548

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)


38554
38555
38556
# File 'lib/google/apis/compute_v1/classes.rb', line 38554

def self_link_with_id
  @self_link_with_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



38561
38562
38563
38564
38565
38566
38567
38568
38569
38570
38571
38572
# File 'lib/google/apis/compute_v1/classes.rb', line 38561

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