Class: Google::Apis::ComputeAlpha::NetworkProfile

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



46130
46131
46132
# File 'lib/google/apis/compute_alpha/classes.rb', line 46130

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)


46079
46080
46081
# File 'lib/google/apis/compute_alpha/classes.rb', line 46079

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)


46084
46085
46086
# File 'lib/google/apis/compute_alpha/classes.rb', line 46084

def description
  @description
end

#featuresGoogle::Apis::ComputeAlpha::NetworkProfileNetworkFeatures

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



46089
46090
46091
# File 'lib/google/apis/compute_alpha/classes.rb', line 46089

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)


46096
46097
46098
# File 'lib/google/apis/compute_alpha/classes.rb', line 46096

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)


46102
46103
46104
# File 'lib/google/apis/compute_alpha/classes.rb', line 46102

def kind
  @kind
end

#locationGoogle::Apis::ComputeAlpha::NetworkProfileLocation

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



46107
46108
46109
# File 'lib/google/apis/compute_alpha/classes.rb', line 46107

def location
  @location
end

#nameString

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

Returns:

  • (String)


46112
46113
46114
# File 'lib/google/apis/compute_alpha/classes.rb', line 46112

def name
  @name
end

#profile_typeGoogle::Apis::ComputeAlpha::NetworkProfileProfileType

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



46117
46118
46119
# File 'lib/google/apis/compute_alpha/classes.rb', line 46117

def profile_type
  @profile_type
end

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

Returns:

  • (String)


46122
46123
46124
# File 'lib/google/apis/compute_alpha/classes.rb', line 46122

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)


46128
46129
46130
# File 'lib/google/apis/compute_alpha/classes.rb', line 46128

def self_link_with_id
  @self_link_with_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



46135
46136
46137
46138
46139
46140
46141
46142
46143
46144
46145
46146
# File 'lib/google/apis/compute_alpha/classes.rb', line 46135

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