Class: Google::Apis::ComputeAlpha::ReliabilityRisk
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::ReliabilityRisk
- 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
-
#creation_timestamp ⇒ String
Output only.
-
#description ⇒ String
An optional textual description of the resource; provided when the resource is created.
-
#details ⇒ Google::Apis::ComputeAlpha::RiskDetails
Details about a risk.
-
#id ⇒ Fixnum
[Output Only] The unique identifier for the resource.
-
#kind ⇒ String
Output only.
-
#name ⇒ String
Name of the resource.
-
#recommendation ⇒ Google::Apis::ComputeAlpha::RiskRecommendation
Recommendation with reference url.
-
#self_link ⇒ String
Output only.
-
#self_link_with_id ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReliabilityRisk
constructor
A new instance of ReliabilityRisk.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ReliabilityRisk
Returns a new instance of ReliabilityRisk.
57459 57460 57461 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 57459 def initialize(**args) update!(**args) end |
Instance Attribute Details
#creation_timestamp ⇒ String
Output only. [Output Only] Creation timestamp inRFC3339
text format.
Corresponds to the JSON property creationTimestamp
57412 57413 57414 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 57412 def @creation_timestamp end |
#description ⇒ String
An optional textual description of the resource; provided when the
resource is created.
Corresponds to the JSON property description
57418 57419 57420 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 57418 def description @description end |
#details ⇒ Google::Apis::ComputeAlpha::RiskDetails
Details about a risk.
Corresponds to the JSON property details
57423 57424 57425 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 57423 def details @details end |
#id ⇒ Fixnum
[Output Only] The unique identifier for the resource. This identifier is
defined by the server.
Corresponds to the JSON property id
57429 57430 57431 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 57429 def id @id end |
#kind ⇒ String
Output only. [Output Only] Type of resource. Always compute#reliabilityRisk
for reliability risks.
Corresponds to the JSON property kind
57435 57436 57437 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 57435 def kind @kind end |
#name ⇒ String
Name of the resource. The name must be 1-63 characters long and
comply withRFC1035.
Corresponds to the JSON property name
57441 57442 57443 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 57441 def name @name end |
#recommendation ⇒ Google::Apis::ComputeAlpha::RiskRecommendation
Recommendation with reference url.
Corresponds to the JSON property recommendation
57446 57447 57448 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 57446 def recommendation @recommendation end |
#self_link ⇒ String
Output only. [Output Only] Server-defined URL for the resource.
Corresponds to the JSON property selfLink
57451 57452 57453 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 57451 def self_link @self_link end |
#self_link_with_id ⇒ String
Output only. [Output Only] Server-defined URL for this resource with the
resource id.
Corresponds to the JSON property selfLinkWithId
57457 57458 57459 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 57457 def self_link_with_id @self_link_with_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
57464 57465 57466 57467 57468 57469 57470 57471 57472 57473 57474 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 57464 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 |