Class: Google::Apis::RunV1alpha1::CloudStorageSourceSpec

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 desired state of the CloudStorageSource.

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

#bucketString

Bucket to subscribe to. Corresponds to the JSON property bucket

Returns:

  • (String)


839
840
841
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 839

def bucket
  @bucket
end

#ce_overridesGoogle::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_typesArray<String>

EventTypes to subscribe to. If unspecified, then subscribe to all events. Corresponds to the JSON property eventTypes

Returns:

  • (Array<String>)


850
851
852
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 850

def event_types
  @event_types
end

#object_name_prefixString

ObjectNamePrefix limits the notifications to objects with this prefix. Corresponds to the JSON property objectNamePrefix

Returns:

  • (String)


855
856
857
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 855

def object_name_prefix
  @object_name_prefix
end

#payload_formatString

PayloadFormat specifies the contents of the message payload. See https://cloud.google.com/storage/docs/pubsub-notifications#payload. Corresponds to the JSON property payloadFormat

Returns:

  • (String)


861
862
863
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 861

def payload_format
  @payload_format
end

#projectString

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

Returns:

  • (String)


867
868
869
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 867

def project
  @project
end

#pubsub_secretGoogle::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

#secretGoogle::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_nameString

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

Returns:

  • (String)


889
890
891
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 889

def 
  @service_account_name
end

#sinkGoogle::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