Class: Google::Apis::WorkloadmanagerV1::SapDiscoveryResource

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 describing a resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SapDiscoveryResource

Returns a new instance of SapDiscoveryResource.



1172
1173
1174
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1172

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

Instance Attribute Details

#instance_propertiesGoogle::Apis::WorkloadmanagerV1::SapDiscoveryResourceInstanceProperties

A set of properties only present for an instance type resource Corresponds to the JSON property instanceProperties



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

def instance_properties
  @instance_properties
end

Optional. A list of resource URIs related to this resource. Corresponds to the JSON property relatedResources

Returns:

  • (Array<String>)


1149
1150
1151
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1149

def related_resources
  @related_resources
end

#resource_kindString

Required. ComputeInstance, ComputeDisk, VPC, Bare Metal server, etc. Corresponds to the JSON property resourceKind

Returns:

  • (String)


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

def resource_kind
  @resource_kind
end

#resource_typeString

Required. The type of this resource. Corresponds to the JSON property resourceType

Returns:

  • (String)


1159
1160
1161
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1159

def resource_type
  @resource_type
end

#resource_uriString

Required. URI of the resource, includes project, location, and name. Corresponds to the JSON property resourceUri

Returns:

  • (String)


1164
1165
1166
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1164

def resource_uri
  @resource_uri
end

#update_timeString

Required. Unix timestamp of when this resource last had its discovery data updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1170
1171
1172
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1170

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1177
1178
1179
1180
1181
1182
1183
1184
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1177

def update!(**args)
  @instance_properties = args[:instance_properties] if args.key?(:instance_properties)
  @related_resources = args[:related_resources] if args.key?(:related_resources)
  @resource_kind = args[:resource_kind] if args.key?(:resource_kind)
  @resource_type = args[:resource_type] if args.key?(:resource_type)
  @resource_uri = args[:resource_uri] if args.key?(:resource_uri)
  @update_time = args[:update_time] if args.key?(:update_time)
end