Class: Google::Apis::ComputeBeta::PreviewFeature

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/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.



46196
46197
46198
# File 'lib/google/apis/compute_beta/classes.rb', line 46196

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)


46149
46150
46151
# File 'lib/google/apis/compute_beta/classes.rb', line 46149

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)


46155
46156
46157
# File 'lib/google/apis/compute_beta/classes.rb', line 46155

def creation_timestamp
  @creation_timestamp
end

#descriptionString

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

Returns:

  • (String)


46160
46161
46162
# File 'lib/google/apis/compute_beta/classes.rb', line 46160

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)


46167
46168
46169
# File 'lib/google/apis/compute_beta/classes.rb', line 46167

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)


46174
46175
46176
# File 'lib/google/apis/compute_beta/classes.rb', line 46174

def kind
  @kind
end

#nameString

Name of the feature. Corresponds to the JSON property name

Returns:

  • (String)


46179
46180
46181
# File 'lib/google/apis/compute_beta/classes.rb', line 46179

def name
  @name
end

#rollout_operationGoogle::Apis::ComputeBeta::PreviewFeatureRolloutOperation

Represents the rollout operation Corresponds to the JSON property rolloutOperation



46184
46185
46186
# File 'lib/google/apis/compute_beta/classes.rb', line 46184

def rollout_operation
  @rollout_operation
end

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

Returns:

  • (String)


46189
46190
46191
# File 'lib/google/apis/compute_beta/classes.rb', line 46189

def self_link
  @self_link
end

#statusGoogle::Apis::ComputeBeta::PreviewFeatureStatus

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



46194
46195
46196
# File 'lib/google/apis/compute_beta/classes.rb', line 46194

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



46201
46202
46203
46204
46205
46206
46207
46208
46209
46210
46211
# File 'lib/google/apis/compute_beta/classes.rb', line 46201

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