Class: Google::Apis::RunV1alpha1::CloudStorageSource

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 CloudStorageSource 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) ⇒ CloudStorageSource

Returns a new instance of CloudStorageSource.



818
819
820
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 818

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)


794
795
796
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 794

def api_version
  @api_version
end

#kindString

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

Returns:

  • (String)


799
800
801
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 799

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



805
806
807
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 805

def 
  @metadata
end

#specGoogle::Apis::RunV1alpha1::CloudStorageSourceSpec

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



810
811
812
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 810

def spec
  @spec
end

#statusGoogle::Apis::RunV1alpha1::CloudStorageSourceStatus

CloudStorageSourceStatus represents the current state of a CloudStorageSource. Corresponds to the JSON property status



816
817
818
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 816

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



823
824
825
826
827
828
829
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 823

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