Class: Google::Apis::RunV1alpha1::CloudStorageSourceSpec
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::CloudStorageSourceSpec
- 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 desired state of the CloudStorageSource.
Instance Attribute Summary collapse
-
#bucket ⇒ String
Bucket to subscribe to.
-
#ce_overrides ⇒ Google::Apis::RunV1alpha1::CloudEventOverrides
CloudEventOverrides defines arguments for a Source that control the output format of the CloudEvents produced by the Source.
-
#event_types ⇒ Array<String>
EventTypes to subscribe to.
-
#object_name_prefix ⇒ String
ObjectNamePrefix limits the notifications to objects with this prefix.
-
#payload_format ⇒ String
PayloadFormat specifies the contents of the message payload.
-
#project ⇒ String
Project is the ID of the Google Cloud Project that the PubSub Topic exists in.
-
#pubsub_secret ⇒ Google::Apis::RunV1alpha1::SecretKeySelector
Cloud Run fully managed: not supported Cloud Run on GKE: supported SecretKeySelector selects a key of a Secret.
-
#secret ⇒ Google::Apis::RunV1alpha1::SecretKeySelector
Cloud Run fully managed: not supported Cloud Run on GKE: supported SecretKeySelector selects a key of a Secret.
-
#service_account_name ⇒ String
ServiceAccountName holds the name of the Kubernetes service account as which the underlying K8s resources should be run.
-
#sink ⇒ Google::Apis::RunV1alpha1::Destination
Sink is a reference to an object that will resolve to a domain name or a URI directly to use as the sink.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudStorageSourceSpec
constructor
A new instance of CloudStorageSourceSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudStorageSourceSpec
Returns a new instance of CloudStorageSourceSpec.
819 820 821 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 819 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bucket ⇒ String
Bucket to subscribe to.
Corresponds to the JSON property bucket
764 765 766 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 764 def bucket @bucket end |
#ce_overrides ⇒ Google::Apis::RunV1alpha1::CloudEventOverrides
CloudEventOverrides defines arguments for a Source that control the output
format of the CloudEvents produced by the Source.
Corresponds to the JSON property ceOverrides
770 771 772 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 770 def ce_overrides @ce_overrides end |
#event_types ⇒ Array<String>
EventTypes to subscribe to. If unspecified, then subscribe to all events.
Corresponds to the JSON property eventTypes
775 776 777 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 775 def event_types @event_types end |
#object_name_prefix ⇒ String
ObjectNamePrefix limits the notifications to objects with this prefix.
Corresponds to the JSON property objectNamePrefix
780 781 782 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 780 def object_name_prefix @object_name_prefix end |
#payload_format ⇒ String
PayloadFormat specifies the contents of the message payload. See https://cloud.
google.com/storage/docs/pubsub-notifications#payload.
Corresponds to the JSON property payloadFormat
786 787 788 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 786 def payload_format @payload_format end |
#project ⇒ String
Project is the ID of the Google Cloud Project that the PubSub Topic exists in.
If omitted, defaults to same as the cluster.
Corresponds to the JSON property project
792 793 794 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 792 def project @project end |
#pubsub_secret ⇒ Google::Apis::RunV1alpha1::SecretKeySelector
Cloud Run fully managed: not supported Cloud Run on GKE: supported
SecretKeySelector selects a key of a Secret.
Corresponds to the JSON property pubsubSecret
798 799 800 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 798 def pubsub_secret @pubsub_secret end |
#secret ⇒ Google::Apis::RunV1alpha1::SecretKeySelector
Cloud Run fully managed: not supported Cloud Run on GKE: supported
SecretKeySelector selects a key of a Secret.
Corresponds to the JSON property secret
804 805 806 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 804 def secret @secret end |
#service_account_name ⇒ String
ServiceAccountName holds the name of the Kubernetes service account as which
the underlying K8s resources should be run. If unspecified this will default
to the "default" service account for the namespace in which the GCS exists.
Corresponds to the JSON property serviceAccountName
811 812 813 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 811 def service_account_name @service_account_name end |
#sink ⇒ Google::Apis::RunV1alpha1::Destination
Sink is a reference to an object that will resolve to a domain name or a URI
directly to use as the sink.
Corresponds to the JSON property sink
817 818 819 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 817 def sink @sink end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
824 825 826 827 828 829 830 831 832 833 834 835 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 824 def update!(**args) @bucket = args[:bucket] if args.key?(:bucket) @ce_overrides = args[:ce_overrides] if args.key?(:ce_overrides) @event_types = args[:event_types] if args.key?(:event_types) @object_name_prefix = args[:object_name_prefix] if args.key?(:object_name_prefix) @payload_format = args[:payload_format] if args.key?(:payload_format) @project = args[:project] if args.key?(:project) @pubsub_secret = args[:pubsub_secret] if args.key?(:pubsub_secret) @secret = args[:secret] if args.key?(:secret) @service_account_name = args[:service_account_name] if args.key?(:service_account_name) @sink = args[:sink] if args.key?(:sink) end |