Class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadUpdate
- Inherits:
-
Object
- Object
- Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadUpdate
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/assuredworkloads_v1/classes.rb,
lib/google/apis/assuredworkloads_v1/representations.rb,
lib/google/apis/assuredworkloads_v1/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::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1UpdateDetails
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) ⇒ GoogleCloudAssuredworkloadsV1WorkloadUpdate
constructor
A new instance of GoogleCloudAssuredworkloadsV1WorkloadUpdate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1WorkloadUpdate
Returns a new instance of GoogleCloudAssuredworkloadsV1WorkloadUpdate.
1547 1548 1549 |
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1547 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
The time the update was created.
Corresponds to the JSON property createTime
1523 1524 1525 |
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1523 def create_time @create_time end |
#details ⇒ Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1UpdateDetails
The details of the update.
Corresponds to the JSON property details
1528 1529 1530 |
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1528 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
1535 1536 1537 |
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1535 def name @name end |
#state ⇒ String
Output only. The state of the update.
Corresponds to the JSON property state
1540 1541 1542 |
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1540 def state @state end |
#update_time ⇒ String
The time the update was last updated.
Corresponds to the JSON property updateTime
1545 1546 1547 |
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1545 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1552 1553 1554 1555 1556 1557 1558 |
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1552 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 |