Class: Google::Apis::ComputeV1::PreviewFeature

Inherits:
Object
  • Object
show all
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

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.



43137
43138
43139
# File 'lib/google/apis/compute_v1/classes.rb', line 43137

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)


43090
43091
43092
# File 'lib/google/apis/compute_v1/classes.rb', line 43090

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)


43096
43097
43098
# File 'lib/google/apis/compute_v1/classes.rb', line 43096

def creation_timestamp
  @creation_timestamp
end

#descriptionString

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

Returns:

  • (String)


43101
43102
43103
# File 'lib/google/apis/compute_v1/classes.rb', line 43101

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)


43108
43109
43110
# File 'lib/google/apis/compute_v1/classes.rb', line 43108

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)


43115
43116
43117
# File 'lib/google/apis/compute_v1/classes.rb', line 43115

def kind
  @kind
end

#nameString

Name of the feature. Corresponds to the JSON property name

Returns:

  • (String)


43120
43121
43122
# File 'lib/google/apis/compute_v1/classes.rb', line 43120

def name
  @name
end

#rollout_operationGoogle::Apis::ComputeV1::PreviewFeatureRolloutOperation

Represents the rollout operation Corresponds to the JSON property rolloutOperation



43125
43126
43127
# File 'lib/google/apis/compute_v1/classes.rb', line 43125

def rollout_operation
  @rollout_operation
end

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

Returns:

  • (String)


43130
43131
43132
# File 'lib/google/apis/compute_v1/classes.rb', line 43130

def self_link
  @self_link
end

#statusGoogle::Apis::ComputeV1::PreviewFeatureStatus

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



43135
43136
43137
# File 'lib/google/apis/compute_v1/classes.rb', line 43135

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



43142
43143
43144
43145
43146
43147
43148
43149
43150
43151
43152
# File 'lib/google/apis/compute_v1/classes.rb', line 43142

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