Class: Google::Apis::RunV1alpha1::Trigger

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Trigger

Returns a new instance of Trigger.



4567
4568
4569
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4567

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#api_versionString

The API version for this call such as "eventing.knative.dev/v1alpha1". Corresponds to the JSON property apiVersion

Returns:

  • (String)


4544
4545
4546
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4544

def api_version
  @api_version
end

#kindString

The kind of resource, in this case "Trigger". Corresponds to the JSON property kind

Returns:

  • (String)


4549
4550
4551
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4549

def kind
  @kind
end

#metadataGoogle::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



4555
4556
4557
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4555

def 
  @metadata
end

#specGoogle::Apis::RunV1alpha1::TriggerSpec

The desired state of the Trigger. Corresponds to the JSON property spec



4560
4561
4562
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4560

def spec
  @spec
end

#statusGoogle::Apis::RunV1alpha1::TriggerStatus

TriggerStatus represents the current state of a Trigger. Corresponds to the JSON property status



4565
4566
4567
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4565

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4572
4573
4574
4575
4576
4577
4578
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4572

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)
  @status = args[:status] if args.key?(:status)
end