Class: Google::Apis::PubsubV1::CloudStorage

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/pubsub_v1/classes.rb,
lib/google/apis/pubsub_v1/representations.rb,
lib/google/apis/pubsub_v1/representations.rb

Overview

Ingestion settings for Cloud Storage.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudStorage

Returns a new instance of CloudStorage.



516
517
518
# File 'lib/google/apis/pubsub_v1/classes.rb', line 516

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#avro_formatGoogle::Apis::PubsubV1::AvroFormat

Configuration for reading Cloud Storage data in Avro binary format. The bytes of each object will be set to the data field of a Pub/Sub message. Corresponds to the JSON property avroFormat



472
473
474
# File 'lib/google/apis/pubsub_v1/classes.rb', line 472

def avro_format
  @avro_format
end

#bucketString

Optional. Cloud Storage bucket. The bucket name must be without any prefix like "gs://". See the bucket naming requirements. Corresponds to the JSON property bucket

Returns:

  • (String)


479
480
481
# File 'lib/google/apis/pubsub_v1/classes.rb', line 479

def bucket
  @bucket
end

#match_globString

Optional. Glob pattern used to match objects that will be ingested. If unset, all objects will be ingested. See the supported patterns. Corresponds to the JSON property matchGlob

Returns:

  • (String)


487
488
489
# File 'lib/google/apis/pubsub_v1/classes.rb', line 487

def match_glob
  @match_glob
end

#minimum_object_create_timeString

Optional. Only objects with a larger or equal creation timestamp will be ingested. Corresponds to the JSON property minimumObjectCreateTime

Returns:

  • (String)


493
494
495
# File 'lib/google/apis/pubsub_v1/classes.rb', line 493

def minimum_object_create_time
  @minimum_object_create_time
end

#pubsub_avro_formatGoogle::Apis::PubsubV1::PubSubAvroFormat

Configuration for reading Cloud Storage data written via Cloud Storage subscriptions. The data and attributes fields of the originally exported Pub/Sub message will be restored when publishing. Corresponds to the JSON property pubsubAvroFormat



501
502
503
# File 'lib/google/apis/pubsub_v1/classes.rb', line 501

def pubsub_avro_format
  @pubsub_avro_format
end

#stateString

Output only. An output-only field that indicates the state of the Cloud Storage ingestion source. Corresponds to the JSON property state

Returns:

  • (String)


507
508
509
# File 'lib/google/apis/pubsub_v1/classes.rb', line 507

def state
  @state
end

#text_formatGoogle::Apis::PubsubV1::TextFormat

Configuration for reading Cloud Storage data in text format. Each line of text as specified by the delimiter will be set to the data field of a Pub/Sub message. Corresponds to the JSON property textFormat



514
515
516
# File 'lib/google/apis/pubsub_v1/classes.rb', line 514

def text_format
  @text_format
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



521
522
523
524
525
526
527
528
529
# File 'lib/google/apis/pubsub_v1/classes.rb', line 521

def update!(**args)
  @avro_format = args[:avro_format] if args.key?(:avro_format)
  @bucket = args[:bucket] if args.key?(:bucket)
  @match_glob = args[:match_glob] if args.key?(:match_glob)
  @minimum_object_create_time = args[:minimum_object_create_time] if args.key?(:minimum_object_create_time)
  @pubsub_avro_format = args[:pubsub_avro_format] if args.key?(:pubsub_avro_format)
  @state = args[:state] if args.key?(:state)
  @text_format = args[:text_format] if args.key?(:text_format)
end