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 "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
1122 1123 1124 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1122 def initialize(**args) update!(**args) end |
Instance Attribute Details
#api_version ⇒ String
The API version for this call such as "v1alpha1".
Corresponds to the JSON property apiVersion
1104 1105 1106 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1104 def api_version @api_version end |
#kind ⇒ String
The kind of resource, in this case "EventType".
Corresponds to the JSON property kind
1109 1110 1111 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1109 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
1115 1116 1117 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1115 def @metadata end |
#spec ⇒ Google::Apis::RunV1alpha1::EventTypeSpec
Spec defines the desired state of the EventType.
Corresponds to the JSON property spec
1120 1121 1122 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1120 def spec @spec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1127 1128 1129 1130 1131 1132 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 1127 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 |