Class: Google::Apis::ServicenetworkingV1beta::Aspect
- Inherits:
-
Object
- Object
- Google::Apis::ServicenetworkingV1beta::Aspect
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/servicenetworking_v1beta/classes.rb,
lib/google/apis/servicenetworking_v1beta/representations.rb,
lib/google/apis/servicenetworking_v1beta/representations.rb
Overview
Aspect represents Generic aspect. It is used to configure an aspect without making direct changes to service.proto
Instance Attribute Summary collapse
-
#kind ⇒ String
The type of this aspect configuration.
-
#spec ⇒ Hash<String,Object>
Content of the configuration.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Aspect
constructor
A new instance of Aspect.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Aspect
Returns a new instance of Aspect.
294 295 296 |
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 294 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
The type of this aspect configuration.
Corresponds to the JSON property kind
286 287 288 |
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 286 def kind @kind end |
#spec ⇒ Hash<String,Object>
Content of the configuration. The underlying schema should be defined by
Aspect owners as protobuf message under google/api/configaspects/proto.
Corresponds to the JSON property spec
292 293 294 |
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 292 def spec @spec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
299 300 301 302 |
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 299 def update!(**args) @kind = args[:kind] if args.key?(:kind) @spec = args[:spec] if args.key?(:spec) end |