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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CloudStorageSourceSpec
Returns a new instance of CloudStorageSourceSpec.
897 898 899 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 897 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bucket ⇒ String
Bucket to subscribe to.
Corresponds to the JSON property bucket
839 840 841 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 839 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
845 846 847 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 845 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
850 851 852 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 850 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
855 856 857 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 855 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
861 862 863 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 861 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
867 868 869 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 867 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
874 875 876 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 874 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
881 882 883 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 881 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
889 890 891 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 889 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
895 896 897 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 895 def sink @sink end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
902 903 904 905 906 907 908 909 910 911 912 913 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 902 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 |