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.



401
402
403
# File 'lib/google/apis/pubsub_v1/classes.rb', line 401

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



357
358
359
# File 'lib/google/apis/pubsub_v1/classes.rb', line 357

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)


364
365
366
# File 'lib/google/apis/pubsub_v1/classes.rb', line 364

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)


372
373
374
# File 'lib/google/apis/pubsub_v1/classes.rb', line 372

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)


378
379
380
# File 'lib/google/apis/pubsub_v1/classes.rb', line 378

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



386
387
388
# File 'lib/google/apis/pubsub_v1/classes.rb', line 386

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)


392
393
394
# File 'lib/google/apis/pubsub_v1/classes.rb', line 392

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



399
400
401
# File 'lib/google/apis/pubsub_v1/classes.rb', line 399

def text_format
  @text_format
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



406
407
408
409
410
411
412
413
414
# File 'lib/google/apis/pubsub_v1/classes.rb', line 406

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