Class: Google::Apis::WorkloadmanagerV1::Resource

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

Message represent resource in execution result

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Resource

Returns a new instance of Resource.



1147
1148
1149
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1147

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

Instance Attribute Details

#nameString

The name of the resource. Corresponds to the JSON property name

Returns:

  • (String)


1135
1136
1137
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1135

def name
  @name
end

#service_accountString

The service account associated with the resource. Corresponds to the JSON property serviceAccount

Returns:

  • (String)


1140
1141
1142
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1140

def 
  @service_account
end

#typeString

The type of resource. Corresponds to the JSON property type

Returns:

  • (String)


1145
1146
1147
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1145

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1152
1153
1154
1155
1156
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1152

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @service_account = args[:service_account] if args.key?(:service_account)
  @type = args[:type] if args.key?(:type)
end