Class: Google::Apis::ComputeAlpha::ReliabilityRisk

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 ReliabilityRisk resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReliabilityRisk

Returns a new instance of ReliabilityRisk.



58242
58243
58244
# File 'lib/google/apis/compute_alpha/classes.rb', line 58242

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

Instance Attribute Details

#creation_timestampString

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

Returns:

  • (String)


58195
58196
58197
# File 'lib/google/apis/compute_alpha/classes.rb', line 58195

def creation_timestamp
  @creation_timestamp
end

#descriptionString

An optional textual description of the resource; provided when the resource is created. Corresponds to the JSON property description

Returns:

  • (String)


58201
58202
58203
# File 'lib/google/apis/compute_alpha/classes.rb', line 58201

def description
  @description
end

#detailsGoogle::Apis::ComputeAlpha::RiskDetails

Details about a risk. Corresponds to the JSON property details



58206
58207
58208
# File 'lib/google/apis/compute_alpha/classes.rb', line 58206

def details
  @details
end

#idFixnum

[Output Only] The unique identifier for the resource. This identifier is defined by the server. Corresponds to the JSON property id

Returns:

  • (Fixnum)


58212
58213
58214
# File 'lib/google/apis/compute_alpha/classes.rb', line 58212

def id
  @id
end

#kindString

Output only. [Output Only] Type of resource. Always compute#reliabilityRisk for reliability risks. Corresponds to the JSON property kind

Returns:

  • (String)


58218
58219
58220
# File 'lib/google/apis/compute_alpha/classes.rb', line 58218

def kind
  @kind
end

#nameString

Name of the resource. The name must be 1-63 characters long and comply withRFC1035. Corresponds to the JSON property name

Returns:

  • (String)


58224
58225
58226
# File 'lib/google/apis/compute_alpha/classes.rb', line 58224

def name
  @name
end

#recommendationGoogle::Apis::ComputeAlpha::RiskRecommendation

Recommendation with reference url. Corresponds to the JSON property recommendation



58229
58230
58231
# File 'lib/google/apis/compute_alpha/classes.rb', line 58229

def recommendation
  @recommendation
end

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

Returns:

  • (String)


58234
58235
58236
# File 'lib/google/apis/compute_alpha/classes.rb', line 58234

def self_link
  @self_link
end

Output only. [Output Only] Server-defined URL for this resource with the resource id. Corresponds to the JSON property selfLinkWithId

Returns:

  • (String)


58240
58241
58242
# File 'lib/google/apis/compute_alpha/classes.rb', line 58240

def self_link_with_id
  @self_link_with_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



58247
58248
58249
58250
58251
58252
58253
58254
58255
58256
58257
# File 'lib/google/apis/compute_alpha/classes.rb', line 58247

def update!(**args)
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
  @description = args[:description] if args.key?(:description)
  @details = args[:details] if args.key?(:details)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @recommendation = args[:recommendation] if args.key?(:recommendation)
  @self_link = args[:self_link] if args.key?(:self_link)
  @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id)
end