Class: Google::Apis::ComputeAlpha::PreviewFeature
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::PreviewFeature
- 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
Represents a single Google Compute Engine preview feature.
Instance Attribute Summary collapse
-
#activation_status ⇒ String
Specifies whether the feature is enabled or disabled.
-
#creation_timestamp ⇒ String
Output only.
-
#description ⇒ String
Output only.
-
#id ⇒ Fixnum
Output only.
-
#kind ⇒ String
Output only.
-
#name ⇒ String
Name of the feature.
-
#rollout_operation ⇒ Google::Apis::ComputeAlpha::PreviewFeatureRolloutOperation
Represents the rollout operation Corresponds to the JSON property
rolloutOperation. -
#self_link ⇒ String
Output only.
-
#status ⇒ Google::Apis::ComputeAlpha::PreviewFeatureStatus
[Output Only] The status of the feature.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PreviewFeature
constructor
A new instance of PreviewFeature.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PreviewFeature
Returns a new instance of PreviewFeature.
52004 52005 52006 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 52004 def initialize(**args) update!(**args) end |
Instance Attribute Details
#activation_status ⇒ String
Specifies whether the feature is enabled or disabled.
Corresponds to the JSON property activationStatus
51957 51958 51959 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 51957 def activation_status @activation_status end |
#creation_timestamp ⇒ String
Output only. [Output Only] Creation timestamp inRFC3339
text format.
Corresponds to the JSON property creationTimestamp
51963 51964 51965 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 51963 def @creation_timestamp end |
#description ⇒ String
Output only. [Output Only] Description of the feature.
Corresponds to the JSON property description
51968 51969 51970 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 51968 def description @description 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
51975 51976 51977 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 51975 def id @id end |
#kind ⇒ String
Output only. [Output only] The type of the feature. Always "compute#
previewFeature" for
preview features.
Corresponds to the JSON property kind
51982 51983 51984 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 51982 def kind @kind end |
#name ⇒ String
Name of the feature.
Corresponds to the JSON property name
51987 51988 51989 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 51987 def name @name end |
#rollout_operation ⇒ Google::Apis::ComputeAlpha::PreviewFeatureRolloutOperation
Represents the rollout operation
Corresponds to the JSON property rolloutOperation
51992 51993 51994 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 51992 def rollout_operation @rollout_operation end |
#self_link ⇒ String
Output only. [Output Only] Server-defined URL for the resource.
Corresponds to the JSON property selfLink
51997 51998 51999 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 51997 def self_link @self_link end |
#status ⇒ Google::Apis::ComputeAlpha::PreviewFeatureStatus
[Output Only] The status of the feature.
Corresponds to the JSON property status
52002 52003 52004 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 52002 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
52009 52010 52011 52012 52013 52014 52015 52016 52017 52018 52019 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 52009 def update!(**args) @activation_status = args[:activation_status] if args.key?(:activation_status) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @rollout_operation = args[:rollout_operation] if args.key?(:rollout_operation) @self_link = args[:self_link] if args.key?(:self_link) @status = args[:status] if args.key?(:status) end |