Class: Google::Apis::PubsubV1::CloudStorageConfig
- Inherits:
-
Object
- Object
- Google::Apis::PubsubV1::CloudStorageConfig
- 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
Configuration for a Cloud Storage subscription.
Instance Attribute Summary collapse
-
#avro_config ⇒ Google::Apis::PubsubV1::AvroConfig
Configuration for writing message data in Avro format.
-
#bucket ⇒ String
Required.
-
#filename_datetime_format ⇒ String
Optional.
-
#filename_prefix ⇒ String
Optional.
-
#filename_suffix ⇒ String
Optional.
-
#max_bytes ⇒ Fixnum
Optional.
-
#max_duration ⇒ String
Optional.
-
#service_account_email ⇒ String
Optional.
-
#state ⇒ String
Output only.
-
#text_config ⇒ Google::Apis::PubsubV1::TextConfig
Configuration for writing message data in text format.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudStorageConfig
constructor
A new instance of CloudStorageConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudStorageConfig
Returns a new instance of CloudStorageConfig.
371 372 373 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 371 def initialize(**args) update!(**args) end |
Instance Attribute Details
#avro_config ⇒ Google::Apis::PubsubV1::AvroConfig
Configuration for writing message data in Avro format. Message payloads and
metadata will be written to files as an Avro binary.
Corresponds to the JSON property avroConfig
306 307 308 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 306 def avro_config @avro_config end |
#bucket ⇒ String
Required. User-provided name for the Cloud Storage bucket. The bucket must be
created by the user. The bucket name must be without any prefix like "gs://".
See the bucket naming requirements.
Corresponds to the JSON property bucket
314 315 316 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 314 def bucket @bucket end |
#filename_datetime_format ⇒ String
Optional. User-provided format string specifying how to represent datetimes in
Cloud Storage filenames. See the datetime format guidance.
Corresponds to the JSON property filenameDatetimeFormat
321 322 323 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 321 def filename_datetime_format @filename_datetime_format end |
#filename_prefix ⇒ String
Optional. User-provided prefix for Cloud Storage filename. See the object
naming requirements.
Corresponds to the JSON property filenamePrefix
327 328 329 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 327 def filename_prefix @filename_prefix end |
#filename_suffix ⇒ String
Optional. User-provided suffix for Cloud Storage filename. See the object
naming requirements.
Must not end in "/".
Corresponds to the JSON property filenameSuffix
334 335 336 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 334 def filename_suffix @filename_suffix end |
#max_bytes ⇒ Fixnum
Optional. The maximum bytes that can be written to a Cloud Storage file before
a new file is created. Min 1 KB, max 10 GiB. The max_bytes limit may be
exceeded in cases where messages are larger than the limit.
Corresponds to the JSON property maxBytes
341 342 343 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 341 def max_bytes @max_bytes end |
#max_duration ⇒ String
Optional. The maximum duration that can elapse before a new Cloud Storage file
is created. Min 1 minute, max 10 minutes, default 5 minutes. May not exceed
the subscription's acknowledgement deadline.
Corresponds to the JSON property maxDuration
348 349 350 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 348 def max_duration @max_duration end |
#service_account_email ⇒ String
Optional. The service account to use to write to Cloud Storage. The
subscription creator or updater that specifies this field must have iam.
serviceAccounts.actAs permission on the service account. If not specified,
the Pub/Sub service agent,
service-project_number@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
Corresponds to the JSON property serviceAccountEmail
357 358 359 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 357 def service_account_email @service_account_email end |
#state ⇒ String
Output only. An output-only field that indicates whether or not the
subscription can receive messages.
Corresponds to the JSON property state
363 364 365 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 363 def state @state end |
#text_config ⇒ Google::Apis::PubsubV1::TextConfig
Configuration for writing message data in text format. Message payloads will
be written to files as raw text, separated by a newline.
Corresponds to the JSON property textConfig
369 370 371 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 369 def text_config @text_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
376 377 378 379 380 381 382 383 384 385 386 387 |
# File 'lib/google/apis/pubsub_v1/classes.rb', line 376 def update!(**args) @avro_config = args[:avro_config] if args.key?(:avro_config) @bucket = args[:bucket] if args.key?(:bucket) @filename_datetime_format = args[:filename_datetime_format] if args.key?(:filename_datetime_format) @filename_prefix = args[:filename_prefix] if args.key?(:filename_prefix) @filename_suffix = args[:filename_suffix] if args.key?(:filename_suffix) @max_bytes = args[:max_bytes] if args.key?(:max_bytes) @max_duration = args[:max_duration] if args.key?(:max_duration) @service_account_email = args[:service_account_email] if args.key?(:service_account_email) @state = args[:state] if args.key?(:state) @text_config = args[:text_config] if args.key?(:text_config) end |