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] Creation timestamp in RFC3339 text format.
-
#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] Type of resource.
-
#name ⇒ String
Name of the resource.
-
#recommendation ⇒ Google::Apis::ComputeAlpha::RiskRecommendation
Recommendation with reference url.
-
#self_link ⇒ String
[Output Only] Server-defined URL for the resource.
-
#self_link_with_id ⇒ String
[Output Only] Server-defined URL for this resource with the resource id.
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.
49925 49926 49927 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 49925 def initialize(**args) update!(**args) end |
Instance Attribute Details
#creation_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
Corresponds to the JSON property creationTimestamp
49879 49880 49881 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 49879 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
49885 49886 49887 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 49885 def description @description end |
#details ⇒ Google::Apis::ComputeAlpha::RiskDetails
Details about a risk.
Corresponds to the JSON property details
49890 49891 49892 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 49890 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
49896 49897 49898 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 49896 def id @id end |
#kind ⇒ String
[Output Only] Type of resource. Always compute#reliabilityRisk for reliability
risks.
Corresponds to the JSON property kind
49902 49903 49904 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 49902 def kind @kind end |
#name ⇒ String
Name of the resource. The name must be 1-63 characters long and comply with
RFC1035.
Corresponds to the JSON property name
49908 49909 49910 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 49908 def name @name end |
#recommendation ⇒ Google::Apis::ComputeAlpha::RiskRecommendation
Recommendation with reference url.
Corresponds to the JSON property recommendation
49913 49914 49915 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 49913 def recommendation @recommendation end |
#self_link ⇒ String
[Output Only] Server-defined URL for the resource.
Corresponds to the JSON property selfLink
49918 49919 49920 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 49918 def self_link @self_link end |
#self_link_with_id ⇒ String
[Output Only] Server-defined URL for this resource with the resource id.
Corresponds to the JSON property selfLinkWithId
49923 49924 49925 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 49923 def self_link_with_id @self_link_with_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
49930 49931 49932 49933 49934 49935 49936 49937 49938 49939 49940 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 49930 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 |