class Google::Apis::FileV1::MaintenancePolicy
Defines policies to service maintenance events.
Attributes
Output only. The time when the resource was created. Corresponds to the JSON property `createTime` @return [String]
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]
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>]
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]
Optional. The state of the policy. Corresponds to the JSON property `state` @return [String]
Maintenance policy applicable to instance updates. Corresponds to the JSON property `updatePolicy` @return [Google::Apis::FileV1::UpdatePolicy]
Output only. The time when the resource was updated. Corresponds to the JSON property `updateTime` @return [String]
Public Class Methods
# File lib/google/apis/file_v1/classes.rb, line 982 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/file_v1/classes.rb, line 987 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