Class: Google::Apis::CloudassetV1p7beta1::UpdateTimeWindow

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

Time window configuration for asset updates requests.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdateTimeWindow

Returns a new instance of UpdateTimeWindow.



2307
2308
2309
# File 'lib/google/apis/cloudasset_v1p7beta1/classes.rb', line 2307

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

Instance Attribute Details

#time_windowGoogle::Apis::CloudassetV1p7beta1::TimeWindow

A time window specified by its start_time and end_time. Corresponds to the JSON property timeWindow



2300
2301
2302
# File 'lib/google/apis/cloudasset_v1p7beta1/classes.rb', line 2300

def time_window
  @time_window
end

#typeString

The type of the time in time_window. Corresponds to the JSON property type

Returns:

  • (String)


2305
2306
2307
# File 'lib/google/apis/cloudasset_v1p7beta1/classes.rb', line 2305

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2312
2313
2314
2315
# File 'lib/google/apis/cloudasset_v1p7beta1/classes.rb', line 2312

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