Class: Google::Apis::WorkloadmanagerV1::WorkloadProfile
- Inherits:
-
Object
- Object
- Google::Apis::WorkloadmanagerV1::WorkloadProfile
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/workloadmanager_v1/classes.rb,
lib/google/apis/workloadmanager_v1/representations.rb,
lib/google/apis/workloadmanager_v1/representations.rb
Overview
Workload resource.
Instance Attribute Summary collapse
-
#labels ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
Identifier.
-
#refreshed_time ⇒ String
Required.
-
#sap_workload ⇒ Google::Apis::WorkloadmanagerV1::SapWorkload
The body of sap workload Corresponds to the JSON property
sapWorkload. -
#workload_type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WorkloadProfile
constructor
A new instance of WorkloadProfile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WorkloadProfile
Returns a new instance of WorkloadProfile.
4062 4063 4064 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4062 def initialize(**args) update!(**args) end |
Instance Attribute Details
#labels ⇒ Hash<String,String>
Optional. such as name, description, version. More example can be found in
deployment
Corresponds to the JSON property labels
4039 4040 4041 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4039 def labels @labels end |
#name ⇒ String
Identifier. name of resource names have the form 'projects/project_id/
locations/location/workloadProfiles/workload_id'
Corresponds to the JSON property name
4045 4046 4047 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4045 def name @name end |
#refreshed_time ⇒ String
Required. time when the workload data was refreshed
Corresponds to the JSON property refreshedTime
4050 4051 4052 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4050 def refreshed_time @refreshed_time end |
#sap_workload ⇒ Google::Apis::WorkloadmanagerV1::SapWorkload
The body of sap workload
Corresponds to the JSON property sapWorkload
4055 4056 4057 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4055 def sap_workload @sap_workload end |
#workload_type ⇒ String
Required. The type of the workload
Corresponds to the JSON property workloadType
4060 4061 4062 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4060 def workload_type @workload_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4067 4068 4069 4070 4071 4072 4073 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4067 def update!(**args) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @refreshed_time = args[:refreshed_time] if args.key?(:refreshed_time) @sap_workload = args[:sap_workload] if args.key?(:sap_workload) @workload_type = args[:workload_type] if args.key?(:workload_type) end |