Class: Google::Apis::ComputeAlpha::NetworkProfile
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::NetworkProfile
- 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
-
#creation_timestamp ⇒ String
Output only.
-
#description ⇒ String
Output only.
-
#features ⇒ Google::Apis::ComputeAlpha::NetworkProfileNetworkFeatures
Output only.
-
#id ⇒ Fixnum
Output only.
-
#kind ⇒ String
Output only.
-
#location ⇒ Google::Apis::ComputeAlpha::NetworkProfileLocation
Output only.
-
#name ⇒ String
Output only.
-
#profile_type ⇒ Google::Apis::ComputeAlpha::NetworkProfileProfileType
Output only.
-
#self_link ⇒ String
Output only.
-
#self_link_with_id ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkProfile
constructor
A new instance of NetworkProfile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NetworkProfile
Returns a new instance of NetworkProfile.
48134 48135 48136 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 48134 def initialize(**args) update!(**args) end |
Instance Attribute Details
#creation_timestamp ⇒ String
Output only. [Output Only] Creation timestamp inRFC3339
text format.
Corresponds to the JSON property creationTimestamp
48083 48084 48085 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 48083 def @creation_timestamp end |
#description ⇒ String
Output only. [Output Only] An optional description of this resource.
Corresponds to the JSON property description
48088 48089 48090 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 48088 def description @description end |
#features ⇒ Google::Apis::ComputeAlpha::NetworkProfileNetworkFeatures
Output only. [Output Only] Features supported by the network.
Corresponds to the JSON property features
48093 48094 48095 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 48093 def features @features end |
#id ⇒ Fixnum
Output only. [Output Only] The unique identifier for the resource. This
identifier is
defined by the server.
Corresponds to the JSON property id
48100 48101 48102 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 48100 def id @id end |
#kind ⇒ String
Output only. [Output Only] Type of the resource. Alwayscompute#networkProfile
for network profiles.
Corresponds to the JSON property kind
48106 48107 48108 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 48106 def kind @kind end |
#location ⇒ Google::Apis::ComputeAlpha::NetworkProfileLocation
Output only. [Output Only] Location to which the network is restricted.
Corresponds to the JSON property location
48111 48112 48113 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 48111 def location @location end |
#name ⇒ String
Output only. [Output Only] Name of the resource.
Corresponds to the JSON property name
48116 48117 48118 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 48116 def name @name end |
#profile_type ⇒ Google::Apis::ComputeAlpha::NetworkProfileProfileType
Output only. [Output Only] Type of the network profile.
Corresponds to the JSON property profileType
48121 48122 48123 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 48121 def profile_type @profile_type end |
#self_link ⇒ String
Output only. [Output Only] Server-defined URL for the resource.
Corresponds to the JSON property selfLink
48126 48127 48128 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 48126 def self_link @self_link end |
#self_link_with_id ⇒ String
Output only. [Output Only] Server-defined URL for this resource with the
resource id.
Corresponds to the JSON property selfLinkWithId
48132 48133 48134 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 48132 def self_link_with_id @self_link_with_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
48139 48140 48141 48142 48143 48144 48145 48146 48147 48148 48149 48150 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 48139 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 |