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

Constructor Details

#initialize(**args) ⇒ CloudSchedulerSource

Returns a new instance of CloudSchedulerSource.



599
600
601
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 599

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)


575
576
577
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 575

def api_version
  @api_version
end

#kindString

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

Returns:

  • (String)


580
581
582
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 580

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



586
587
588
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 586

def 
  @metadata
end

#specGoogle::Apis::RunV1alpha1::CloudSchedulerSourceSpec

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



591
592
593
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 591

def spec
  @spec
end

#statusGoogle::Apis::RunV1alpha1::CloudSchedulerSourceStatus

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



597
598
599
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 597

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



604
605
606
607
608
609
610
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 604

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