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] Creation timestamp in RFC3339 text format.
-
#description ⇒ String
[Output Only] Description of the feature.
-
#id ⇒ Fixnum
[Output Only] The unique identifier for the resource.
-
#kind ⇒ String
[Output only] The type of the feature.
-
#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] Server-defined URL for the resource.
-
#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.
44740 44741 44742 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 44740 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
44696 44697 44698 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 44696 def activation_status @activation_status end |
#creation_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
Corresponds to the JSON property creationTimestamp
44701 44702 44703 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 44701 def @creation_timestamp end |
#description ⇒ String
[Output Only] Description of the feature.
Corresponds to the JSON property description
44706 44707 44708 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 44706 def description @description end |
#id ⇒ Fixnum
[Output Only] The unique identifier for the resource. This identifier is
defined by the server.
Corresponds to the JSON property id
44712 44713 44714 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 44712 def id @id end |
#kind ⇒ String
[Output only] The type of the feature. Always "compute#previewFeature" for
preview features.
Corresponds to the JSON property kind
44718 44719 44720 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 44718 def kind @kind end |
#name ⇒ String
Name of the feature.
Corresponds to the JSON property name
44723 44724 44725 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 44723 def name @name end |
#rollout_operation ⇒ Google::Apis::ComputeAlpha::PreviewFeatureRolloutOperation
Represents the rollout operation
Corresponds to the JSON property rolloutOperation
44728 44729 44730 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 44728 def rollout_operation @rollout_operation end |
#self_link ⇒ String
[Output Only] Server-defined URL for the resource.
Corresponds to the JSON property selfLink
44733 44734 44735 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 44733 def self_link @self_link end |
#status ⇒ Google::Apis::ComputeAlpha::PreviewFeatureStatus
[Output Only] The status of the feature.
Corresponds to the JSON property status
44738 44739 44740 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 44738 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
44745 44746 44747 44748 44749 44750 44751 44752 44753 44754 44755 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 44745 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 |