Class: Google::Apis::ConnectorsV1::MaintenancePolicy
- Inherits:
-
Object
- Object
- Google::Apis::ConnectorsV1::MaintenancePolicy
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/connectors_v1/classes.rb,
lib/google/apis/connectors_v1/representations.rb,
lib/google/apis/connectors_v1/representations.rb
Overview
LINT.IfChange 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::ConnectorsV1::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.
3511 3512 3513 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 3511 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
3472 3473 3474 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 3472 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
3478 3479 3480 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 3478 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
3485 3486 3487 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 3485 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 expressiona-z0-9?.
Corresponds to the JSON propertyname`
3494 3495 3496 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 3494 def name @name end |
#state ⇒ String
Optional. The state of the policy.
Corresponds to the JSON property state
3499 3500 3501 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 3499 def state @state end |
#update_policy ⇒ Google::Apis::ConnectorsV1::UpdatePolicy
Maintenance policy applicable to instance updates.
Corresponds to the JSON property updatePolicy
3504 3505 3506 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 3504 def update_policy @update_policy end |
#update_time ⇒ String
Output only. The time when the resource was updated.
Corresponds to the JSON property updateTime
3509 3510 3511 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 3509 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3516 3517 3518 3519 3520 3521 3522 3523 3524 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 3516 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 |