Class: Google::Apis::ComputeAlpha::PreviewFeature

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

Represents a single Google Compute Engine preview feature.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PreviewFeature

Returns a new instance of PreviewFeature.



52006
52007
52008
# File 'lib/google/apis/compute_alpha/classes.rb', line 52006

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#activation_statusString

Specifies whether the feature is enabled or disabled. Corresponds to the JSON property activationStatus

Returns:

  • (String)


51959
51960
51961
# File 'lib/google/apis/compute_alpha/classes.rb', line 51959

def activation_status
  @activation_status
end

#creation_timestampString

Output only. [Output Only] Creation timestamp inRFC3339 text format. Corresponds to the JSON property creationTimestamp

Returns:

  • (String)


51965
51966
51967
# File 'lib/google/apis/compute_alpha/classes.rb', line 51965

def creation_timestamp
  @creation_timestamp
end

#descriptionString

Output only. [Output Only] Description of the feature. Corresponds to the JSON property description

Returns:

  • (String)


51970
51971
51972
# File 'lib/google/apis/compute_alpha/classes.rb', line 51970

def description
  @description
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)


51977
51978
51979
# File 'lib/google/apis/compute_alpha/classes.rb', line 51977

def id
  @id
end

#kindString

Output only. [Output only] The type of the feature. Always "compute# previewFeature" for preview features. Corresponds to the JSON property kind

Returns:

  • (String)


51984
51985
51986
# File 'lib/google/apis/compute_alpha/classes.rb', line 51984

def kind
  @kind
end

#nameString

Name of the feature. Corresponds to the JSON property name

Returns:

  • (String)


51989
51990
51991
# File 'lib/google/apis/compute_alpha/classes.rb', line 51989

def name
  @name
end

#rollout_operationGoogle::Apis::ComputeAlpha::PreviewFeatureRolloutOperation

Represents the rollout operation Corresponds to the JSON property rolloutOperation



51994
51995
51996
# File 'lib/google/apis/compute_alpha/classes.rb', line 51994

def rollout_operation
  @rollout_operation
end

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

Returns:

  • (String)


51999
52000
52001
# File 'lib/google/apis/compute_alpha/classes.rb', line 51999

def self_link
  @self_link
end

#statusGoogle::Apis::ComputeAlpha::PreviewFeatureStatus

[Output Only] The status of the feature. Corresponds to the JSON property status



52004
52005
52006
# File 'lib/google/apis/compute_alpha/classes.rb', line 52004

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



52011
52012
52013
52014
52015
52016
52017
52018
52019
52020
52021
# File 'lib/google/apis/compute_alpha/classes.rb', line 52011

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