Class: Google::Apis::WorkloadmanagerV1::WorkloadProfile

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WorkloadProfile

Returns a new instance of WorkloadProfile.



2187
2188
2189
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2187

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

Instance Attribute Details

#applicationGoogle::Apis::WorkloadmanagerV1::Layer

The database layer Corresponds to the JSON property application



2133
2134
2135
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2133

def application
  @application
end

#ascsGoogle::Apis::WorkloadmanagerV1::Layer

The database layer Corresponds to the JSON property ascs



2138
2139
2140
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2138

def ascs
  @ascs
end

#databaseGoogle::Apis::WorkloadmanagerV1::Layer

The database layer Corresponds to the JSON property database



2143
2144
2145
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2143

def database
  @database
end

#labelsHash<String,String>

Optional. such as name, description, version. More example can be found in deployment Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


2149
2150
2151
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2149

def labels
  @labels
end

#nameString

Identifier. name of resource names have the form 'projects/project_id/ workloads/workload_id' Corresponds to the JSON property name

Returns:

  • (String)


2155
2156
2157
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2155

def name
  @name
end

#refreshed_timeString

Required. time when the workload data was refreshed Corresponds to the JSON property refreshedTime

Returns:

  • (String)


2160
2161
2162
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2160

def refreshed_time
  @refreshed_time
end

#sap_workloadGoogle::Apis::WorkloadmanagerV1::SapWorkload

The body of sap workload Corresponds to the JSON property sapWorkload



2165
2166
2167
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2165

def sap_workload
  @sap_workload
end

#sqlserver_workloadGoogle::Apis::WorkloadmanagerV1::SqlserverWorkload

The body of sqlserver workload Corresponds to the JSON property sqlserverWorkload



2170
2171
2172
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2170

def sqlserver_workload
  @sqlserver_workload
end

#stateString

Output only. [output only] the current state if a a workload Corresponds to the JSON property state

Returns:

  • (String)


2175
2176
2177
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2175

def state
  @state
end

#three_tier_workloadGoogle::Apis::WorkloadmanagerV1::ThreeTierWorkload

The body of three tier workload Corresponds to the JSON property threeTierWorkload



2180
2181
2182
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2180

def three_tier_workload
  @three_tier_workload
end

#workload_typeString

Required. The type of the workload Corresponds to the JSON property workloadType

Returns:

  • (String)


2185
2186
2187
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2185

def workload_type
  @workload_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2192

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