Class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1WorkloadUpdate

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1WorkloadUpdate

Returns a new instance of GoogleCloudAssuredworkloadsV1WorkloadUpdate.



1594
1595
1596
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1594

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

The time the update was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1570
1571
1572
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1570

def create_time
  @create_time
end

#detailsGoogle::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsV1UpdateDetails

The details of the update. Corresponds to the JSON property details



1575
1576
1577
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1575

def details
  @details
end

#nameString

Output only. Immutable. Identifier. Resource name of the WorkloadUpdate. Format: organizations/organization/locations/location/workloads/workload/ updates/update Corresponds to the JSON property name

Returns:

  • (String)


1582
1583
1584
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1582

def name
  @name
end

#stateString

Output only. The state of the update. Corresponds to the JSON property state

Returns:

  • (String)


1587
1588
1589
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1587

def state
  @state
end

#update_timeString

The time the update was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1592
1593
1594
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1592

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1599
1600
1601
1602
1603
1604
1605
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1599

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