Class: Google::Apis::FileV1::UpdatePolicy

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

Overview

Maintenance policy applicable to instance updates.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdatePolicy

Returns a new instance of UpdatePolicy.



1463
1464
1465
# File 'lib/google/apis/file_v1/classes.rb', line 1463

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

Instance Attribute Details

#channelString

Optional. Relative scheduling channel applied to resource. Corresponds to the JSON property channel

Returns:

  • (String)


1448
1449
1450
# File 'lib/google/apis/file_v1/classes.rb', line 1448

def channel
  @channel
end

#deny_maintenance_periodsArray<Google::Apis::FileV1::DenyMaintenancePeriod>

Deny Maintenance Period that is applied to resource to indicate when maintenance is forbidden. User can specify zero or more non-overlapping deny periods. For V1, Maximum number of deny_maintenance_periods is expected to be one. Corresponds to the JSON property denyMaintenancePeriods



1456
1457
1458
# File 'lib/google/apis/file_v1/classes.rb', line 1456

def deny_maintenance_periods
  @deny_maintenance_periods
end

#windowGoogle::Apis::FileV1::MaintenanceWindow

MaintenanceWindow definition. Corresponds to the JSON property window



1461
1462
1463
# File 'lib/google/apis/file_v1/classes.rb', line 1461

def window
  @window
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1468
1469
1470
1471
1472
# File 'lib/google/apis/file_v1/classes.rb', line 1468

def update!(**args)
  @channel = args[:channel] if args.key?(:channel)
  @deny_maintenance_periods = args[:deny_maintenance_periods] if args.key?(:deny_maintenance_periods)
  @window = args[:window] if args.key?(:window)
end