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
-
#application ⇒ Google::Apis::WorkloadmanagerV1::Layer
The database layer Corresponds to the JSON property
application. -
#ascs ⇒ Google::Apis::WorkloadmanagerV1::Layer
The database layer Corresponds to the JSON property
ascs. -
#database ⇒ Google::Apis::WorkloadmanagerV1::Layer
The database layer Corresponds to the JSON property
database. -
#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. -
#sqlserver_workload ⇒ Google::Apis::WorkloadmanagerV1::SqlserverWorkload
The body of sqlserver workload Corresponds to the JSON property
sqlserverWorkload. -
#state ⇒ String
Output only.
-
#three_tier_workload ⇒ Google::Apis::WorkloadmanagerV1::ThreeTierWorkload
The body of three tier workload Corresponds to the JSON property
threeTierWorkload. -
#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.
2174 2175 2176 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2174 def initialize(**args) update!(**args) end |
Instance Attribute Details
#application ⇒ Google::Apis::WorkloadmanagerV1::Layer
The database layer
Corresponds to the JSON property application
2120 2121 2122 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2120 def application @application end |
#ascs ⇒ Google::Apis::WorkloadmanagerV1::Layer
The database layer
Corresponds to the JSON property ascs
2125 2126 2127 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2125 def ascs @ascs end |
#database ⇒ Google::Apis::WorkloadmanagerV1::Layer
The database layer
Corresponds to the JSON property database
2130 2131 2132 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2130 def database @database end |
#labels ⇒ Hash<String,String>
Optional. such as name, description, version. More example can be found in
deployment
Corresponds to the JSON property labels
2136 2137 2138 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2136 def labels @labels end |
#name ⇒ String
Identifier. name of resource names have the form 'projects/project_id/
workloads/workload_id'
Corresponds to the JSON property name
2142 2143 2144 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2142 def name @name end |
#refreshed_time ⇒ String
Required. time when the workload data was refreshed
Corresponds to the JSON property refreshedTime
2147 2148 2149 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2147 def refreshed_time @refreshed_time end |
#sap_workload ⇒ Google::Apis::WorkloadmanagerV1::SapWorkload
The body of sap workload
Corresponds to the JSON property sapWorkload
2152 2153 2154 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2152 def sap_workload @sap_workload end |
#sqlserver_workload ⇒ Google::Apis::WorkloadmanagerV1::SqlserverWorkload
The body of sqlserver workload
Corresponds to the JSON property sqlserverWorkload
2157 2158 2159 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2157 def sqlserver_workload @sqlserver_workload end |
#state ⇒ String
Output only. [output only] the current state if a a workload
Corresponds to the JSON property state
2162 2163 2164 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2162 def state @state end |
#three_tier_workload ⇒ Google::Apis::WorkloadmanagerV1::ThreeTierWorkload
The body of three tier workload
Corresponds to the JSON property threeTierWorkload
2167 2168 2169 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2167 def three_tier_workload @three_tier_workload end |
#workload_type ⇒ String
Required. The type of the workload
Corresponds to the JSON property workloadType
2172 2173 2174 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2172 def workload_type @workload_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2179 def update!(**args) @application = args[:application] if args.key?(:application) @ascs = args[:ascs] if args.key?(:ascs) @database = args[:database] if args.key?(:database) @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) @sqlserver_workload = args[:sqlserver_workload] if args.key?(:sqlserver_workload) @state = args[:state] if args.key?(:state) @three_tier_workload = args[:three_tier_workload] if args.key?(:three_tier_workload) @workload_type = args[:workload_type] if args.key?(:workload_type) end |