Class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadUpdate
- Inherits:
-
Object
- Object
- Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1WorkloadUpdate
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/assuredworkloads_v1beta1/classes.rb,
lib/google/apis/assuredworkloads_v1beta1/representations.rb,
lib/google/apis/assuredworkloads_v1beta1/representations.rb
Overview
A workload update is a change to the workload's compliance configuration.
Instance Attribute Summary collapse
-
#create_time ⇒ String
The time the update was created.
-
#details ⇒ Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1UpdateDetails
The details of the update.
-
#name ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#update_time ⇒ String
The time the update was last updated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1beta1WorkloadUpdate
constructor
A new instance of GoogleCloudAssuredworkloadsV1beta1WorkloadUpdate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1beta1WorkloadUpdate
Returns a new instance of GoogleCloudAssuredworkloadsV1beta1WorkloadUpdate.
2481 2482 2483 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 2481 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
The time the update was created.
Corresponds to the JSON property createTime
2457 2458 2459 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 2457 def create_time @create_time end |
#details ⇒ Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1UpdateDetails
The details of the update.
Corresponds to the JSON property details
2462 2463 2464 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 2462 def details @details end |
#name ⇒ String
Output only. Immutable. Identifier. Resource name of the WorkloadUpdate.
Format: organizations/organization/locations/location/workloads/workload/
updates/update
Corresponds to the JSON property name
2469 2470 2471 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 2469 def name @name end |
#state ⇒ String
Output only. The state of the update.
Corresponds to the JSON property state
2474 2475 2476 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 2474 def state @state end |
#update_time ⇒ String
The time the update was last updated.
Corresponds to the JSON property updateTime
2479 2480 2481 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 2479 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2486 2487 2488 2489 2490 2491 2492 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 2486 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @details = args[:details] if args.key?(:details) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) @update_time = args[:update_time] if args.key?(:update_time) end |