Class: Google::Apis::RunV1alpha1::EventType
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::EventType
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/run_v1alpha1/classes.rb,
generated/google/apis/run_v1alpha1/representations.rb,
generated/google/apis/run_v1alpha1/representations.rb
Instance Attribute Summary collapse
-
#api_version ⇒ String
The API version for this call such as "eventing.knative.dev/v1alpha1".
-
#kind ⇒ String
The kind of resource, in this case "EventType".
-
#metadata ⇒ Google::Apis::RunV1alpha1::ObjectMeta
ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
-
#spec ⇒ Google::Apis::RunV1alpha1::EventTypeSpec
Spec defines the desired state of the EventType.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EventType
constructor
A new instance of EventType.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ EventType
Returns a new instance of EventType
1201 1202 1203 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1201 def initialize(**args) update!(**args) end |
Instance Attribute Details
#api_version ⇒ String
The API version for this call such as "eventing.knative.dev/v1alpha1".
Corresponds to the JSON property apiVersion
1183 1184 1185 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1183 def api_version @api_version end |
#kind ⇒ String
The kind of resource, in this case "EventType".
Corresponds to the JSON property kind
1188 1189 1190 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1188 def kind @kind end |
#metadata ⇒ Google::Apis::RunV1alpha1::ObjectMeta
ObjectMeta is metadata that all persisted resources must have, which includes
all objects users must create.
Corresponds to the JSON property metadata
1194 1195 1196 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1194 def @metadata end |
#spec ⇒ Google::Apis::RunV1alpha1::EventTypeSpec
Spec defines the desired state of the EventType.
Corresponds to the JSON property spec
1199 1200 1201 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1199 def spec @spec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1206 1207 1208 1209 1210 1211 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1206 def update!(**args) @api_version = args[:api_version] if args.key?(:api_version) @kind = args[:kind] if args.key?(:kind) @metadata = args[:metadata] if args.key?(:metadata) @spec = args[:spec] if args.key?(:spec) end |