Class: Google::Apis::ManagedidentitiesV1alpha1::MaintenancePolicy
- Inherits:
-
Object
- Object
- Google::Apis::ManagedidentitiesV1alpha1::MaintenancePolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/managedidentities_v1alpha1/classes.rb,
generated/google/apis/managedidentities_v1alpha1/representations.rb,
generated/google/apis/managedidentities_v1alpha1/representations.rb
Overview
Defines policies to service maintenance events.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Optional.
-
#labels ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
Required.
-
#state ⇒ String
Optional.
-
#update_policy ⇒ Google::Apis::ManagedidentitiesV1alpha1::UpdatePolicy
Maintenance policy applicable to instance updates.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MaintenancePolicy
constructor
A new instance of MaintenancePolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MaintenancePolicy
Returns a new instance of MaintenancePolicy.
1211 1212 1213 |
# File 'generated/google/apis/managedidentities_v1alpha1/classes.rb', line 1211 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The time when the resource was created.
Corresponds to the JSON property createTime
1172 1173 1174 |
# File 'generated/google/apis/managedidentities_v1alpha1/classes.rb', line 1172 def create_time @create_time end |
#description ⇒ 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
1178 1179 1180 |
# File 'generated/google/apis/managedidentities_v1alpha1/classes.rb', line 1178 def description @description end |
#labels ⇒ Hash<String,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
1185 1186 1187 |
# File 'generated/google/apis/managedidentities_v1alpha1/classes.rb', line 1185 def labels @labels end |
#name ⇒ String
Required. MaintenancePolicy name using the form: projects/
project_id/
locations/
location_id/maintenancePolicies/
maintenance_policy_id`where
project_idrefers to a GCP consumer project ID,
location_idrefers to a GCP
region/zone,
maintenance_policy_idmust be 1-63 characters long and match
the regular expression
a-z0-9?.
Corresponds to the JSON property
name`
1194 1195 1196 |
# File 'generated/google/apis/managedidentities_v1alpha1/classes.rb', line 1194 def name @name end |
#state ⇒ String
Optional. The state of the policy.
Corresponds to the JSON property state
1199 1200 1201 |
# File 'generated/google/apis/managedidentities_v1alpha1/classes.rb', line 1199 def state @state end |
#update_policy ⇒ Google::Apis::ManagedidentitiesV1alpha1::UpdatePolicy
Maintenance policy applicable to instance updates.
Corresponds to the JSON property updatePolicy
1204 1205 1206 |
# File 'generated/google/apis/managedidentities_v1alpha1/classes.rb', line 1204 def update_policy @update_policy end |
#update_time ⇒ String
Output only. The time when the resource was updated.
Corresponds to the JSON property updateTime
1209 1210 1211 |
# File 'generated/google/apis/managedidentities_v1alpha1/classes.rb', line 1209 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1216 1217 1218 1219 1220 1221 1222 1223 1224 |
# File 'generated/google/apis/managedidentities_v1alpha1/classes.rb', line 1216 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 |