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.



667
668
669
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 667

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

Instance Attribute Details

#nameString

the name of the resource Corresponds to the JSON property name

Returns:

  • (String)


655
656
657
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 655

def name
  @name
end

#service_accountString

the service account accosiate with resource Corresponds to the JSON property serviceAccount

Returns:

  • (String)


660
661
662
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 660

def 
  @service_account
end

#typeString

the type of reresource Corresponds to the JSON property type

Returns:

  • (String)


665
666
667
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 665

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



672
673
674
675
676
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 672

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