class Google::Apis::FileV1beta1::MaintenancePolicy

Defines policies to service maintenance events.

Attributes

create_time[RW]

Output only. The time when the resource was created. Corresponds to the JSON property `createTime` @return [String]

description[RW]

Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512. Corresponds to the JSON property `description` @return [String]

labels[RW]

Optional. Resource labels to represent user provided metadata. Each label is a key-value pair, where both the key and the value are arbitrary strings provided by the user. Corresponds to the JSON property `labels` @return [Hash<String,String>]

name[RW]

Required. MaintenancePolicy name using the form: `projects/`project_id`/ locations/`location_id`/maintenancePolicies/`maintenance_policy_id“ where ` project_id` refers to a GCP consumer project ID, `location_id` refers to a GCP region/zone, `maintenance_policy_id` must be 1-63 characters long and match the regular expression `[a-z0-9](*[a-z0-9])?`. Corresponds to the JSON property `name` @return [String]

state[RW]

Optional. The state of the policy. Corresponds to the JSON property `state` @return [String]

update_policy[RW]

Maintenance policy applicable to instance updates. Corresponds to the JSON property `updatePolicy` @return [Google::Apis::FileV1beta1::UpdatePolicy]

update_time[RW]

Output only. The time when the resource was updated. Corresponds to the JSON property `updateTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/file_v1beta1/classes.rb, line 1020
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/file_v1beta1/classes.rb, line 1025
def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
  @update_policy = args[:update_policy] if args.key?(:update_policy)
  @update_time = args[:update_time] if args.key?(:update_time)
end