Class: Google::Apis::GkehubV1alpha::ServiceMeshType
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1alpha::ServiceMeshType
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1alpha/classes.rb,
lib/google/apis/gkehub_v1alpha/representations.rb,
lib/google/apis/gkehub_v1alpha/representations.rb
Overview
A unique identifier for the type of message. Display_name is intended to be human-readable, code is intended to be machine readable. There should be a one- to-one mapping between display_name and code. (i.e. do not re-use display_names or codes between message types.) See istio.analysis.v1alpha1. AnalysisMessageBase.Type
Instance Attribute Summary collapse
-
#code ⇒ String
A 7 character code matching
^IST[0-9]
4$
or^ASM[0-9]
4$
, intended to uniquely identify the message type. -
#display_name ⇒ String
A human-readable name for the message type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServiceMeshType
constructor
A new instance of ServiceMeshType.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ServiceMeshType
Returns a new instance of ServiceMeshType.
6209 6210 6211 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 6209 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
A 7 character code matching ^IST[0-9]
4$
or ^ASM[0-9]
4$
, intended to
uniquely identify the message type. (e.g. "IST0001" is mapped to the "
InternalError" message type.)
Corresponds to the JSON property code
6200 6201 6202 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 6200 def code @code end |
#display_name ⇒ String
A human-readable name for the message type. e.g. "InternalError", "
PodMissingProxy". This should be the same for all messages of the same type. (
This corresponds to the name
field in open-source Istio.)
Corresponds to the JSON property displayName
6207 6208 6209 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 6207 def display_name @display_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6214 6215 6216 6217 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 6214 def update!(**args) @code = args[:code] if args.key?(:code) @display_name = args[:display_name] if args.key?(:display_name) end |