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

Constructor Details

#initialize(**args) ⇒ CloudStorageSource

Returns a new instance of CloudStorageSource.



743
744
745
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 743

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)


720
721
722
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 720

def api_version
  @api_version
end

#kindString

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

Returns:

  • (String)


725
726
727
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 725

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



731
732
733
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 731

def 
  @metadata
end

#specGoogle::Apis::RunV1alpha1::CloudStorageSourceSpec

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



736
737
738
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 736

def spec
  @spec
end

#statusGoogle::Apis::RunV1alpha1::CloudStorageSourceStatus

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



741
742
743
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 741

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



748
749
750
751
752
753
754
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 748

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