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.



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

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

Instance Attribute Details

#applicationGoogle::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

#ascsGoogle::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

#databaseGoogle::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

#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>)


2136
2137
2138
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2136

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)


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

def name
  @name
end

#refreshed_timeString

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

Returns:

  • (String)


2147
2148
2149
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2147

def refreshed_time
  @refreshed_time
end

#sap_workloadGoogle::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_workloadGoogle::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

#stateString

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

Returns:

  • (String)


2162
2163
2164
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 2162

def state
  @state
end

#three_tier_workloadGoogle::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_typeString

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

Returns:

  • (String)


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