Class: Google::Apis::MemcacheV1beta2::GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings

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

Overview

Maintenance settings associated with instance. Allows service producers and end users to assign settings that controls maintenance on this instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings

Returns a new instance of GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings.



524
525
526
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 524

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

Instance Attribute Details

#excludeBoolean Also known as: exclude?

Optional. Exclude instance from maintenance. When true, rollout service will not attempt maintenance on the instance. Rollout service will include the instance in reported rollout progress as not attempted. Corresponds to the JSON property exclude

Returns:

  • (Boolean)


505
506
507
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 505

def exclude
  @exclude
end

#is_rollbackBoolean Also known as: is_rollback?

Optional. If the update call is triggered from rollback, set the value as true. Corresponds to the JSON property isRollback

Returns:

  • (Boolean)


511
512
513
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 511

def is_rollback
  @is_rollback
end

#maintenance_policiesHash<String,Google::Apis::MemcacheV1beta2::MaintenancePolicy>

Optional. The MaintenancePolicies that have been attached to the instance. The key must be of the type name of the oneof policy name defined in MaintenancePolicy, and the embedded policy must define the same policy type. For complete details of MaintenancePolicy, please refer to go/cloud-saas-mw-ug. If only the name is needed (like in the deprecated Instance. maintenance_policy_names field) then only populate MaintenancePolicy.name. Corresponds to the JSON property maintenancePolicies



522
523
524
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 522

def maintenance_policies
  @maintenance_policies
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



529
530
531
532
533
# File 'lib/google/apis/memcache_v1beta2/classes.rb', line 529

def update!(**args)
  @exclude = args[:exclude] if args.key?(:exclude)
  @is_rollback = args[:is_rollback] if args.key?(:is_rollback)
  @maintenance_policies = args[:maintenance_policies] if args.key?(:maintenance_policies)
end