Class: Google::Apis::ComputeV1::NetworkProfile
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::NetworkProfile
- 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
-
#creation_timestamp ⇒ String
Output only.
-
#description ⇒ String
Output only.
-
#features ⇒ Google::Apis::ComputeV1::NetworkProfileNetworkFeatures
Output only.
-
#id ⇒ Fixnum
Output only.
-
#kind ⇒ String
Output only.
-
#location ⇒ Google::Apis::ComputeV1::NetworkProfileLocation
Output only.
-
#name ⇒ String
Output only.
-
#profile_type ⇒ Google::Apis::ComputeV1::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.
37807 37808 37809 |
# File 'lib/google/apis/compute_v1/classes.rb', line 37807 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
37756 37757 37758 |
# File 'lib/google/apis/compute_v1/classes.rb', line 37756 def @creation_timestamp end |
#description ⇒ String
Output only. [Output Only] An optional description of this resource.
Corresponds to the JSON property description
37761 37762 37763 |
# File 'lib/google/apis/compute_v1/classes.rb', line 37761 def description @description end |
#features ⇒ Google::Apis::ComputeV1::NetworkProfileNetworkFeatures
Output only. [Output Only] Features supported by the network.
Corresponds to the JSON property features
37766 37767 37768 |
# File 'lib/google/apis/compute_v1/classes.rb', line 37766 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
37773 37774 37775 |
# File 'lib/google/apis/compute_v1/classes.rb', line 37773 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
37779 37780 37781 |
# File 'lib/google/apis/compute_v1/classes.rb', line 37779 def kind @kind end |
#location ⇒ Google::Apis::ComputeV1::NetworkProfileLocation
Output only. [Output Only] Location to which the network is restricted.
Corresponds to the JSON property location
37784 37785 37786 |
# File 'lib/google/apis/compute_v1/classes.rb', line 37784 def location @location end |
#name ⇒ String
Output only. [Output Only] Name of the resource.
Corresponds to the JSON property name
37789 37790 37791 |
# File 'lib/google/apis/compute_v1/classes.rb', line 37789 def name @name end |
#profile_type ⇒ Google::Apis::ComputeV1::NetworkProfileProfileType
Output only. [Output Only] Type of the network profile.
Corresponds to the JSON property profileType
37794 37795 37796 |
# File 'lib/google/apis/compute_v1/classes.rb', line 37794 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
37799 37800 37801 |
# File 'lib/google/apis/compute_v1/classes.rb', line 37799 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
37805 37806 37807 |
# File 'lib/google/apis/compute_v1/classes.rb', line 37805 def self_link_with_id @self_link_with_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
37812 37813 37814 37815 37816 37817 37818 37819 37820 37821 37822 37823 |
# File 'lib/google/apis/compute_v1/classes.rb', line 37812 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 |