Class: Google::Apis::AssuredworkloadsV1::GoogleCloudAssuredworkloadsVersioningV1mainWorkloadResourceInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/assuredworkloads_v1/classes.rb,
lib/google/apis/assuredworkloads_v1/representations.rb,
lib/google/apis/assuredworkloads_v1/representations.rb

Overview

Represent the resources that are children of this Workload.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssuredworkloadsVersioningV1mainWorkloadResourceInfo

Returns a new instance of GoogleCloudAssuredworkloadsVersioningV1mainWorkloadResourceInfo.



1029
1030
1031
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1029

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

Instance Attribute Details

#resource_idFixnum

Resource identifier. For a project this represents project_number. Corresponds to the JSON property resourceId

Returns:

  • (Fixnum)


1022
1023
1024
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1022

def resource_id
  @resource_id
end

#resource_typeString

Indicates the type of resource. Corresponds to the JSON property resourceType

Returns:

  • (String)


1027
1028
1029
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1027

def resource_type
  @resource_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1034
1035
1036
1037
# File 'lib/google/apis/assuredworkloads_v1/classes.rb', line 1034

def update!(**args)
  @resource_id = args[:resource_id] if args.key?(:resource_id)
  @resource_type = args[:resource_type] if args.key?(:resource_type)
end