Class: Google::Apis::CloudassetV1p7beta1::GcsSetting

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

Overview

Setting for scheduled export to GCS.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GcsSetting

Returns a new instance of GcsSetting.



737
738
739
# File 'lib/google/apis/cloudasset_v1p7beta1/classes.rb', line 737

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

Instance Attribute Details

#destinationGoogle::Apis::CloudassetV1p7beta1::GcsDestination

A Cloud Storage location. Corresponds to the JSON property destination



729
730
731
# File 'lib/google/apis/cloudasset_v1p7beta1/classes.rb', line 729

def destination
  @destination
end

#snapshot_scheduleGoogle::Apis::CloudassetV1p7beta1::ScheduleConfig

Schedule for scheduled export. This is used to configure scheduled export for both GCS and BigQuery. Corresponds to the JSON property snapshotSchedule



735
736
737
# File 'lib/google/apis/cloudasset_v1p7beta1/classes.rb', line 735

def snapshot_schedule
  @snapshot_schedule
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



742
743
744
745
# File 'lib/google/apis/cloudasset_v1p7beta1/classes.rb', line 742

def update!(**args)
  @destination = args[:destination] if args.key?(:destination)
  @snapshot_schedule = args[:snapshot_schedule] if args.key?(:snapshot_schedule)
end