Class: Google::Apis::RunV1alpha1::StorageSpec
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::StorageSpec
- 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 Storage.
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 +optional Corresponds to the JSON property
objectNamePrefix
. -
#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) ⇒ StorageSpec
constructor
A new instance of StorageSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ StorageSpec
Returns a new instance of StorageSpec.
4555 4556 4557 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4555 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bucket ⇒ String
Bucket to subscribe to.
Corresponds to the JSON property bucket
4493 4494 4495 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4493 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
4499 4500 4501 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4499 def ce_overrides @ce_overrides end |
#event_types ⇒ Array<String>
EventTypes to subscribe to. If unspecified, then subscribe to all events.
+optional
Corresponds to the JSON property eventTypes
4505 4506 4507 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4505 def event_types @event_types end |
#object_name_prefix ⇒ String
ObjectNamePrefix limits the notifications to objects with this prefix
+optional
Corresponds to the JSON property objectNamePrefix
4511 4512 4513 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4511 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.
+optional
Corresponds to the JSON property payloadFormat
4518 4519 4520 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4518 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. +optional
Corresponds to the JSON property project
4524 4525 4526 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4524 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
4531 4532 4533 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4531 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
4538 4539 4540 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4538 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.
+optional
Corresponds to the JSON property serviceAccountName
4547 4548 4549 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4547 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
4553 4554 4555 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4553 def sink @sink end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 4560 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 |