Class: Google::Apis::RunV1alpha1::CloudSchedulerSource

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

Overview

The CloudSchedulerSource resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CloudSchedulerSource

Returns a new instance of CloudSchedulerSource.



669
670
671
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 669

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

Instance Attribute Details

#api_versionString

The API version for this call such as "events.cloud.google.com/v1alpha1". Corresponds to the JSON property apiVersion

Returns:

  • (String)


645
646
647
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 645

def api_version
  @api_version
end

#kindString

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

Returns:

  • (String)


650
651
652
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 650

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



656
657
658
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 656

def 
  @metadata
end

#specGoogle::Apis::RunV1alpha1::CloudSchedulerSourceSpec

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



661
662
663
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 661

def spec
  @spec
end

#statusGoogle::Apis::RunV1alpha1::CloudSchedulerSourceStatus

CloudSchedulerSourceStatus represents the current state of a CloudSchedulerSource. Corresponds to the JSON property status



667
668
669
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 667

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



674
675
676
677
678
679
680
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 674

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